ASoC: mediatek: mt8183-da7219: fix wrong ops for I2S3
authorTzung-Bi Shih <tzungbi@google.com>
Tue, 6 Oct 2020 10:12:52 +0000 (18:12 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 6 Oct 2020 13:10:23 +0000 (14:10 +0100)
commitebb11d1d9fe2d6b4a47755f7f09b2b631046e308
tree26f6e9495894cf7950c33c14c7b2aac4edc83507
parent20441614d89867142060d3bcd79cc111d8ba7a8e
ASoC: mediatek: mt8183-da7219: fix wrong ops for I2S3

DA7219 uses I2S2 and I2S3 for input and output respectively.  Commit
9e30251fb22e ("ASoC: mediatek: mt8183-da7219: support machine driver
with rt1015") introduces a bug that:
- If using I2S2 solely, MCLK to DA7219 is 256FS.
- If using I2S3 solely, MCLK to DA7219 is 128FS.
- If using I2S3 first and then I2S2, the MCLK changes from 128FS to
  256FS.  As a result, no sound output to the headset.  Also no sound
  input from the headset microphone.

Both I2S2 and I2S3 should set MCLK to 256FS.  Fixes the wrong ops for
I2S3.

Fixes: 9e30251fb22e ("ASoC: mediatek: mt8183-da7219: support machine driver with rt1015")
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20201006101252.1890385-1-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c