Skip to contentSkip to conversation

ASoC: TWL4030: change the streams names for playbacks

PATCH Applied Peter Ujfalusi 2 participants 3 messages May 22, 2009

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

cover ASoC: TWL4030: change the streams names for playbacks

Hello,

rename the HiFi and Voice playback streams to have unique names to aid DAPM to correctly pick the active playback streams on the twl4030 codec.

---
Peter Ujfalusi (1):
ASoC: TWL4030: Differentiate the playback streams

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

PATCH 1/1 ASoC: TWL4030: Differentiate the playback streams

Give unique stream names for the two playback streams so DAPM can figure out which codec_dai is in use.

---
 sound/soc/codecs/twl4030.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
sound/soc/codecs/twl4030.c +6 -6
index 584507f..9197fdd 100644
@@ -1092,13 +1092,13 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
 	SND_SOC_DAPM_OUTPUT("VIBRA"),
 
 	/* DACs */
-	SND_SOC_DAPM_DAC("DAC Right1", "Right Front Playback",
+	SND_SOC_DAPM_DAC("DAC Right1", "Right Front HiFi Playback",
 			SND_SOC_NOPM, 0, 0),
-	SND_SOC_DAPM_DAC("DAC Left1", "Left Front Playback",
+	SND_SOC_DAPM_DAC("DAC Left1", "Left Front HiFi Playback",
 			SND_SOC_NOPM, 0, 0),
-	SND_SOC_DAPM_DAC("DAC Right2", "Right Rear Playback",
+	SND_SOC_DAPM_DAC("DAC Right2", "Right Rear HiFi Playback",
 			SND_SOC_NOPM, 0, 0),
-	SND_SOC_DAPM_DAC("DAC Left2", "Left Rear Playback",
+	SND_SOC_DAPM_DAC("DAC Left2", "Left Rear HiFi Playback",
 			SND_SOC_NOPM, 0, 0),
 	SND_SOC_DAPM_DAC("DAC Voice", "Voice Playback",
 			SND_SOC_NOPM, 0, 0),
@@ -1937,7 +1937,7 @@ struct snd_soc_dai twl4030_dai[] = {
 {
 	.name = "twl4030",
 	.playback = {
-		.stream_name = "Playback",
+		.stream_name = "HiFi Playback",
 		.channels_min = 2,
 		.channels_max = 4,
 		.rates = TWL4030_RATES | SNDRV_PCM_RATE_96000,
@@ -1953,7 +1953,7 @@ struct snd_soc_dai twl4030_dai[] = {
 {
 	.name = "twl4030 Voice",
 	.playback = {
-		.stream_name = "Playback",
+		.stream_name = "Voice Playback",
 		.channels_min = 1,
 		.channels_max = 1,
 		.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
Signature · 1 line
1.6.3.1
Applied
#2 lore raw

Re: [PATCH 1/1] ASoC: TWL4030: Differentiate the playback streams

Quoted 4 lines · Peter Ujfalusi

Give unique stream names for the two playback streams so DAPM can figure out which codec_dai is in use.

Applied, thanks.