]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39859bb2ebd708393da02424bf1f135242b073c1
tree8d373ea24140be3b21530c4aaf93b950294aef04
parente1f67bd0dad2e466e9c6a361a20b49de302eaf9a
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