mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
asoc: routing: update routing to support sound tracking
Add support for TX codec dma interface to support source tracking and sound focus mixer controls. Change-Id: I11dc36a2f86164c7dc3a24357e68a04a8099cb4a Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
This commit is contained in:
parent
3712485b8f
commit
c5c7d44d96
1 changed files with 33 additions and 0 deletions
|
|
@ -17017,6 +17017,9 @@ static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
|
|||
} else if (!strcmp(kcontrol->id.name + strlen(prefix),
|
||||
"VA_CDC_DMA_TX_0")) {
|
||||
*port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
|
||||
} else if (!strcmp(kcontrol->id.name + strlen(prefix),
|
||||
"TX_CDC_DMA_TX_3")) {
|
||||
*port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
|
||||
} else {
|
||||
pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
|
||||
__func__, kcontrol->id.name);
|
||||
|
|
@ -17281,6 +17284,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 TX_CDC_DMA_TX_3",
|
||||
.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 TX_CDC_DMA_TX_3",
|
||||
.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 TX_CDC_DMA_TX_3",
|
||||
.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 TX_CDC_DMA_TX_3",
|
||||
.info = msm_source_tracking_info,
|
||||
.get = msm_audio_source_tracking_get,
|
||||
},
|
||||
};
|
||||
|
||||
static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
|
||||
|
|
|
|||
Loading…
Reference in a new issue