mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
Merge "asoc: support source tracking with TDM interface"
This commit is contained in:
commit
3ae061be3d
1 changed files with 18 additions and 0 deletions
|
|
@ -18091,6 +18091,9 @@ static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
|
|||
} else if (!strcmp(kcontrol->id.name + strlen(prefix),
|
||||
"QUIN_TDM_TX_0")) {
|
||||
*port_id = AFE_PORT_ID_QUINARY_TDM_TX;
|
||||
} else if (!strcmp(kcontrol->id.name + strlen(prefix),
|
||||
"PRIMARY_TDM")) {
|
||||
*port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
|
||||
} else {
|
||||
pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
|
||||
__func__, kcontrol->id.name);
|
||||
|
|
@ -18468,6 +18471,21 @@ 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 Audio Tx PRIMARY_TDM",
|
||||
.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 PRIMARY_TDM",
|
||||
.info = msm_source_tracking_info,
|
||||
.get = msm_audio_source_tracking_get,
|
||||
},
|
||||
{
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READ,
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
|
|
|
|||
Loading…
Reference in a new issue