diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2020-05-11 23:01:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-05-12 17:14:43 +0100 |
commit | 39ec7e9b699910792468cf41a179d9930052e8ff (patch) | |
tree | 8d373ea24140be3b21530c4aaf93b950294aef04 /sound/soc/pxa/mmp-sspa.h | |
parent | 7d98cc648253c362ebfc582b11095a0e3f001896 (diff) | |
download | linux-stable-39ec7e9b699910792468cf41a179d9930052e8ff.tar.gz linux-stable-39ec7e9b699910792468cf41a179d9930052e8ff.tar.bz2 linux-stable-39ec7e9b699910792468cf41a179d9930052e8ff.zip |
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>
Diffstat (limited to 'sound/soc/pxa/mmp-sspa.h')
-rw-r--r-- | sound/soc/pxa/mmp-sspa.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/pxa/mmp-sspa.h b/sound/soc/pxa/mmp-sspa.h index 611063a7af68..328969b57ad1 100644 --- a/sound/soc/pxa/mmp-sspa.h +++ b/sound/soc/pxa/mmp-sspa.h @@ -63,7 +63,9 @@ #define SSPA_SP_FFLUSH (1 << 2) /* FIFO Flush */ #define SSPA_SP_S_RST (1 << 1) /* Active High Reset Signal */ #define SSPA_SP_S_EN (1 << 0) /* Serial Clock Domain Enable */ +#define SSPA_SP_FWID_MASK (0x3f << 20) #define SSPA_SP_FWID(x) ((x) << 20) /* Frame-Sync Width */ +#define SSPA_TXSP_FPER_MASK (0x3f << 4) #define SSPA_TXSP_FPER(x) ((x) << 4) /* Frame-Sync Active */ /* sspa clock sources */ |