mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
ALSA: Kill snd_assert() in sound/core/*
Kill snd_assert() in sound/core/*, 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:
parent
5ef03460a6
commit
7eaa943c8e
42 changed files with 583 additions and 388 deletions
|
@ -51,12 +51,14 @@ void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream)
|
|||
|
||||
mult = 1000000000;
|
||||
rate = runtime->rate;
|
||||
snd_assert(rate != 0, return);
|
||||
if (snd_BUG_ON(!rate))
|
||||
return;
|
||||
l = gcd(mult, rate);
|
||||
mult /= l;
|
||||
rate /= l;
|
||||
fsize = runtime->period_size;
|
||||
snd_assert(fsize != 0, return);
|
||||
if (snd_BUG_ON(!fsize))
|
||||
return;
|
||||
l = gcd(rate, fsize);
|
||||
rate /= l;
|
||||
fsize /= l;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue