]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: dice: Add new functions for constraints of PCM parameters
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 28 Nov 2014 15:59:18 +0000 (00:59 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 29 Nov 2014 19:17:06 +0000 (20:17 +0100)
commit2c2416c83e7345fc51af49132c40ec7d337d4132
tree8e7429e9c5b4abd80a0a097e4ef0e2804cd17510
parent04d426a039691bf114997a8af877682fdffcebd7
ALSA: dice: Add new functions for constraints of PCM parameters

This commit adds a new functions and some arrangement for PCM restriction.
This arrangement is due to the number of channels which each Dice device has.

I note that minimum number for period becomes 2, instead of 1 because its PCM
functionality has SNDRV_PCM_INFO_BATCH, this means that the driver uses double
(or more) buffering so the minimum number for period should be 2.

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