Skip to content

Commit 46c3f61

Browse files
povikmarcan
authored andcommitted
ASoC: macaudio: Drop the 'inverse jack' speaker stuff
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
1 parent aa88662 commit 46c3f61

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

sound/soc/apple/macaudio.c

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -577,11 +577,6 @@ static struct snd_soc_jack_pin macaudio_jack_pins[] = {
577577
.pin = "Headset Mic",
578578
.mask = SND_JACK_MICROPHONE,
579579
},
580-
{
581-
.pin = "Speaker",
582-
.mask = SND_JACK_HEADPHONE,
583-
.invert = 1,
584-
},
585580
};
586581

587582
static int macaudio_probe(struct snd_soc_card *card)
@@ -655,7 +650,7 @@ static int macaudio_add_pin_routes(struct snd_soc_card *card, struct snd_soc_com
655650
snprintf(buf, sizeof(buf) - 1, "%s OUT", component->name_prefix);
656651
r->source = buf;
657652
}
658-
r->sink = "Speaker Pin Demux";
653+
r->sink = "Speaker";
659654
} else {
660655
r = &routes[nroutes++];
661656
r->source = "Jack HP";
@@ -814,16 +809,6 @@ SOC_ENUM_SINGLE_VIRT_DECL(macaudio_hp_mux_enum, macaudio_hp_mux_texts);
814809
static const struct snd_kcontrol_new macaudio_hp_mux =
815810
SOC_DAPM_ENUM("Headphones Playback Mux", macaudio_hp_mux_enum);
816811

817-
static const char *macaudio_spk_demux_texts[] = {
818-
"Inverse Jack", "Static",
819-
};
820-
821-
static SOC_ENUM_SINGLE_DECL(macaudio_spk_demux_enum,
822-
SND_SOC_NOPM, 0, macaudio_spk_demux_texts);
823-
824-
static const struct snd_kcontrol_new macaudio_spk_demux =
825-
SOC_DAPM_ENUM("Speaker Pin Demux", macaudio_spk_demux_enum);
826-
827812
static const struct snd_soc_dapm_widget macaudio_snd_widgets[] = {
828813
SND_SOC_DAPM_SPK("Speaker", NULL),
829814
SND_SOC_DAPM_SPK("Speaker (Static)", NULL),
@@ -832,7 +817,6 @@ static const struct snd_soc_dapm_widget macaudio_snd_widgets[] = {
832817

833818
SND_SOC_DAPM_MUX("Speaker Playback Mux", SND_SOC_NOPM, 0, 0, &macaudio_spk_mux),
834819
SND_SOC_DAPM_MUX("Headphone Playback Mux", SND_SOC_NOPM, 0, 0, &macaudio_hp_mux),
835-
SND_SOC_DAPM_DEMUX("Speaker Pin Demux", SND_SOC_NOPM, 0, 0, &macaudio_spk_demux),
836820

837821
SND_SOC_DAPM_AIF_OUT("Speaker Playback", NULL, 0, SND_SOC_NOPM, 0, 0),
838822
SND_SOC_DAPM_AIF_OUT("Headphone Playback", NULL, 0, SND_SOC_NOPM, 0, 0),
@@ -842,7 +826,6 @@ static const struct snd_soc_dapm_widget macaudio_snd_widgets[] = {
842826

843827
static const struct snd_kcontrol_new macaudio_controls[] = {
844828
SOC_DAPM_PIN_SWITCH("Speaker"),
845-
SOC_DAPM_PIN_SWITCH("Speaker (Static)"),
846829
SOC_DAPM_PIN_SWITCH("Headphone"),
847830
SOC_DAPM_PIN_SWITCH("Headset Mic"),
848831
};
@@ -860,9 +843,6 @@ static const struct snd_soc_dapm_route macaudio_dapm_routes[] = {
860843
* Additional paths (to specific I2S ports) are added dynamically.
861844
*/
862845

863-
{ "Speaker", "Inverse Jack", "Speaker Pin Demux" },
864-
{ "Speaker (Static)", "Static", "Speaker Pin Demux" },
865-
866846
/* Capture paths */
867847
{ "PCM0 RX", NULL, "Headset Capture" },
868848
};

0 commit comments

Comments
 (0)