Commit 5361cebd authored by Jaroslav Kysela's avatar Jaroslav Kysela

Merge suse.cz:/home/perex/bk/linux-sound/linux-sound

into suse.cz:/home/perex/bk/linux-sound/work
parents 32538906 b57c43bf
......@@ -1028,6 +1028,7 @@ int isapnp_cfg_end(void)
*/
EXPORT_SYMBOL(isapnp_protocol);
EXPORT_SYMBOL(isapnp_present);
EXPORT_SYMBOL(isapnp_cfg_begin);
EXPORT_SYMBOL(isapnp_cfg_end);
......
......@@ -1168,3 +1168,5 @@ module_init(pnpbios_init_all);
module_exit(pnpbios_exit);
#endif
EXPORT_SYMBOL(pnpbios_protocol);
......@@ -115,8 +115,8 @@ void *isapnp_alloc(long size);
int isapnp_proc_init(void);
int isapnp_proc_done(void);
#else
static inline isapnp_proc_init(void) { return 0; }
static inline isapnp_proc_done(void) { return 0; }
static inline int isapnp_proc_init(void) { return 0; }
static inline int isapnp_proc_done(void) { return 0; }
#endif
/* init/main.c */
......
......@@ -155,6 +155,7 @@ static inline int _snd_magic_bad(void *obj, unsigned long magic)
#define snd_card_dummy_t_magic 0xa15a2501
#define snd_card_dummy_pcm_t_magic 0xa15a2502
#define opl3_t_magic 0xa15a2601
#define opl4_t_magic 0xa15a2602
#define snd_seq_dummy_port_t_magic 0xa15a2701
#define ice1712_t_magic 0xa15a2801
#define ad1816a_t_magic 0xa15a2901
......@@ -193,10 +194,9 @@ static inline int _snd_magic_bad(void *obj, unsigned long magic)
#define snd_usb_midi_in_endpoint_t_magic 0xa15a3f03
#define ak4117_t_magic 0xa15a4000
#define psic_t_magic 0xa15a4100
#define opl4_t_magic 0xa15a2602
#define vx_core_t_magic 0xa15a4110
#define vx_pipe_t_magic 0xa15a4112
#define azf3328_t_magic 0xa15a4200
#else
......
/* include/version.h. Generated by configure. */
#define CONFIG_SND_VERSION "0.9.4"
#define CONFIG_SND_DATE " (Fri Jun 06 09:23:03 2003 UTC)"
#define CONFIG_SND_DATE " (Mon Jun 09 12:01:18 2003 UTC)"
......@@ -41,7 +41,7 @@ config SND_SEQUENCER_OSS
bool "OSS Sequencer API"
depends on SND_OSSEMUL && SND_SEQUENCER
help
Say 'Y' or 'M' to enable OSS sequencer emulation (both /dev/sequencer and
Say 'Y' to enable OSS sequencer emulation (both /dev/sequencer and
/dev/music interfaces).
config SND_RTCTIMER
......
......@@ -284,7 +284,7 @@ int snd_cs4236_create(snd_card_t * card,
return err;
if (!(chip->hardware & CS4231_HW_CS4236B_MASK)) {
snd_printk("CS4236+: MODE3 and extended registers not available, hardware=0x%lx\n",chip->hardware);
snd_printk("CS4236+: MODE3 and extended registers not available, hardware=0x%x\n",chip->hardware);
snd_device_free(card, chip);
return -ENODEV;
}
......
......@@ -757,7 +757,7 @@ static int __devinit snd_interwave_probe(int dev, struct pnp_card_link *pcard,
if (request_irq(xirq, snd_interwave_interrupt, SA_INTERRUPT, "InterWave", (void *)iwcard)) {
snd_card_free(card);
snd_printk("unable to grab IRQ %d\n", irq);
snd_printk("unable to grab IRQ %d\n", xirq);
return -EBUSY;
}
iwcard->irq = xirq;
......
......@@ -370,18 +370,17 @@ int patch_alc650(ac97_t * ac97)
unsigned short val;
int spdif = 0;
/* FIXME: set the above 1 if we can detect the chip rev.E correctly.
/* FIXME: set the below 1 if we can detect the chip rev.E correctly.
* this is used for switching mic and center/lfe, which needs
* resetting GPIO0 level on the older revision.
*/
ac97->spec.dev_flags = 0;
/* check spdif */
if (ac97->spec.dev_flags) {
val = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
if (val & AC97_EA_SPCV)
spdif = 1;
}
/* check spdif (should be only on rev.E) */
val = snd_ac97_read(ac97, AC97_EXTENDED_STATUS);
if (val & AC97_EA_SPCV)
spdif = 1;
if (spdif) {
/* enable spdif in */
snd_ac97_write_cache(ac97, AC97_ALC650_CLOCK,
......
......@@ -1012,7 +1012,6 @@ static void snd_emu10k1_del_controls(emu10k1_t *emu, emu10k1_fx8010_code_t *icod
ctl = snd_emu10k1_look_for_ctl(emu, &id);
snd_runtime_check(ctl == NULL, continue);
snd_ctl_remove(emu->card, ctl->kcontrol);
list_del(&ctl->list);
}
}
......
......@@ -3,9 +3,10 @@
# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz>
#
snd-ice1712-objs := ice1712.o delta.o hoontech.o ews.o ak4xxx.o
snd-ice1724-objs := ice1724.o amp.o revo.o aureon.o ak4xxx.o
snd-ice17xx-ak4xxx-objs := ak4xxx.o
snd-ice1712-objs := ice1712.o delta.o hoontech.o ews.o
snd-ice1724-objs := ice1724.o amp.o revo.o aureon.o
# Toplevel Module Dependency
obj-$(CONFIG_SND_ICE1712) += snd-ice1712.o
obj-$(CONFIG_SND_ICE1724) += snd-ice1724.o
obj-$(CONFIG_SND_ICE1712) += snd-ice1712.o snd-ice17xx-ak4xxx.o
obj-$(CONFIG_SND_ICE1724) += snd-ice1724.o snd-ice17xx-ak4xxx.o
......@@ -168,3 +168,7 @@ int __devinit snd_ice1712_akm4xxx_build_controls(ice1712_t *ice)
}
return 0;
}
EXPORT_SYMBOL(snd_ice1712_akm4xxx_init);
EXPORT_SYMBOL(snd_ice1712_akm4xxx_free);
EXPORT_SYMBOL(snd_ice1712_akm4xxx_build_controls);
......@@ -3,8 +3,9 @@
# Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz>
#
snd-vxpocket-objs := vxpocket.o vx_entry.o vxp_ops.o vxp_mixer.o
snd-vxp440-objs := vxpocket.o vx_entry.o vxp_ops.o vxp_mixer.o
snd-vx-cs-objs := vx_entry.o vxp_ops.o vxp_mixer.o
snd-vxpocket-objs := vxpocket.o
snd-vxp440-objs := vxp440.o
obj-$(CONFIG_SND_VXPOCKET) += snd-vxpocket.o
obj-$(CONFIG_SND_VXP440) += snd-vxp440.o
obj-$(CONFIG_SND_VXPOCKET) += snd-vxpocket.o snd-vx-cs.o
obj-$(CONFIG_SND_VXP440) += snd-vxp440.o snd-vx-cs.o
......@@ -34,7 +34,6 @@
#include <sound/core.h>
#include <pcmcia/version.h>
#include "vxpocket.h"
#define SNDRV_GET_ID
#include <sound/initval.h>
/*
......@@ -81,7 +80,6 @@ MODULE_PARM_SYNTAX(ibl, SNDRV_ENABLED);
*/
#ifdef COMPILE_VXP440
static dev_info_t dev_info = "snd-vxp440";
/* 1 DSP, 1 sync UER, 1 sync World Clock (NIY) */
/* SMPTE (NIY) */
......@@ -92,9 +90,9 @@ static dev_info_t dev_info = "snd-vxp440";
#define NUM_CODECS 2
#define CARD_TYPE VX_TYPE_VXP440
#define DEV_INFO "snd-vxp440"
#else
static dev_info_t dev_info = "snd-vxpocket";
/* 1 DSP, 1 sync UER */
/* 1 programmable clock (NIY) */
......@@ -104,8 +102,11 @@ static dev_info_t dev_info = "snd-vxpocket";
#define NUM_CODECS 1
#define CARD_TYPE VX_TYPE_VXPOCKET
#define DEV_INFO "snd-vxpocket"
#endif
static dev_info_t dev_info = DEV_INFO;
static struct snd_vx_hardware vxp_hw = {
.name = CARD_NAME,
......@@ -146,28 +147,28 @@ static void vxp_detach(dev_link_t *link)
snd_vxpocket_detach(&hw_entry, link);
}
/*
* Module entry points
*/
static struct pcmcia_driver vxp_cs_driver = {
.owner = THIS_MODULE,
.drv = {
.name = DEV_INFO,
},
.attach = vxp_attach,
.detach = vxp_detach
};
static int __init init_vxpocket(void)
{
servinfo_t serv;
CardServices(GetCardServicesInfo, &serv);
if (serv.Revision != CS_RELEASE_CODE) {
printk(KERN_WARNING "init_vxpocket: Card Services release does not match (%x != %x)!\n", serv.Revision, CS_RELEASE_CODE);
return -1;
}
register_pccard_driver(&dev_info, vxp_attach, vxp_detach);
return 0;
return pcmcia_register_driver(&vxp_cs_driver);
}
static void __exit exit_vxpocket(void)
{
unregister_pccard_driver(&dev_info);
snd_vxpocket_detach_all(&hw_entry);
pcmcia_unregister_driver(&vxp_cs_driver);
snd_vxpocket_detach_all(&hw_entry);
}
module_init(init_vxpocket);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment