mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 20:51:47 +00:00
ASoC: Don't tell applications about msbits unless we're ignoring input
On the off chance that an application both pays attention and gets confused. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
09452f23eb
commit
278047fd65
@ -85,9 +85,11 @@ static void soc_pcm_apply_msb(struct snd_pcm_substream *substream,
|
||||
return;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(sample_sizes); i++) {
|
||||
ret = snd_pcm_hw_constraint_msbits(substream->runtime,
|
||||
0, sample_sizes[i],
|
||||
bits);
|
||||
if (bits >= sample_sizes[i])
|
||||
continue;
|
||||
|
||||
ret = snd_pcm_hw_constraint_msbits(substream->runtime, 0,
|
||||
sample_sizes[i], bits);
|
||||
if (ret != 0)
|
||||
dev_warn(dai->dev,
|
||||
"Failed to set MSB %d/%d: %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user