From 8c73987b30e03e1c71cd5e30dc0323f3b780986b Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Wed, 21 Apr 2021 15:41:38 +0800 Subject: [PATCH] LF-3724-7: ak4458: Consider slots number for DSD case DSD clock frequency need to consider the slots number, previously on slots=1 is considered. Signed-off-by: Shengjiu Wang Reviewed-by: Robin Gong --- sound/soc/codecs/ak4458.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/ak4458.c b/sound/soc/codecs/ak4458.c index a120b78c5f12..4733f071fb63 100644 --- a/sound/soc/codecs/ak4458.c +++ b/sound/soc/codecs/ak4458.c @@ -365,7 +365,7 @@ static int ak4458_hw_params(struct snd_pcm_substream *substream, case SNDRV_PCM_FORMAT_DSD_U16_BE: case SNDRV_PCM_FORMAT_DSD_U32_LE: case SNDRV_PCM_FORMAT_DSD_U32_BE: - dsd_bclk = nfs1 * params_physical_width(params); + dsd_bclk = nfs1 * params_physical_width(params) * ak4458->slots; switch (dsd_bclk) { case 2822400: dsdsel0 = 0; -- 2.17.1