]> git.baikalelectronics.ru Git - kernel.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)
commit41930cb8aca684d7824db248dfb86b9656abbdce
tree3b788f8981d96541f6d459269a293e69201b7707
parentd7e235b7334a9be18b620fc5fd3295409f0d8a97
ALSA: pcm: use helper functions to check whether parameters are determined

A commit 6cc8f95eea5d ("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