From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796322148; b=SMyVf5BgcRgW9I0uVA3IssKvqRu+1cxmvmed5ImWt5EN40qYcjFX8/wlSx+BIzbWhfiA RaViGC2iYbRmOmGB6Y05v0MLTMcy7HbMLVkviuBJjFNfA/bMoJNw3ZdRqLxfiWzLzEY5w wNfJr+cN6L3/PQFpQWcMjI9Rb0f2EZLzKCOVCU7G484dWJY/cZVpqleS1ADLXL03hWC6u TNS624h5krhA0tIPCgss7HfUTgpMpo2RghXF2+qX8wN+27D6PaKFy65zL4owfkVf7/bBh OTGttCLP+HFq1v9p/WLmuifWv1Xn736qLAnzseiFGk8b98pza75ZTgLdT+c+GPyliqg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796322148; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=f7H0DZRUyJq8s3EhIQ0KOpzyNNjRU4DfaFYs9ryjmEw=; b=pti6hz8My81tAbbMxXQah6Ipw+wv/yzIl4mGWevgPku7hHoZfYFrjLPeAIYgpaDeathA ZcjBlU9qdSfIidNljlHSE2WBTpzRNO6wTCCNfZ6fFJb5OyNW3a+qWiZc/baCftgParxP9 SJ1BPIKF2Rq7YG4S+c0nMUW1TkKHiogOnFFQPxxhZVy6pef37yXSu4d+00Avf0gH3Z4lJ Y6cusIRKAhJ4cvC8uWFOYJwWf8J6ecsoG8JWxgZ1CY75etFfEP2h4XI5pB0VC6Shgk711 G/6ikqZD7eiiwHR+d9lwRlw92MZK63qOoM0cC9ULcJZheTGE5z5x6oJ9TZf0hi/UabQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="KLWpr/TW"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 003C8606A32C for ; Thu, 3 Dec 2026 18:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KLWpr/TW Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8C6A1F000C1; Thu, 3 Dec 2026 18:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796322147; bh=f7H0DZRUyJq8s3EhIQ0KOpzyNNjRU4DfaFYs9ryjmEw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=KLWpr/TWTDiYMUC6+TKFZKnLJ1WwqQiBZOhigagXOycS+xxFwcp/+FyHmM9mWrQql lL8PRwaaRirl/khSJlubRPdxqHDIphFgOfpniGviD/4tUSpF251rAvZCnrK37TXNa2 Tp4tCUswB3w4gdFC9ZjQd8M/glqdebCIQh3qqooDJ9VZbbM96SILxhXQtv4HIi/Qum UmfxWSOK0P1tfAOjheic39+nIvhCFaNvmxWfyBEZ4McGGgLm4459ive7omeNV22iln B6uiY+fO6Ii96wKtRvVpTx1ASWS1nfM5AiMYcKnJiM34el4QTYYwLBHVFCEcx1zyoc V2Pgs5RiZFaeQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/3] ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers Reply-To: sashiko-reviews@lists.linux.dev To: "Sreeraj S Kurup" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261203170741.3873-3-sreekuttan2156239@gmail.com> References: <20261203170741.3873-1-sreekuttan2156239@gmail.com> <20261203170741.3873-3-sreekuttan2156239@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 18:22:27 +0000 X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] ALSA: hda: local variable current in hdmi_set_channel_count() breaks build - [High] ALSA: hda: split snd_hdac_codec_read() migration breaks build and bisect -- commit d54e70f2805e77d43db50fbde0556d0b48b00dcf Author: Sreeraj S Kurup ALSA: hda: hdmi_chmap: Update HDMI channel map codec read callers This commit updates the snd_hdac_codec_read() callers in hdmi_chmap.c to use the new status and output parameter interface, propagating read errors and skipping the channel count update when reading the current count fails. > diff --git a/sound/hda/core/hdmi_chmap.c b/sound/hda/core/hdmi_chmap.c > index c897fc443467c..e9e599154ef12 100644 > --- a/sound/hda/core/hdmi_chmap.c > +++ b/sound/hda/core/hdmi_chmap.c > @@ -190,21 +190,41 @@ static int hdmi_pin_set_slot_channel(struct hdac_de= vice *codec, > static int hdmi_pin_get_slot_channel(struct hdac_device *codec, > hda_nid_t pin_nid, int asp_slot) > { > - return (snd_hdac_codec_read(codec, pin_nid, 0, > + unsigned int res; > + int err; > + > + err =3D snd_hdac_codec_read(codec, pin_nid, 0, > AC_VERB_GET_HDMI_CHAN_SLOT, > - asp_slot) & 0xf0) >> 4; > + asp_slot, &res); > + if (err < 0) > + return err; > + > + return (res & 0xf0) >> 4; > } [Severity: High] Does splitting the snd_hdac_codec_read() signature change across commits break builds and git bisect? Commit "ALSA: hda: core: Fix command creation error handling" changed snd_hdac_codec_read() to six arguments, leaving callers in include/sound/hda_codec.h (snd_hda_codec_read() and snd_hda_codec_write_sync()) and sound/soc/codecs/hdac_hdmi.c broken. Commit "ASoC: codecs: hdac_hdmi: Update codec read API callers" updates hdac_hdmi.c later, but include/sound/hda_codec.h remains un-updated at the end of the series. All callers need to be updated in the same commit as the signature change, or migrated via a transitional helper first. [ ... ] > static void hdmi_set_channel_count(struct hdac_device *codec, > hda_nid_t cvt_nid, int chs) > { > - if (chs !=3D hdmi_get_channel_count(codec, cvt_nid)) > + int current; > + > + current =3D hdmi_get_channel_count(codec, cvt_nid); > + if (current < 0) > + return; > + > + if (chs !=3D current) > snd_hdac_codec_write(codec, cvt_nid, 0, > AC_VERB_SET_CVT_CHAN_COUNT, chs - 1); > } [Severity: High] Does naming this local variable current break the build? current is a global macro expanding to get_current() via asm/current.h (included through sound/control.h and linux/wait.h), so this fails to compile whenever CONFIG_SND_HDA_CORE is enabled. Renaming it to something like cur_chs would avoid the collision. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203170741.3873= -1-sreekuttan2156239@gmail.com?part=3D2