asoc: routing: sound tracking updates for qcs405
Add support for codec dma interface to sound tracking mixer control. Change-Id: Ic8296e61d14526469c62a709f19c6357b3ada8d6 Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
This commit is contained in:
parent
4d83b35b1b
commit
654b06b0ef
1 changed files with 33 additions and 0 deletions
|
@ -17014,6 +17014,9 @@ static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
|
|||
} else if (!strcmp(kcontrol->id.name + strlen(prefix),
|
||||
"INT3_MI2S")) {
|
||||
*port_id = AFE_PORT_ID_INT3_MI2S_TX;
|
||||
} else if (!strcmp(kcontrol->id.name + strlen(prefix),
|
||||
"VA_CDC_DMA_TX_0")) {
|
||||
*port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
|
||||
} else {
|
||||
pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
|
||||
__func__, kcontrol->id.name);
|
||||
|
@ -17248,6 +17251,36 @@ static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
|
|||
.info = msm_source_tracking_info,
|
||||
.get = msm_audio_source_tracking_get,
|
||||
},
|
||||
{
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
|
||||
.info = msm_sound_focus_info,
|
||||
.get = msm_voice_sound_focus_get,
|
||||
.put = msm_voice_sound_focus_put,
|
||||
},
|
||||
{
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READ,
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
|
||||
.info = msm_source_tracking_info,
|
||||
.get = msm_voice_source_tracking_get,
|
||||
},
|
||||
{
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
|
||||
.info = msm_sound_focus_info,
|
||||
.get = msm_audio_sound_focus_get,
|
||||
.put = msm_audio_sound_focus_put,
|
||||
},
|
||||
{
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READ,
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
|
||||
.info = msm_source_tracking_info,
|
||||
.get = msm_audio_source_tracking_get,
|
||||
},
|
||||
};
|
||||
|
||||
static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
|
||||
|
|
Loading…
Add table
Reference in a new issue