diff options
Diffstat (limited to 'sound/isa/ad1816a')
-rw-r--r-- | sound/isa/ad1816a/ad1816a.c | 4 | ||||
-rw-r--r-- | sound/isa/ad1816a/ad1816a_lib.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sound/isa/ad1816a/ad1816a.c b/sound/isa/ad1816a/ad1816a.c index 68f1260b5602..77524244a846 100644 --- a/sound/isa/ad1816a/ad1816a.c +++ b/sound/isa/ad1816a/ad1816a.c | |||
@@ -83,8 +83,10 @@ static struct pnp_card_device_id snd_ad1816a_pnpids[] = { | |||
83 | { .id = "MDK1605", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, | 83 | { .id = "MDK1605", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, |
84 | /* Shark Predator ISA - added by Ken Arromdee */ | 84 | /* Shark Predator ISA - added by Ken Arromdee */ |
85 | { .id = "SMM7180", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, | 85 | { .id = "SMM7180", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, |
86 | /* Analog Devices AD1816A - Terratec AudioSystem EWS64S */ | 86 | /* Analog Devices AD1816A - Terratec AudioSystem EWS64 S */ |
87 | { .id = "TER1112", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, | 87 | { .id = "TER1112", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, |
88 | /* Analog Devices AD1816A - Terratec AudioSystem EWS64 S */ | ||
89 | { .id = "TER1112", .devs = { { .id = "TER1100" }, { .id = "TER1101" } } }, | ||
88 | /* Analog Devices AD1816A - Terratec Base 64 */ | 90 | /* Analog Devices AD1816A - Terratec Base 64 */ |
89 | { .id = "TER1411", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, | 91 | { .id = "TER1411", .devs = { { .id = "ADS7180" }, { .id = "ADS7181" } } }, |
90 | /* end */ | 92 | /* end */ |
diff --git a/sound/isa/ad1816a/ad1816a_lib.c b/sound/isa/ad1816a/ad1816a_lib.c index 4b8dfe2e3dcb..3bfca7c59baf 100644 --- a/sound/isa/ad1816a/ad1816a_lib.c +++ b/sound/isa/ad1816a/ad1816a_lib.c | |||
@@ -394,7 +394,8 @@ static int snd_ad1816a_timer_open(struct snd_timer *timer) | |||
394 | 394 | ||
395 | static unsigned long snd_ad1816a_timer_resolution(struct snd_timer *timer) | 395 | static unsigned long snd_ad1816a_timer_resolution(struct snd_timer *timer) |
396 | { | 396 | { |
397 | snd_assert(timer != NULL, return 0); | 397 | if (snd_BUG_ON(!timer)) |
398 | return 0; | ||
398 | 399 | ||
399 | return 10000; | 400 | return 10000; |
400 | } | 401 | } |
@@ -961,7 +962,8 @@ int __devinit snd_ad1816a_mixer(struct snd_ad1816a *chip) | |||
961 | unsigned int idx; | 962 | unsigned int idx; |
962 | int err; | 963 | int err; |
963 | 964 | ||
964 | snd_assert(chip != NULL && chip->card != NULL, return -EINVAL); | 965 | if (snd_BUG_ON(!chip || !chip->card)) |
966 | return -EINVAL; | ||
965 | 967 | ||
966 | card = chip->card; | 968 | card = chip->card; |
967 | 969 | ||