ASoC: Intel: sof-rt5682: fix for codec button mapping [Linux 5.2]

ASoC: Intel: sof-rt5682: fix for codec button mapping [Linux 5.2]

This Linux kernel change "ASoC: Intel: sof-rt5682: fix for codec button mapping" is included in the Linux 5.2 release. This change is authored by Sathya Prakash M R <sathya.prakash.m.r [at] intel.com> on Mon May 20 14:46:41 2019 -0500. The commit for this change in Linux stable tree is d5952f3 (patch).

ASoC: Intel: sof-rt5682: fix for codec button mapping

The RT5682 codec button mapping, initially copied from the DA7219 one,
needs to be corrected.

Signed-off-by: Sathya Prakash M R <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Mark Brown <[email protected]>

There are 6 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 sound/soc/intel/boards/sof_rt5682.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index f28fb98..39ddefe 100644
--- a/sound/soc/intel/boards/sof_rt5682.c
+++ b/sound/soc/intel/boards/sof_rt5682.c
@@ -144,9 +144,9 @@ static int sof_rt5682_codec_init(struct snd_soc_pcm_runtime *rtd)
    jack = &ctx->sof_headset;

    snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE);
-   snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOLUMEUP);
-   snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN);
-   snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOICECOMMAND);
+   snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND);
+   snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP);
+   snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN);
    ret = snd_soc_component_set_jack(component, jack, NULL);

    if (ret) {

Leave a Reply

Your email address will not be published. Required fields are marked *