diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-08 11:12:14 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-08-13 05:46:38 -0400 |
commit | da3cec35dd3c31d8706db4bf379372ce70d92118 (patch) | |
tree | 9379edebb1c7abc7a7a92ce3be30a35b77d9aa1d /sound/pci/intel8x0.c | |
parent | 622207dc31895b4e82c39100db8635d885c795e2 (diff) |
ALSA: Kill snd_assert() in sound/pci/*
Kill snd_assert() in sound/pci/*, either removed or replaced with
if () with snd_BUG_ON().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/intel8x0.c')
-rw-r--r-- | sound/pci/intel8x0.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c index 048d99e25ab0..78760996632d 100644 --- a/sound/pci/intel8x0.c +++ b/sound/pci/intel8x0.c | |||
@@ -2132,8 +2132,8 @@ static int __devinit snd_intel8x0_mixer(struct intel8x0 *chip, int ac97_clock, | |||
2132 | snd_intel8x0_codec_read_test(chip, codecs); | 2132 | snd_intel8x0_codec_read_test(chip, codecs); |
2133 | chip->ac97_sdin[codecs] = | 2133 | chip->ac97_sdin[codecs] = |
2134 | igetbyte(chip, ICHREG(SDM)) & ICH_LDI_MASK; | 2134 | igetbyte(chip, ICHREG(SDM)) & ICH_LDI_MASK; |
2135 | snd_assert(chip->ac97_sdin[codecs] < 3, | 2135 | if (snd_BUG_ON(chip->ac97_sdin[codecs] >= 3)) |
2136 | chip->ac97_sdin[codecs] = 0); | 2136 | chip->ac97_sdin[codecs] = 0; |
2137 | } else | 2137 | } else |
2138 | chip->ac97_sdin[codecs] = i; | 2138 | chip->ac97_sdin[codecs] = i; |
2139 | codecs++; | 2139 | codecs++; |