diff options
Diffstat (limited to 'sound/pci/echoaudio/echoaudio_gml.c')
-rw-r--r-- | sound/pci/echoaudio/echoaudio_gml.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/pci/echoaudio/echoaudio_gml.c b/sound/pci/echoaudio/echoaudio_gml.c index 3aa37e76ebab..afa273330e8a 100644 --- a/sound/pci/echoaudio/echoaudio_gml.c +++ b/sound/pci/echoaudio/echoaudio_gml.c | |||
@@ -112,9 +112,11 @@ static int set_digital_mode(struct echoaudio *chip, u8 mode) | |||
112 | return -EIO; | 112 | return -EIO; |
113 | 113 | ||
114 | /* All audio channels must be closed before changing the digital mode */ | 114 | /* All audio channels must be closed before changing the digital mode */ |
115 | snd_assert(!chip->pipe_alloc_mask, return -EAGAIN); | 115 | if (snd_BUG_ON(chip->pipe_alloc_mask)) |
116 | return -EAGAIN; | ||
116 | 117 | ||
117 | snd_assert(chip->digital_modes & (1 << mode), return -EINVAL); | 118 | if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) |
119 | return -EINVAL; | ||
118 | 120 | ||
119 | previous_mode = chip->digital_mode; | 121 | previous_mode = chip->digital_mode; |
120 | err = dsp_set_digital_mode(chip, mode); | 122 | err = dsp_set_digital_mode(chip, mode); |