From bde9a1115389d1b25cd9e699ca81c8fa631de8fc Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Wed, 22 Jan 2020 15:33:53 -0800 Subject: [PATCH] ASoC: compress: update codec option wma to wma_dec Update codec option wma to wma_dec. Change-Id: I6462c6a5a9a5b2f1e6f74df951a101331ce75872 Signed-off-by: Vignesh Kulothungan --- asoc/msm-compress-q6-v2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/asoc/msm-compress-q6-v2.c b/asoc/msm-compress-q6-v2.c index 9c946e2e092f..583c8040387f 100644 --- a/asoc/msm-compress-q6-v2.c +++ b/asoc/msm-compress-q6-v2.c @@ -1112,12 +1112,12 @@ static int msm_compr_send_media_format_block(struct snd_compr_stream *cstream, wma_cfg.format_tag = prtd->codec_param.codec.format; wma_cfg.ch_cfg = prtd->codec_param.codec.ch_in; wma_cfg.sample_rate = prtd->sample_rate; - wma_cfg.avg_bytes_per_sec = codec_options->wma.avg_bit_rate/8; - wma_cfg.block_align = codec_options->wma.super_block_align; + wma_cfg.avg_bytes_per_sec = codec_options->wma_dec.avg_bit_rate/8; + wma_cfg.block_align = codec_options->wma_dec.super_block_align; wma_cfg.valid_bits_per_sample = - codec_options->wma.bits_per_sample; - wma_cfg.ch_mask = codec_options->wma.channelmask; - wma_cfg.encode_opt = codec_options->wma.encodeopt; + codec_options->wma_dec.bits_per_sample; + wma_cfg.ch_mask = codec_options->wma_dec.channelmask; + wma_cfg.encode_opt = codec_options->wma_dec.encodeopt; ret = q6asm_media_format_block_wma(prtd->audio_client, &wma_cfg, stream_id); if (ret < 0)