]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: soc-pcm: fix sig_bits determination in soc_pcm_apply_msb()
authorDaniel Mack <daniel@zonque.org>
Tue, 7 Oct 2014 12:33:46 +0000 (14:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:22 +0000 (10:10 -0800)
commita5af5c6d308d5a73a9d788dfb5cc405f400d0c54
tree45419c2f23976851eb1ea90244ea62913c79d654
parent33e6c796838dca289666af379878ffae4d296990
ASoC: soc-pcm: fix sig_bits determination in soc_pcm_apply_msb()

commit 5e63dfccf34d4dbf21429c4919f33c028ff49991 upstream.

In the SNDRV_PCM_STREAM_CAPTURE branch in soc_pcm_apply_msb(), look at
sig_bits of the capture stream, not the playback one.

Spotted by coverity.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-pcm.c