ASoC: SOF: topology: Update SAI config bclk/fsync rate
authorDaniel Baluta <daniel.baluta@nxp.com>
Mon, 20 Jul 2020 07:20:45 +0000 (10:20 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 22 Jul 2020 11:45:01 +0000 (12:45 +0100)
These parameters are read from topology file and sent to DSP.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200720072046.8152-7-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/topology.c

index 6a9703e..13e10a0 100644 (file)
@@ -2831,6 +2831,8 @@ static int sof_link_sai_load(struct snd_soc_component *scomp, int index,
        }
 
        config->sai.mclk_rate = le32_to_cpu(hw_config->mclk_rate);
+       config->sai.bclk_rate = le32_to_cpu(hw_config->bclk_rate);
+       config->sai.fsync_rate = le32_to_cpu(hw_config->fsync_rate);
        config->sai.mclk_direction = hw_config->mclk_direction;
 
        config->sai.tdm_slots = le32_to_cpu(hw_config->tdm_slots);