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=1796130230; b=hyo1DTYgMEtYZNuvPRPBA7UztoO1UVjmA0Ywpye7uGJeID/6njL1Gvo9EC5wsZ8ROIZ5 7Ce06atG9h1l2NjqWeQyF2+S/Ye9ki56m+o7lvy1LqdWI3R4RcThDMdoMm6pe5wWcdgCs IUDx/xRhOaxGoOB4iiVqi/eyYZwyhSsE/0bosHDdUld0/FancQsQA38hfjzjJyNdYj2uo XOaPC3uZ38ZPQJ1JG+PbdCpD3a35n0AQm0CwwKWMk4nFEUjY22vvcMnCJv+a481QZxIa0 3P8IXHuM6XK8SCr5CJMc/xubjoYuhpylm5DGszsTwOAPBtDuh/edievDEvLgV80tShQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796130230; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=N9IQ2pVEASLErL8omTY9tl561v5dxKWj3ZRKo5bt/dI=; b=Xz+tkibrEinTQPmo3/mK/X/GEye6/aBrye6RHA4EJrJOxbhzwvCTeq5rP8NeGcCzEz3W qs6/x2cRC1A09DFF/DBajKGZc+O56uy1mJXLjLeCOHZ3yNRIcy0iQY5Slc6BLIiyTJZiE 8USFj9Q+4XFaV11hZ64GpBbLM2f87VXHrgM0BZI2r+1hPOQEPvgxpMfMEtZcmGWwkHuqC DQxOSwBEx00SU3Gvb1eResW1hrcspifZKJaRgwleh8U9u5u0ibr+hP2o7Pa6SOaJrdyKN BtsON6SwEHE0qou0DQQN01SiVgH2sQneOrRW2JKKVLQk3JYIs4YEzBVthJt3op9eydA== 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="G0uNyYT/"; 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 04513606A320; Tue, 1 Dec 2026 13:03:49 +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=G0uNyYT/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DA3D1F0089C; Tue, 1 Dec 2026 13:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796130229; bh=N9IQ2pVEASLErL8omTY9tl561v5dxKWj3ZRKo5bt/dI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=G0uNyYT/y2E56NniNAr7bCv++HFqHp3MLXUN/TQ9LkRNOAHHYvdpBTPABylghgEyG 8AZyzGpYlXw5zqCv2gN02xI0SYLsBmPlTI7tMnj+ok1KbCGjrALBPyrTZcuOsD0jXn AU0bUHGFu7Ce29BQYBVPnLJazQ/gZIjXz5EWXFNdNdMkAU9u8A8NETwbUXknwTXomT kwzNvcgLY1wIVBbqpdR3yxLZ22gGQKhixiC/KZ/on0RjAZO84iOVdcs23zNzDrEmbB 6k2m7ZS7eNQbbW5CcuNioLjpy9n6TIFhbJGEdGwXumDIlhPtVxyGy8YsUgLJ7IcxN5 gQezv9CCebbSA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 07/24] ASoC: codecs: wsa883x: add VI sense capture DAI Reply-To: sashiko-reviews@lists.linux.dev To: "Srinivas Kandagatla" Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261201124753.196748-8-srinivas.kandagatla@oss.qualcomm.com> References: <20261201124753.196748-1-srinivas.kandagatla@oss.qualcomm.com> <20261201124753.196748-8-srinivas.kandagatla@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 13:03:48 +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 1 potential issue to consider: - [Medium] ASoC: codecs: wsa883x: missing port_enable check in wsa883x_vi_hw_params() -- commit fdbd630d2f5fa194ab1385415632917d5e5bef11 Author: Ravi Hothi ASoC: codecs: wsa883x: add VI sense capture DAI This commit moves the VISENSE port to the SoundWire source port mask, adds a dedicated VI capture DAI and stream configuration for it, and programs SWRS_SCP_HOST_CLK_DIV2_CTL_BANK in a new bus_config callback. > diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c > index 64391d654a08b..6de669288d6aa 100644 > --- a/sound/soc/codecs/wsa883x.c > +++ b/sound/soc/codecs/wsa883x.c [ ... ] > @@ -1335,6 +1351,25 @@ static const struct snd_soc_component_driver wsa88= 3x_component_drv =3D { > .num_dapm_routes =3D ARRAY_SIZE(wsa883x_audio_map), > }; > =20 > +static int wsa883x_vi_hw_params(struct snd_pcm_substream *substream, > + struct snd_pcm_hw_params *params, > + struct snd_soc_dai *dai) > +{ > + struct wsa883x_priv *wsa883x =3D dev_get_drvdata(dai->dev); > + > + wsa883x->vi_port_config =3D wsa883x_pconfig[WSA883X_PORT_VISENSE]; > + wsa883x->vi_sconfig.frame_rate =3D params_rate(params); > + /* VISENSE carries the V and I sense pair */ > + wsa883x->vi_sconfig.ch_count =3D 2; > + wsa883x->vi_sconfig.bps =3D 1; > + wsa883x->vi_sconfig.type =3D SDW_STREAM_PDM; > + wsa883x->vi_sconfig.direction =3D SDW_DATA_DIR_TX; > + > + return sdw_stream_add_slave(wsa883x->slave, &wsa883x->vi_sconfig, > + &wsa883x->vi_port_config, 1, > + wsa883x->vi_sruntime); > +} > + > static int wsa883x_hw_params(struct snd_pcm_substream *substream, > struct snd_pcm_hw_params *params, > struct snd_soc_dai *dai) > @@ -1344,6 +1379,9 @@ static int wsa883x_hw_params(struct snd_pcm_substre= am *substream, > =20 > wsa883x->active_ports =3D 0; > for (i =3D 0; i < WSA883X_MAX_SWR_PORTS; i++) { > + /* VISENSE is driven by the separate VI capture DAI */ > + if (i =3D=3D WSA883X_PORT_VISENSE) > + continue; > if (!wsa883x->port_enable[i]) > continue; [Severity: Medium] Should wsa883x_vi_hw_params() check wsa883x->port_enable[WSA883X_PORT_VISENSE] before calling sdw_stream_add_slave(), the way wsa884x_vi_hw_params() does? Now that wsa883x_hw_params() skips WSA883X_PORT_VISENSE, nothing reads port_enable[WSA883X_PORT_VISENSE], which leaves the "VISENSE Switch" mixer control as a no-op and unconditionally configures and prepares the SoundWire capture stream on multi_direction_codecs DAI links even when VI sensing is off. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201124753.1967= 48-1-srinivas.kandagatla@oss.qualcomm.com?part=3D7