|
@@ -34,13 +34,18 @@
|
|
#define DRV_NAME "rockchip-snd-max98090"
|
|
#define DRV_NAME "rockchip-snd-max98090"
|
|
|
|
|
|
static struct snd_soc_jack headset_jack;
|
|
static struct snd_soc_jack headset_jack;
|
|
|
|
+
|
|
|
|
+/* Headset jack detection DAPM pins */
|
|
static struct snd_soc_jack_pin headset_jack_pins[] = {
|
|
static struct snd_soc_jack_pin headset_jack_pins[] = {
|
|
{
|
|
{
|
|
- .pin = "Headset Jack",
|
|
|
|
- .mask = SND_JACK_HEADPHONE | SND_JACK_MICROPHONE |
|
|
|
|
- SND_JACK_BTN_0 | SND_JACK_BTN_1 |
|
|
|
|
- SND_JACK_BTN_2 | SND_JACK_BTN_3,
|
|
|
|
|
|
+ .pin = "Headphone",
|
|
|
|
+ .mask = SND_JACK_HEADPHONE,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .pin = "Headset Mic",
|
|
|
|
+ .mask = SND_JACK_MICROPHONE,
|
|
},
|
|
},
|
|
|
|
+
|
|
};
|
|
};
|
|
|
|
|
|
static const struct snd_soc_dapm_widget rk_dapm_widgets[] = {
|
|
static const struct snd_soc_dapm_widget rk_dapm_widgets[] = {
|