diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2014-06-23 09:29:40 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-24 11:20:43 -0400 |
commit | 24988992932612ba1c069ad597125dbce3e19621 (patch) | |
tree | fc1ccde67c54f9e068eae7e6fe839505db3c3382 | |
parent | 6a0cdccad87a7032440f204c04a599e4bcc8656b (diff) |
ASoC: Intel: byt-max98090: Fix jack type in order to report correctly
Pass actual jack type bitmask to snd_soc_jack_new() in order to report
also microphone detections and not only headphone. While at it change also
jack name and pass also SND_JACK_LINEOUT type.
Reported-by: Jin Yao <yao.jin@intel.com>
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/intel/byt-max98090.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/intel/byt-max98090.c b/sound/soc/intel/byt-max98090.c index 165ab6d6c4a3..3e2e7152ae66 100644 --- a/sound/soc/intel/byt-max98090.c +++ b/sound/soc/intel/byt-max98090.c | |||
@@ -108,7 +108,8 @@ static int byt_max98090_init(struct snd_soc_pcm_runtime *runtime) | |||
108 | } | 108 | } |
109 | 109 | ||
110 | /* Enable jack detection */ | 110 | /* Enable jack detection */ |
111 | ret = snd_soc_jack_new(codec, "Headphone", SND_JACK_HEADPHONE, jack); | 111 | ret = snd_soc_jack_new(codec, "Headset", |
112 | SND_JACK_LINEOUT | SND_JACK_HEADSET, jack); | ||
112 | if (ret) | 113 | if (ret) |
113 | return ret; | 114 | return ret; |
114 | 115 | ||