From: Takashi Iwai <tiwai@suse.de>
To: Arnav Kapoor <kapoorarnav43@gmail.com>
Cc: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda: reject invalid values in the IEC958 switch put callbacks
Date: Tue, 24 Nov 2026 13:50:59 +0100 [thread overview]
Message-ID: <87se0q9yvg.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261123170203.243633-1-kapoorarnav43@gmail.com>
On Mon, 23 Nov 2026 18:02:01 +0100,
Arnav Kapoor wrote:
>
> snd_hda_spdif_out_switch_put(), snd_hda_spdif_in_switch_put() and
> spdif_share_sw_put() treat any non-zero value as "on", so writes of
> values outside 0..1, such as 2, -1 or INT_MAX, to these boolean
> controls succeed instead of being rejected. snd_hda_mixer_amp_switch_put()
> in the same file already returns -EINVAL for them.
>
> Check the value in the same way before taking spdif_mutex.
>
> Signed-off-by: Arnav Kapoor <kapoorarnav43@gmail.com>
Applied to for-next branch now. Thanks.
Takashi
prev parent reply other threads:[~2026-11-24 12:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 17:02 Arnav Kapoor
2026-11-24 2:33 ` HyeongJun An
2026-11-24 12:50 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87se0q9yvg.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=kapoorarnav43@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®