diff options
author | Kyle Russell <bkylerussell@gmail.com> | 2020-11-18 22:41:06 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-20 13:49:08 +0000 |
commit | 82d1aeb8a40740cf4208ce864cbcaa5e8bbabf4e (patch) | |
tree | 00349b13c529bcdc95b7b6147c4bbc6e69c48fdb | |
parent | 2b3f6f4af95594d8e9c137ddc8d6bec61f04dbb5 (diff) | |
download | linux-stable-82d1aeb8a40740cf4208ce864cbcaa5e8bbabf4e.tar.gz linux-stable-82d1aeb8a40740cf4208ce864cbcaa5e8bbabf4e.tar.bz2 linux-stable-82d1aeb8a40740cf4208ce864cbcaa5e8bbabf4e.zip |
ASoC: mmp-sspa: set phase two word length register
If hw params enables dual phase transmission, then the word length for
the second phase should be set to match the sample format instead of
remaining at the reset default. This matches the configuration already
being done for the first phase.
This driver already sets the phase two sample size, so this should complete
the phase two configuration.
Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
Link: https://lore.kernel.org/r/20201119034106.1273906-1-bkylerussell@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/pxa/mmp-sspa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/pxa/mmp-sspa.c b/sound/soc/pxa/mmp-sspa.c index 52d4d8ace1c3..4803972ee655 100644 --- a/sound/soc/pxa/mmp-sspa.c +++ b/sound/soc/pxa/mmp-sspa.c @@ -246,6 +246,9 @@ static int mmp_sspa_hw_params(struct snd_pcm_substream *substream, sspa_ctrl &= ~SSPA_CTL_XWDLEN1_MASK; sspa_ctrl |= SSPA_CTL_XWDLEN1(bitval); + sspa_ctrl &= ~SSPA_CTL_XWDLEN2_MASK; + sspa_ctrl |= SSPA_CTL_XWDLEN2(bitval); + sspa_ctrl &= ~SSPA_CTL_XSSZ1_MASK; sspa_ctrl |= SSPA_CTL_XSSZ1(bitval); |