Skip to contentSkip to conversation

ALSA: jack: add switch event for unsupported jack types

PATCH In review [email protected] 2 participants 2 messages May 24, 2019 – May 27, 2019

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

PATCH 3/3 ALSA: jack: add switch event for unsupported jack types

From: Banajit Goswami <[email protected]>

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.

---
 sound/core/jack.c | 1 +
 1 file changed, 1 insertion(+)
sound/core/jack.c +1 -0
index 36b047b..4c21e48 100644
@@ -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 */
 
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#1 lore raw
Quoted 10 lines · On Fri, 24 May 2019 22:40:50 +0200, <[email protected]> wrote:

From: Banajit Goswami <[email protected]>

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.

Adding input people to Cc to get the whole picture.

Quoted 21 lines
---
 sound/core/jack.c | 1 +
 1 file changed, 1 insertion(+)
sound/core/jack.c +1 -0
index 36b047b..4c21e48 100644
@@ -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 */
 
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project