ASoC: mmp-sspa: Set appropriate bus format for given bit width
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 11 May 2020 21:01:32 +0000 (23:01 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 12 May 2020 16:14:43 +0000 (17:14 +0100)
commit39ec7e9b699910792468cf41a179d9930052e8ff
tree8d373ea24140be3b21530c4aaf93b950294aef04
parent7d98cc648253c362ebfc582b11095a0e3f001896
ASoC: mmp-sspa: Set appropriate bus format for given bit width

The values set by set_dai_fmt() and hw_params() seem to be tailored only
for 32-bit formats. Negotiate the correct ones in hw_params() callback
instead.

This was essentially copied from the OLPC kernel driver and tested to
fix wrong audio output for non-32bit formats. The documentation is not
available.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200511210134.1224532-10-lkundrak@v3.sk
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/pxa/mmp-sspa.c
sound/soc/pxa/mmp-sspa.h