Skip to contentSkip to conversation

ASoC: TWL4030: Fixes and small cleanup

PATCH Applied Peter Ujfalusi 2 participants 5 messages Dec 10, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ASoC: TWL4030: Fixes and small cleanup

Hello,

The CarkitL/R DAPM output somehow got lost, the first patch adds it. Really small cleanup for line wrap in the mux switch texts. DAC names changed in order to avoid confusion with the mux switch names.

---
Peter Ujfalusi (3):
ASoC: TWL4030: Add missing Carkit output
ASoC: TWL4030: Small cleanup
ASoC: TWL4030: Change the name for the DACs

 sound/soc/codecs/twl4030.c |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)
#1 lore raw

PATCH 1/3 ASoC: TWL4030: Add missing Carkit output

SND_SOC_DAPM_OUTPUT definition for carkitL/R was missing.

---
 sound/soc/codecs/twl4030.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/codecs/twl4030.c +2 -0
index 373daa4..df9f2ce 100644
@@ -761,6 +761,8 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
 	SND_SOC_DAPM_OUTPUT("PREDRIVER"),
 	SND_SOC_DAPM_OUTPUT("HSOL"),
 	SND_SOC_DAPM_OUTPUT("HSOR"),
+	SND_SOC_DAPM_OUTPUT("CARKITL"),
+	SND_SOC_DAPM_OUTPUT("CARKITR"),
 	SND_SOC_DAPM_OUTPUT("HFL"),
 	SND_SOC_DAPM_OUTPUT("HFR"),
 
Signature · 1 line
1.6.0.4
#2 lore raw

PATCH 2/3 ASoC: TWL4030: Small cleanup

The mux switch related texts fits to on line, no need to wrap them.

---
 sound/soc/codecs/twl4030.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
sound/soc/codecs/twl4030.c +3 -6
index df9f2ce..e3a7115 100644
@@ -192,8 +192,7 @@ static void twl4030_init_chip(struct snd_soc_codec *codec)
 
 /* Earpiece */
 static const char *twl4030_earpiece_texts[] =
-		{"Off", "DACL1", "DACL2", "Invalid",
-		"DACR1"};
+		{"Off", "DACL1", "DACL2", "Invalid", "DACR1"};
 
 static const struct soc_enum twl4030_earpiece_enum =
 	SOC_ENUM_SINGLE(TWL4030_REG_EAR_CTL, 1,
@@ -205,8 +204,7 @@ SOC_DAPM_ENUM("Route", twl4030_earpiece_enum);
 
 /* PreDrive Left */
 static const char *twl4030_predrivel_texts[] =
-		{"Off", "DACL1", "DACL2", "Invalid",
-		"DACR2"};
+		{"Off", "DACL1", "DACL2", "Invalid", "DACR2"};
 
 static const struct soc_enum twl4030_predrivel_enum =
 	SOC_ENUM_SINGLE(TWL4030_REG_PREDL_CTL, 1,
@@ -218,8 +216,7 @@ SOC_DAPM_ENUM("Route", twl4030_predrivel_enum);
 
 /* PreDrive Right */
 static const char *twl4030_predriver_texts[] =
-		{"Off", "DACR1", "DACR2", "Invalid",
-		"DACL2"};
+		{"Off", "DACR1", "DACR2", "Invalid", "DACL2"};
 
 static const struct soc_enum twl4030_predriver_enum =
 	SOC_ENUM_SINGLE(TWL4030_REG_PREDR_CTL, 1,
Signature · 1 line
1.6.0.4
#3 lore raw

PATCH 3/3 ASoC: TWL4030: Change the name for the DACs

To avoid confusion the names for the DACs changed:
DACL1 -> DAC Left1
...

---
 sound/soc/codecs/twl4030.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
sound/soc/codecs/twl4030.c +8 -8
index e3a7115..aa9f855 100644
@@ -764,13 +764,13 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
 	SND_SOC_DAPM_OUTPUT("HFR"),
 
 	/* DACs */
-	SND_SOC_DAPM_DAC("DACR1", "Right Front Playback",
+	SND_SOC_DAPM_DAC("DAC Right1", "Right Front Playback",
 			TWL4030_REG_AVDAC_CTL, 0, 0),
-	SND_SOC_DAPM_DAC("DACL1", "Left Front Playback",
+	SND_SOC_DAPM_DAC("DAC Left1", "Left Front Playback",
 			TWL4030_REG_AVDAC_CTL, 1, 0),
-	SND_SOC_DAPM_DAC("DACR2", "Right Rear Playback",
+	SND_SOC_DAPM_DAC("DAC Right2", "Right Rear Playback",
 			TWL4030_REG_AVDAC_CTL, 2, 0),
-	SND_SOC_DAPM_DAC("DACL2", "Left Rear Playback",
+	SND_SOC_DAPM_DAC("DAC Left2", "Left Rear Playback",
 			TWL4030_REG_AVDAC_CTL, 3, 0),
 
 	/* Analog PGAs */
@@ -816,10 +816,10 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
 };
 
 static const struct snd_soc_dapm_route intercon[] = {
-	{"ARXL1_APGA", NULL, "DACL1"},
-	{"ARXR1_APGA", NULL, "DACR1"},
-	{"ARXL2_APGA", NULL, "DACL2"},
-	{"ARXR2_APGA", NULL, "DACR2"},
+	{"ARXL1_APGA", NULL, "DAC Left1"},
+	{"ARXR1_APGA", NULL, "DAC Right1"},
+	{"ARXL2_APGA", NULL, "DAC Left2"},
+	{"ARXR2_APGA", NULL, "DAC Right2"},
 
 	/* Internal playback routings */
 	/* Earpiece */
Signature · 1 line
1.6.0.4
Applied
#4 lore raw
In reply to Peter Ujfalusi
Quoted 3 lines · Peter Ujfalusi

The CarkitL/R DAPM output somehow got lost, the first patch adds it. Really small cleanup for line wrap in the mux switch texts. DAC names changed in order to avoid confusion with the mux switch names.

Applied all, thanks.