Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b29d7c5f authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Mark Brown
Browse files

ASoC: Intel: byt-max98090: Do not change speaker and DMIC with jack state



Kernel should not enable/disable speakers and digital microphone whenever
jack is inserted/removed. This is more use-case than kernel specific
decision. For instance one may want to play VoIP ring tones using both
speakers and headphone but play music only from one of them.

Because of above reason remove "Ext Spk" and "Int Mic" update when jack
state is changed. Also this update was illogical anyway: "Ext Spk" was
enabled when jack was inserted and disabled when jack was removed.

Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 0ec66fed
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -64,14 +64,6 @@ static struct snd_soc_jack_pin hs_jack_pins[] = {
		.pin	= "Headset Mic",
		.pin	= "Headset Mic",
		.mask	= SND_JACK_MICROPHONE,
		.mask	= SND_JACK_MICROPHONE,
	},
	},
	{
		.pin	= "Ext Spk",
		.mask	= SND_JACK_LINEOUT,
	},
	{
		.pin	= "Int Mic",
		.mask	= SND_JACK_LINEIN,
	},
};
};


static struct snd_soc_jack_gpio hs_jack_gpios[] = {
static struct snd_soc_jack_gpio hs_jack_gpios[] = {