* [PATCH] ASoC: mediatek: Add I03/I04 widgets and corresponding routes
@ 2016-02-25 7:12 PC Liao
2016-02-26 2:30 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: PC Liao @ 2016-02-25 7:12 UTC (permalink / raw)
To: linux-arm-kernel
From: Koro Chen <koro.chen@mediatek.com>
Add these widgets to allow another path from I2S input.
Change-Id: Ib6804bbbde388830d8359245fe13bbb0f2bb36ba
Signed-off-by: Koro Chen <koro.chen@mediatek.com>
Signed-off-by: PC Liao <pc.liao@mediatek.com>
---
sound/soc/mediatek/mtk-afe-pcm.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/sound/soc/mediatek/mtk-afe-pcm.c b/sound/soc/mediatek/mtk-afe-pcm.c
index 689c51f..5de878f 100644
--- a/sound/soc/mediatek/mtk-afe-pcm.c
+++ b/sound/soc/mediatek/mtk-afe-pcm.c
@@ -40,6 +40,7 @@
#define AFE_CONN1 0x0024
#define AFE_CONN2 0x0028
+#define AFE_CONN3 0x002c
#define AFE_CONN7 0x0460
#define AFE_CONN8 0x0464
#define AFE_HDMI_CONN0 0x0390
@@ -63,6 +64,7 @@
#define AFE_HDMI_OUT_CUR 0x0378
#define AFE_HDMI_OUT_END 0x037c
+#define AFE_ADDA_TOP_CON0 0x0120
#define AFE_ADDA2_TOP_CON0 0x0600
#define AFE_HDMI_OUT_CON0 0x0370
@@ -259,6 +261,7 @@ static int mtk_afe_set_i2s(struct mtk_afe *afe, unsigned int rate)
return -EINVAL;
/* from external ADC */
+ regmap_update_bits(afe->regmap, AFE_ADDA_TOP_CON0, 0x1, 0x1);
regmap_update_bits(afe->regmap, AFE_ADDA2_TOP_CON0, 0x1, 0x1);
/* set input */
@@ -903,15 +906,19 @@ static const struct snd_kcontrol_new mtk_afe_o04_mix[] = {
};
static const struct snd_kcontrol_new mtk_afe_o09_mix[] = {
+ SOC_DAPM_SINGLE_AUTODISABLE("I03 Switch", AFE_CONN3, 0, 1, 0),
SOC_DAPM_SINGLE_AUTODISABLE("I17 Switch", AFE_CONN7, 30, 1, 0),
};
static const struct snd_kcontrol_new mtk_afe_o10_mix[] = {
+ SOC_DAPM_SINGLE_AUTODISABLE("I04 Switch", AFE_CONN3, 3, 1, 0),
SOC_DAPM_SINGLE_AUTODISABLE("I18 Switch", AFE_CONN8, 0, 1, 0),
};
static const struct snd_soc_dapm_widget mtk_afe_pcm_widgets[] = {
/* inter-connections */
+ SND_SOC_DAPM_MIXER("I03", SND_SOC_NOPM, 0, 0, NULL, 0),
+ SND_SOC_DAPM_MIXER("I04", SND_SOC_NOPM, 0, 0, NULL, 0),
SND_SOC_DAPM_MIXER("I05", SND_SOC_NOPM, 0, 0, NULL, 0),
SND_SOC_DAPM_MIXER("I06", SND_SOC_NOPM, 0, 0, NULL, 0),
SND_SOC_DAPM_MIXER("I17", SND_SOC_NOPM, 0, 0, NULL, 0),
@@ -934,12 +941,16 @@ static const struct snd_soc_dapm_route mtk_afe_pcm_routes[] = {
{"I2S Playback", NULL, "O04"},
{"VUL", NULL, "O09"},
{"VUL", NULL, "O10"},
+ {"I03", NULL, "I2S Capture"},
+ {"I04", NULL, "I2S Capture"},
{"I17", NULL, "I2S Capture"},
{"I18", NULL, "I2S Capture"},
{ "O03", "I05 Switch", "I05" },
{ "O04", "I06 Switch", "I06" },
{ "O09", "I17 Switch", "I17" },
+ { "O09", "I03 Switch", "I03" },
{ "O10", "I18 Switch", "I18" },
+ { "O10", "I04 Switch", "I04" },
};
static const struct snd_soc_dapm_route mtk_afe_hdmi_routes[] = {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ASoC: mediatek: Add I03/I04 widgets and corresponding routes
2016-02-25 7:12 [PATCH] ASoC: mediatek: Add I03/I04 widgets and corresponding routes PC Liao
@ 2016-02-26 2:30 ` Mark Brown
2016-02-26 2:41 ` PC Liao
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2016-02-26 2:30 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Feb 25, 2016 at 03:12:33PM +0800, PC Liao wrote:
> Change-Id: Ib6804bbbde388830d8359245fe13bbb0f2bb36ba
Don't include noise like this in upstream submissions, we don't use your
gerritt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160226/a74cc38f/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ASoC: mediatek: Add I03/I04 widgets and corresponding routes
2016-02-26 2:30 ` Mark Brown
@ 2016-02-26 2:41 ` PC Liao
2016-02-26 3:10 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: PC Liao @ 2016-02-26 2:41 UTC (permalink / raw)
To: linux-arm-kernel
Hi Mark,
On Fri, 2016-02-26 at 10:30 +0800, Mark Brown wrote:
> On Thu, Feb 25, 2016 at 03:12:33PM +0800, PC Liao wrote:
>
> > Change-Id: Ib6804bbbde388830d8359245fe13bbb0f2bb36ba
>
> Don't include noise like this in upstream submissions, we don't use your
> gerritt.
Sorry about that.
I will upload new version.
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ASoC: mediatek: Add I03/I04 widgets and corresponding routes
2016-02-26 2:41 ` PC Liao
@ 2016-02-26 3:10 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2016-02-26 3:10 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Feb 26, 2016 at 10:41:56AM +0800, PC Liao wrote:
> On Fri, 2016-02-26 at 10:30 +0800, Mark Brown wrote:
> > On Thu, Feb 25, 2016 at 03:12:33PM +0800, PC Liao wrote:
> > > Change-Id: Ib6804bbbde388830d8359245fe13bbb0f2bb36ba
> > Don't include noise like this in upstream submissions, we don't use your
> > gerritt.
> Sorry about that.
> I will upload new version.
It's fine, I edited out - more for future reference.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160226/1a566e44/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-26 3:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25 7:12 [PATCH] ASoC: mediatek: Add I03/I04 widgets and corresponding routes PC Liao
2016-02-26 2:30 ` Mark Brown
2016-02-26 2:41 ` PC Liao
2016-02-26 3:10 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox