Skip to contentSkip to conversation

ASoC: arizona: Do not create OUT4R widget for CS47L24/WM1831

PATCH RESEND In review Richard Fitzgerald 1 participant 2 messages Apr 27, 2016

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

PATCH RESEND 1/1 ASoC: arizona: Do not create OUT4R widget for CS47L24/WM1831

The CS47L24 and WM1831 codecs only use the OUT4L widget so we can skip creation of the OUT4R widget.

---
 sound/soc/codecs/arizona.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/codecs/arizona.c +2 -0
index da61c62..0cd27e0 100644
@@ -223,6 +223,8 @@ int arizona_init_spk(struct snd_soc_codec *codec)
 
 	switch (arizona->type) {
 	case WM8997:
+	case CS47L24:
+	case WM1831:
 		break;
 	default:
 		ret = snd_soc_dapm_new_controls(dapm, &arizona_spkr, 1);
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · Richard Fitzgerald

The CS47L24 and WM1831 codecs only use the OUT4L widget so we can skip creation of the OUT4R widget.

---
 sound/soc/codecs/arizona.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/codecs/arizona.c +0 -0
index da61c62..0cd27e0 100644

sound/soc/codecs/arizona.c int arizona_init_spk(struct snd_soc_codec *codec) · line 230

Quoted 8 lines
sound/soc/codecs/arizona.c +2 -0
@@ -223,6 +223,8 @@ int arizona_init_spk(struct snd_soc_codec *codec)
 
 	switch (arizona->type) {
 	case WM8997:
+	case CS47L24:
+	case WM1831:
 		break;
 	default:
 		ret = snd_soc_dapm_new_controls(dapm, &arizona_spkr, 1);

Sorry, ignore this.
I didn't get an ack email but I can see that it has already been applied.