summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-12-29 18:43:37 +0100
committerTakashi Iwai <tiwai@suse.de>2014-12-30 16:27:47 +0100
commit8ef9df55a72425e269575fa74cbbedec4672bdc4 (patch)
tree26b586cdb86993462827f6558d2187e52c9669ed /sound/soc/soc-pcm.c
parent19f52fae5adb7f2fd5b75251f9bd761f43a36476 (diff)
downloadlinux-stable-8ef9df55a72425e269575fa74cbbedec4672bdc4.tar.gz
linux-stable-8ef9df55a72425e269575fa74cbbedec4672bdc4.tar.bz2
linux-stable-8ef9df55a72425e269575fa74cbbedec4672bdc4.zip
ALSA: Add support for wildcard msbits constraints
Currently the msbits constraints requires to specify a specific sample format width for which the constraint should be applied. But often the number of most significant bits is not sample format specific, but rather a absolute limit. E.g. the PCM interface might accept 32-bit and 24-bit samples, but the DAC has a 16-bit resolution and throws away the LSBs. In this case for both 32-bit and 24-bit format msbits should be set to 16. This patch extends snd_pcm_hw_constraint_msbits() so that a wildcard constraint can be setup that is applied for all formats with a sample width larger than the specified msbits. Choosing the wildcard constraint is done by setting the sample width parameter of the function to 0. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/soc-pcm.c')
0 files changed, 0 insertions, 0 deletions