mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
asoc: routing: Extend MultiMedia1 channel controls to support 14channels
Extend existing MultiMedia1 Output Channel and MultiMedia1 Channels controls to support upto 14channels. Change-Id: Idaa15f7b30139695d7738599f669944ac837c036 Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
This commit is contained in:
parent
c63ec8cd8f
commit
6790e92830
1 changed files with 41 additions and 1 deletions
|
|
@ -3693,7 +3693,7 @@ static const struct snd_kcontrol_new channel_mixer_controls[] = {
|
|||
msm_pcm_put_channel_rule_index),
|
||||
|
||||
SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA1, 10, 0,
|
||||
MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
|
||||
msm_pcm_get_out_chs,
|
||||
msm_pcm_put_out_chs),
|
||||
SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
|
||||
|
|
@ -3855,6 +3855,46 @@ static const struct snd_kcontrol_new channel_mixer_controls[] = {
|
|||
{
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
||||
.name = "MultiMedia1 Output Channel11",
|
||||
.info = msm_pcm_channel_weight_info,
|
||||
.get = msm_pcm_channel_weight_get,
|
||||
.put = msm_pcm_channel_weight_put,
|
||||
.private_value = (unsigned long)&(struct soc_multi_mixer_control)
|
||||
{ .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
|
||||
},
|
||||
{
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
||||
.name = "MultiMedia1 Output Channel12",
|
||||
.info = msm_pcm_channel_weight_info,
|
||||
.get = msm_pcm_channel_weight_get,
|
||||
.put = msm_pcm_channel_weight_put,
|
||||
.private_value = (unsigned long)&(struct soc_multi_mixer_control)
|
||||
{ .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
|
||||
},
|
||||
{
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
||||
.name = "MultiMedia1 Output Channel13",
|
||||
.info = msm_pcm_channel_weight_info,
|
||||
.get = msm_pcm_channel_weight_get,
|
||||
.put = msm_pcm_channel_weight_put,
|
||||
.private_value = (unsigned long)&(struct soc_multi_mixer_control)
|
||||
{ .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
|
||||
},
|
||||
{
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
||||
.name = "MultiMedia1 Output Channel14",
|
||||
.info = msm_pcm_channel_weight_info,
|
||||
.get = msm_pcm_channel_weight_get,
|
||||
.put = msm_pcm_channel_weight_put,
|
||||
.private_value = (unsigned long)&(struct soc_multi_mixer_control)
|
||||
{ .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
|
||||
},
|
||||
{
|
||||
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
|
||||
.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
|
||||
.name = "MultiMedia2 Output Channel1",
|
||||
.info = msm_pcm_channel_weight_info,
|
||||
.get = msm_pcm_channel_weight_get,
|
||||
|
|
|
|||
Loading…
Reference in a new issue