Skip to content

ALSA: some driver fixes for control input validations

Takashi Iwai linux-kselftest linux-sound 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 0 repliesNew
  2. v26 patches 11 repliesSuperseded
  3. v15 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* Replace with Mark's patch for kselftest
* Apply the validation for user controls in put callback instead

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ALSA: vmaster: Return error for invalid input valuessound/core/vmaster.c+8 -00 replies
2/6ALSA: hda: Return -EINVAL for invalid volume/switch inputssound/pci/hda/hda_codec.c+18 -50 replies
3/6ALSA: control: Apply sanity check of input values for user elementssound/core/control.c+5 -10 replies
4/6kselftest/alsa: Fix validation of writes to volatile controlstools/testing/selftests/alsa/mixer-test.c+29 -160 replies
5/6ALSA: chmap: Mark Channel Map controls as volatilesound/core/pcm_lib.c+1 -00 replies
6/6ALSA: hda: Add input value sanity checks to HDMI channel map controlssound/hda/hdmi_chmap.c+18 -00 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchJaroslav KyselaMark BrownTakashi Sakamoto
1/6R-b
2/6R-b
3/6R-b R-b R-b
4/6
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/6] ALSA: some driver fixes for control input validations

Hi,

this is a v3 patch set as a follow up of the thread about the errors reported by kselftest mixer-test. It changes HD-audio and vmaster control behavior to return -EINVAL for invalid input values.

There is a change in kselftest itself to skip the verification after write tests for volatile controls, too. It's for the channel map controls that can't hold the stable values.

v2->v3:
* Replace with Mark's patch for kselftest
* Apply the validation for user controls in put callback instead

v1->v2:
* Skip only verification after write in kselftest
* Add sanity check to HDMI chmap write, too

v2: https://lore.kernel.org/r/[email protected]
v1: https://lore.kernel.org/r/[email protected]

Takashi

===

Mark Brown (1):
kselftest/alsa: Fix validation of writes to volatile controls

Takashi Iwai (5):
ALSA: vmaster: Return error for invalid input values
ALSA: hda: Return -EINVAL for invalid volume/switch inputs
ALSA: control: Apply sanity check of input values for user elements
ALSA: chmap: Mark Channel Map controls as volatile
ALSA: hda: Add input value sanity checks to HDMI channel map controls

 sound/core/control.c                      |  6 ++-
 sound/core/pcm_lib.c                      |  1 +
 sound/core/vmaster.c                      |  8 ++++
 sound/hda/hdmi_chmap.c                    | 18 +++++++++
 sound/pci/hda/hda_codec.c                 | 23 +++++++++---
 tools/testing/selftests/alsa/mixer-test.c | 45 +++++++++++++++--------
 6 files changed, 79 insertions(+), 22 deletions(-)
Signature · 1 line
2.43.0