]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: add a helper function to apply parameter rules
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 8 Jun 2017 21:37:01 +0000 (06:37 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Jun 2017 21:40:30 +0000 (23:40 +0200)
commit7a95f0c871014d78cd343bc92922bef9ec7d3c38
tree9e439f212d0b0a0bfcda578289dfda4c9ff48777
parentd152b0d99f76360108555800caf06fad6c73a699
ALSA: pcm: add a helper function to apply parameter rules

Application of rules to parameters of PCM substream is done in a call of
snd_pcm_hw_refine(), while the function includes much codes and is not
enough friendly to readers.

This commit splits the codes to a separated function so that readers can
get it easily. I leave desicion into compilers to merge the function into
its callee.

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