diff --git a/patches.kernel.org/6.2.12-006-ALSA-i2c-cs8427-fix-iec958-mixer-control-deact.patch b/patches.kernel.org/6.2.12-006-ALSA-i2c-cs8427-fix-iec958-mixer-control-deact.patch new file mode 100644 index 0000000..40f2a49 --- /dev/null +++ b/patches.kernel.org/6.2.12-006-ALSA-i2c-cs8427-fix-iec958-mixer-control-deact.patch @@ -0,0 +1,46 @@ +From: Oswald Buddenhagen +Date: Wed, 5 Apr 2023 22:12:19 +0200 +Subject: [PATCH] ALSA: i2c/cs8427: fix iec958 mixer control deactivation +References: bsc#1012628 +Patch-mainline: 6.2.12 +Git-commit: e98e7a82bca2b6dce3e03719cff800ec913f9af7 + +commit e98e7a82bca2b6dce3e03719cff800ec913f9af7 upstream. + +snd_cs8427_iec958_active() would always delete +SNDRV_CTL_ELEM_ACCESS_INACTIVE, even though the function has an +argument `active`. + +Signed-off-by: Oswald Buddenhagen +Cc: +Link: https://lore.kernel.org/r/20230405201219.2197811-1-oswald.buddenhagen@gmx.de +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman +Signed-off-by: Jiri Slaby +--- + sound/i2c/cs8427.c | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/sound/i2c/cs8427.c b/sound/i2c/cs8427.c +index 65012af6..f58b14b4 100644 +--- a/sound/i2c/cs8427.c ++++ b/sound/i2c/cs8427.c +@@ -561,10 +561,13 @@ int snd_cs8427_iec958_active(struct snd_i2c_device *cs8427, int active) + if (snd_BUG_ON(!cs8427)) + return -ENXIO; + chip = cs8427->private_data; +- if (active) ++ if (active) { + memcpy(chip->playback.pcm_status, + chip->playback.def_status, 24); +- chip->playback.pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; ++ chip->playback.pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; ++ } else { ++ chip->playback.pcm_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; ++ } + snd_ctl_notify(cs8427->bus->card, + SNDRV_CTL_EVENT_MASK_VALUE | SNDRV_CTL_EVENT_MASK_INFO, + &chip->playback.pcm_ctl->id); +-- +2.35.3 + diff --git a/series.conf b/series.conf index 6d8e22e..ca83c22 100644 --- a/series.conf +++ b/series.conf @@ -2233,6 +2233,7 @@ patches.kernel.org/6.2.12-003-drm-i915-Workaround-ICL-CSC_MODE-sticky-arming.patch patches.kernel.org/6.2.12-004-ALSA-emu10k1-fix-capture-interrupt-handler-unl.patch patches.kernel.org/6.2.12-005-ALSA-hda-sigmatel-add-pin-overrides-for-Intel-.patch + patches.kernel.org/6.2.12-006-ALSA-i2c-cs8427-fix-iec958-mixer-control-deact.patch ######################################################## # Build fixes that apply to the vanilla kernel too.