Message ID | 20230807215000.515846-2-pierre-louis.bossart@linux.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e61994882611d1a49387be37fda005e0ef6226ac |
Headers | show |
Series | ASoC: Intel: sof_sdw: fix two settings | expand |
On Mon, Aug 07, 2023 at 04:49:59PM -0500, Pierre-Louis Bossart wrote: > From: jairaj-arava <jairaj.arava@intel.com> > > The CS42142 soundwire codec button mapping is corrected to > handle the button detection correctly. > > Fixes: 1340018d8683 ("ASoC: Intel: sof_sdw: Add helper function for cs42l42 codec") Sorry, it's this one with the incorrect ID - you've referenced something from the SOF tree I guess. I'll fix it up.
On 8/7/23 17:11, Mark Brown wrote: > On Mon, Aug 07, 2023 at 04:49:59PM -0500, Pierre-Louis Bossart wrote: >> From: jairaj-arava <jairaj.arava@intel.com> >> >> The CS42142 soundwire codec button mapping is corrected to >> handle the button detection correctly. >> >> Fixes: 1340018d8683 ("ASoC: Intel: sof_sdw: Add helper function for cs42l42 codec") > > Sorry, it's this one with the incorrect ID - you've referenced something > from the SOF tree I guess. I'll fix it up. Indeed, sorry about this one. I took Jai's patch after a long set of rebases and didn't check the commit ID. oops.
diff --git a/sound/soc/intel/boards/sof_sdw_cs42l42.c b/sound/soc/intel/boards/sof_sdw_cs42l42.c index c4a16e4c9f69..ad130d913415 100644 --- a/sound/soc/intel/boards/sof_sdw_cs42l42.c +++ b/sound/soc/intel/boards/sof_sdw_cs42l42.c @@ -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);