Skip to content

Commit

Permalink
ASoC: Intel: sof-sdw-cs42142: fix for codec button mapping
Browse files Browse the repository at this point in the history
The CS42142 soundwire codec button mapping is corrected to
handle the button detection correctly.

Fixes: 1340018 ("ASoC: Intel: sof_sdw: Add helper function for cs42l42 codec")
Signed-off-by: jairaj-arava <jairaj.arava@intel.com>
  • Loading branch information
jairaj-arava authored and plbossart committed Aug 4, 2023
1 parent c75dbfe commit a456bc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/soc/intel/boards/sof_sdw_cs42l42.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ static int cs42l42_rtd_init(struct snd_soc_pcm_runtime *rtd)
jack = &ctx->sdw_headset;

snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE);
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);
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);

ret = snd_soc_component_set_jack(component, jack, NULL);

Expand Down

0 comments on commit a456bc0

Please sign in to comment.