summaryrefslogtreecommitdiff
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorZhang Peng <peng.zhang_8@nxp.com>2020-04-27 14:52:37 +0800
committerZhang Peng <peng.zhang_8@nxp.com>2020-04-27 15:03:16 +0800
commitdcf3272d114d2c021a6ea25542a506244eccb78b (patch)
tree6ab2edd3a646419038142afbef10041d9c3c3101 /sound/soc/fsl
parentbf26d9822ca017680929ec45b4ab064082e693d8 (diff)
MLK-23850 soc: fsl: Correct parameters getting from DSP
Before the parameters getting from dsp is not right, now correct it. Signed-off-by: Zhang Peng <peng.zhang_8@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/fsl_dsp_platform_compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_dsp_platform_compress.c b/sound/soc/fsl/fsl_dsp_platform_compress.c
index e5a4644074d2..ebc6ae60e09d 100644
--- a/sound/soc/fsl/fsl_dsp_platform_compress.c
+++ b/sound/soc/fsl/fsl_dsp_platform_compress.c
@@ -366,8 +366,8 @@ static int dsp_platform_compr_pointer(struct snd_compr_stream *cstream,
tstamp->copied_total = drv->client->input_bytes;
tstamp->byte_offset = drv->client->input_bytes;
tstamp->pcm_frames = 0x900;
- tstamp->pcm_io_frames = g_param[0].mixData.value,
- tstamp->sampling_rate = g_param[1].mixData.value;
+ tstamp->pcm_io_frames = g_param[1].mixData.value;
+ tstamp->sampling_rate = g_param[0].mixData.value;
out:
return 0;