diff mbox series

[3/3] ALSA: jack: add switch event for unsupported jack types

Message ID 1558730450-16580-1-git-send-email-bgoswami@codeaurora.org (mailing list archive)
State New, archived
Headers show
Series [1/3] ALSA: jack: Remove hard coding of jack_switch_types array size | expand

Commit Message

Banajit Goswami May 24, 2019, 8:40 p.m. UTC
From: Banajit Goswami <bgoswami@codeaurora.org>

Add a jack switch event to report unsupported plug type.
This event can be used to report a headset or an extension
cable with GND/MIC swap etc., which may not be supported by
the device.

Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
---
 sound/core/jack.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Takashi Iwai May 27, 2019, 7:43 a.m. UTC | #1
On Fri, 24 May 2019 22:40:50 +0200,
<bgoswami@codeaurora.org> wrote:
> 
> From: Banajit Goswami <bgoswami@codeaurora.org>
> 
> Add a jack switch event to report unsupported plug type.
> This event can be used to report a headset or an extension
> cable with GND/MIC swap etc., which may not be supported by
> the device.
> 
> Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>

Adding input people to Cc to get the whole picture.


> ---
>  sound/core/jack.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sound/core/jack.c b/sound/core/jack.c
> index 36b047b..4c21e48 100644
> --- a/sound/core/jack.c
> +++ b/sound/core/jack.c
> @@ -40,6 +40,7 @@ struct snd_jack_kctl {
>  	SW_JACK_PHYSICAL_INSERT,
>  	SW_VIDEOOUT_INSERT,
>  	SW_LINEIN_INSERT,
> +	SW_UNSUPPORT_INSERT,
>  };
>  #endif /* CONFIG_SND_JACK_INPUT_DEV */
>  
> -- 
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> a Linux Foundation Collaborative Project
> 
>
diff mbox series

Patch

diff --git a/sound/core/jack.c b/sound/core/jack.c
index 36b047b..4c21e48 100644
--- a/sound/core/jack.c
+++ b/sound/core/jack.c
@@ -40,6 +40,7 @@  struct snd_jack_kctl {
 	SW_JACK_PHYSICAL_INSERT,
 	SW_VIDEOOUT_INSERT,
 	SW_LINEIN_INSERT,
+	SW_UNSUPPORT_INSERT,
 };
 #endif /* CONFIG_SND_JACK_INPUT_DEV */