From cde71a9c9c0ce8b5f0a4c636a5a78eb23b82e747 Mon Sep 17 00:00:00 2001 From: Zhou Song Date: Wed, 20 Mar 2019 13:51:30 +0800 Subject: [PATCH] asoc: dsp: do extention to support aptx adaptive R2 Extend the encoder configuration to support aptx adaptive R2. Change-Id: I17d7adb62539d9f59222fd0c992424ba98395383 Signed-off-by: Zhou Song --- asoc/msm-dai-q6-v2.c | 9 +++++++++ include/dsp/apr_audio-v2.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/asoc/msm-dai-q6-v2.c b/asoc/msm-dai-q6-v2.c index d4f33c74a9..5c920436ed 100644 --- a/asoc/msm-dai-q6-v2.c +++ b/asoc/msm-dai-q6-v2.c @@ -3207,6 +3207,15 @@ static const struct snd_kcontrol_new afe_enc_config_controls[] = { .get = msm_dai_q6_afe_enc_cfg_get, .put = msm_dai_q6_afe_enc_cfg_put, }, + { + .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | + SNDRV_CTL_ELEM_ACCESS_INACTIVE), + .iface = SNDRV_CTL_ELEM_IFACE_PCM, + .name = "SLIM_7_RX APTX_AD Enc Cfg", + .info = msm_dai_q6_afe_enc_cfg_info, + .get = msm_dai_q6_afe_enc_cfg_get, + .put = msm_dai_q6_afe_enc_cfg_put, + }, SOC_ENUM_EXT("AFE Input Channels", afe_chs_enum[0], msm_dai_q6_afe_input_channel_get, msm_dai_q6_afe_input_channel_put), diff --git a/include/dsp/apr_audio-v2.h b/include/dsp/apr_audio-v2.h index e7c132a695..b739ea0f92 100644 --- a/include/dsp/apr_audio-v2.h +++ b/include/dsp/apr_audio-v2.h @@ -3852,6 +3852,9 @@ struct afe_id_aptx_adaptive_enc_init uint32_t min_sink_modeC; uint32_t max_sink_modeC; uint32_t mode; + uint32_t input_mode; + uint32_t fade_duration; + uint8_t sink_cap[11]; } __attribute__ ((packed)); /*