]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: pcm: use helper functions to check whether parameters are determined
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 8 Jun 2017 21:37:05 +0000 (06:37 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Jun 2017 21:40:37 +0000 (23:40 +0200)
commitb81e5ddb159490270fa2cca4f6682c4452035203
tree3b788f8981d96541f6d459269a293e69201b7707
parenta1c06e39a9373501b4f28caf37fbccba52532f79
ALSA: pcm: use helper functions to check whether parameters are determined

A commit 8bea869c5e56 ("ALSA: PCM midlevel: improve fifo_size handling")
allows drivers to implement calculation of fifo size in parameter
structure. This calculation runs only when two of the other parameters
have single value.

In ALSA PCM core, there're some helper functions for the case. This commit
applies the functions instead of value comparison.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c