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>
This commit is contained in:
committed by
Jaroslav Kysela
parent
622207dc31
commit
da3cec35dd
@@ -145,7 +145,8 @@ terminate_voice(struct snd_emux_voice *vp)
|
||||
{
|
||||
struct snd_emu10k1 *hw;
|
||||
|
||||
snd_assert(vp, return);
|
||||
if (snd_BUG_ON(!vp))
|
||||
return;
|
||||
hw = vp->hw;
|
||||
snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK);
|
||||
if (vp->block) {
|
||||
@@ -325,7 +326,8 @@ start_voice(struct snd_emux_voice *vp)
|
||||
|
||||
hw = vp->hw;
|
||||
ch = vp->ch;
|
||||
snd_assert(ch >= 0, return -EINVAL);
|
||||
if (snd_BUG_ON(ch < 0))
|
||||
return -EINVAL;
|
||||
chan = vp->chan;
|
||||
|
||||
emem = (struct snd_emu10k1_memblk *)vp->block;
|
||||
|
Reference in New Issue
Block a user