]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: add a helper function to constrain mask-type parameters
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 8 Jun 2017 21:36:59 +0000 (06:36 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Jun 2017 21:40:27 +0000 (23:40 +0200)
commitc386bab08ca8ab21e1d5cdeebe98f6fbbc256d7b
tree79650a26228d6aad7a5677aecd4f6892f79b60e8
parent1518491332d8572ab4ebd5c0c7cf302c0e01ab59
ALSA: pcm: add a helper function to constrain mask-type parameters

Application of constraints to mask-type parameters for 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