diff options
author | Sathyanarayana Nujella <sathyanarayana.nujella@intel.com> | 2016-10-04 13:33:20 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-10-06 07:06:08 -0400 |
commit | 0dcfc487e521ab2d7da5c512d74337c6e706855e (patch) | |
tree | 9f2548a68f74cbdfefa4626b86b05247efc23bb0 /sound/soc/intel/boards | |
parent | 61ab0d403bbd9d5f6e000e3b5734049141b91f6f (diff) |
ASoC: Intel: report JACK_LINEOUT event
This patch updates Jack type bitmask to include SND_JACK_LINEOUT while
creating a new jack, so that LINEOUT events are reported properly.
Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards')
-rw-r--r-- | sound/soc/intel/boards/bxt_da7219_max98357a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/intel/boards/bxt_da7219_max98357a.c b/sound/soc/intel/boards/bxt_da7219_max98357a.c index 3774b117d365..2c93fa26e13b 100644 --- a/sound/soc/intel/boards/bxt_da7219_max98357a.c +++ b/sound/soc/intel/boards/bxt_da7219_max98357a.c | |||
@@ -129,8 +129,8 @@ static int broxton_da7219_codec_init(struct snd_soc_pcm_runtime *rtd) | |||
129 | */ | 129 | */ |
130 | ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", | 130 | ret = snd_soc_card_jack_new(rtd->card, "Headset Jack", |
131 | SND_JACK_HEADSET | SND_JACK_BTN_0 | SND_JACK_BTN_1 | | 131 | SND_JACK_HEADSET | SND_JACK_BTN_0 | SND_JACK_BTN_1 | |
132 | SND_JACK_BTN_2 | SND_JACK_BTN_3, &broxton_headset, | 132 | SND_JACK_BTN_2 | SND_JACK_BTN_3 | SND_JACK_LINEOUT, |
133 | NULL, 0); | 133 | &broxton_headset, NULL, 0); |
134 | if (ret) { | 134 | if (ret) { |
135 | dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret); | 135 | dev_err(rtd->dev, "Headset Jack creation failed: %d\n", ret); |
136 | return ret; | 136 | return ret; |