summaryrefslogtreecommitdiffstats
path: root/sound/soc/rockchip/rockchip_max98090.c
diff options
context:
space:
mode:
authorShengjiu Wang2019-07-16 11:45:47 +0200
committerMark Brown2019-07-22 14:00:30 +0200
commit48dfd37a0f85400610153101c72222bf01523699 (patch)
treeaa5e59c9a4f43c9b75dbd90e602330c627a829ac /sound/soc/rockchip/rockchip_max98090.c
parentASoC: dapm: Fix handling of custom_stop_condition on DAPM graph walks (diff)
downloadkernel-qcow2-linux-48dfd37a0f85400610153101c72222bf01523699.tar.gz
kernel-qcow2-linux-48dfd37a0f85400610153101c72222bf01523699.tar.xz
kernel-qcow2-linux-48dfd37a0f85400610153101c72222bf01523699.zip
ASoC: cs42xx8: Fix MFREQ selection issue for async mode
When sample rate of TX is different with sample rate of RX in async mode, the MFreq selection will be wrong. For example, sysclk = 24.576MHz, TX rate = 96000Hz, RX rate = 48000Hz. Then ratio of TX = 256, ratio of RX = 512, For MFreq is shared by TX and RX instance, the correct value of MFreq is 2 for both TX and RX. But original method will cause MFreq = 0 for TX, MFreq = 2 for RX. If TX is started after RX, RX will be impacted, RX work abnormal with MFreq = 0. This patch is to select proper MFreq value according to TX rate and RX rate. Fixes: 0c516b4ff85c ("ASoC: cs42xx8: Add codec driver support for CS42448/CS42888") Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Link: https://lore.kernel.org/r/20190716094547.46787-1-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip/rockchip_max98090.c')
0 files changed, 0 insertions, 0 deletions