diff mbox

[5/7] ASoC: rockchip-max98090: Fix DAPM unknown pin for Headset Jack

Message ID 1462435421-21205-6-git-send-email-enric.balletbo@collabora.com (mailing list archive)
State New, archived
Headers show

Commit Message

Enric Balletbo i Serra May 5, 2016, 8:03 a.m. UTC
The patch fixes the following error message.

 rockchip-snd-max98090 sound: ASoC: DAPM unknown pin Headset Jack

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 sound/soc/rockchip/rockchip_max98090.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown May 5, 2016, 7:20 p.m. UTC | #1
On Thu, May 05, 2016 at 10:03:39AM +0200, Enric Balletbo i Serra wrote:
> The patch fixes the following error message.
> 
>  rockchip-snd-max98090 sound: ASoC: DAPM unknown pin Headset Jack

>  	{
> -		.pin = "Headset Jack",
> +		.pin = "Headphone",

...and makes automatic DAPM management of the headphone jack work.
Again, it's not just shutting up warnings it's fixing an actual bug.
diff mbox

Patch

diff --git a/sound/soc/rockchip/rockchip_max98090.c b/sound/soc/rockchip/rockchip_max98090.c
index 3da7891..40d2ec9 100644
--- a/sound/soc/rockchip/rockchip_max98090.c
+++ b/sound/soc/rockchip/rockchip_max98090.c
@@ -36,7 +36,7 @@ 
 static struct snd_soc_jack headset_jack;
 static struct snd_soc_jack_pin headset_jack_pins[] = {
 	{
-		.pin = "Headset Jack",
+		.pin = "Headphone",
 		.mask = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE |
 			SND_JACK_BTN_0 | SND_JACK_BTN_1 |
 			SND_JACK_BTN_2 | SND_JACK_BTN_3,