diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-10-25 09:56:58 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-10-25 09:56:58 -0700 |
commit | 953c2b88b1fffe2dfde506667627f8069014b66e (patch) | |
tree | f898d0b8e541d2db77d6dbc423710fbc4c1d5663 /dsp | |
parent | 3d0e2dec052817f2ba89c60166d1e938211a2b1a (diff) | |
parent | 899b78bd181688a8f5557a456cd34f657b3f0f8c (diff) | |
download | msm-extra-953c2b88b1fffe2dfde506667627f8069014b66e.tar.gz |
Merge "dsp: add support for aptX dual mono"
Diffstat (limited to 'dsp')
-rw-r--r-- | dsp/q6afe.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dsp/q6afe.c b/dsp/q6afe.c index a91e1196..b6a7aa32 100644 --- a/dsp/q6afe.c +++ b/dsp/q6afe.c @@ -2894,6 +2894,24 @@ static int q6afe_send_enc_config(u16 port_id, goto exit; } + if (format == ASM_MEDIA_FMT_APTX) { + config.param.payload_size = + payload_size + sizeof(config.port.sync_mode_param); + pr_debug("%s: sending AFE_PARAM_ID_APTX_SYNC_MODE to DSP", + __func__); + config.pdata.param_id = AFE_PARAM_ID_APTX_SYNC_MODE; + config.pdata.param_size = sizeof(config.port.sync_mode_param); + config.port.sync_mode_param.sync_mode = + config.port.enc_blk_param.enc_blk_config.aptx_config. + aptx_v2_cfg.sync_mode; + ret = afe_apr_send_pkt(&config, &this_afe.wait[index]); + if (ret) { + pr_err("%s: AFE_PARAM_ID_APTX_SYNC_MODE for port 0x%x failed %d\n", + __func__, port_id, ret); + goto exit; + } + } + config.param.payload_size = payload_size + sizeof(config.port.enc_pkt_id_param); pr_debug("%s:sending AFE_ENCODER_PARAM_ID_PACKETIZER to DSP payload = %d", |