From nobody Thu Apr 2 22:26:13 2026 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51429364046 for ; Fri, 13 Feb 2026 17:24:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771003485; cv=none; b=XwQ5CjMncBPo6DCASDy9+267i1gjF5N29l20YewCuBI7qiyVdMPBRaVVaKG9C1I65diR/dGlekndpDsYIZ1WYh9bqBtZr68BoB1LJpavto16v0YThGnSOzR3Mjo6GiN1SxWotuE/Hem+a3xXlLjel9USAgUCPoN1JJ1qygT3eLs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771003485; c=relaxed/simple; bh=ZJTe3ERC+VD+X7F+RyeaF6x+oVdC81oxkUJxpf7zUuw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iYBBlyoeqFUDEa4HqD41MhDPhSJKec3otthKhfifcwRfKkM9S7DW85qA8sU6FjCj7Lmj8z/WW7hcA7RwNjA6FQ9tMWFZGNRIj566qJADZsxWNM9+3CZE5OnF0Q56zij19qAailiaPeHPtd0xooeK8mZwN4Pl2i5Fn8eqyXYdFek= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=TX2XHw3U; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="TX2XHw3U" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-43638a33157so1094369f8f.1 for ; Fri, 13 Feb 2026 09:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1771003480; x=1771608280; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1zG5+UDdMMHpsekyaasD3SxdlSC1EMGJd2kbTx0zrDE=; b=TX2XHw3UBKqV9yO0+BI8SxuDnlIsknR5Q/7bYaI/ePp0mCJzZqxIqsKFaXFUZA/JTD j/cfZn6zZa96iS5N2Ne5Y0/Xi+M04zJjCpqpjTS+9QUKSZTFiBCGNdVcvZCsdOjNYNUy xUGYzRDMtCUu1WIYOCqxPy/UEctT+O2o+ire2xP7TRjQbi/vaNi3r/f2lW2nJ4Sv/7lU F9TAJHV6fx4E2YP2gjlh46cSg+gbAY8GVbXAekMsGsf5ylJxos74xfhmUw/wyxAYOTf/ jmLLg2dj1Aw6SBB7b99VaMuY+qCmFsKwzG9DvasFU+XWco+/92tJfick8qflcDByWxy+ Xd9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771003480; x=1771608280; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1zG5+UDdMMHpsekyaasD3SxdlSC1EMGJd2kbTx0zrDE=; b=xPoqbpxzuqoUboXfwmnQgWgDN70wzc3S+FKoPRZXQ4v8ywa+B1ki1sW2E3j8Mr+AHd xVx/WHbOdvRb+Qzrc3KWmwtyorlEqoFCtWJxokEIwxiAZyM4PzmNYB8v2j54ds8tzXOH TjHofOPkt/QaZzwIP5zpVWYydkMq9uwly8Rd1Voz8bjgjG+KXPRyR8afm+tRDKUR5DT/ Jo3wUgMBP4DKmKr7RYHDkhya2P7EnARcitD+ojWeoqNhcZ63GRDWVzOlVZ7OBRe9H32c zWAcLVHOmk5e4SlFNlSGGT5XU9dow0CIFYMjR0aCqaKVxvp7F8Hj6/bgiyUwzE5iUcks 0SMg== X-Forwarded-Encrypted: i=1; AJvYcCUAGx7KgcR3b1VUtdpy2Qf6tkpw6nWaereEFxXF6M/gAYFaX2QydkZTEsSp/JYUjuaoqrObz3ZyXXJ07D8=@vger.kernel.org X-Gm-Message-State: AOJu0YzQvyEt1qWFB2Zeb8PPeHiCJ0x+QOdFFCK7UTKfN4+cObE3MfZP rvwrMBxoO7K7rjWPsrUkUKOOD3f7m/Cn3DUy00/N1GZ0QTxyZBsWmjRttGiGe0DHPEo= X-Gm-Gg: AZuq6aI7Jc3APbaOln1akK2PHJ6YUqBvLCPwadUVoweE433DGjfcvbHpuIIYfAOE04u DVtaf6nIjIVab1rI1SLKMO4wtXyEu2yn1eRuqzEOTGTOduCeo7hBaZFDtmIRkl5FE/Xjmurgjln 8e6w7NiTfoOOYPKve9TSIarbKxe4KJ2F1JXKHHhzZJ+2/K5hCQ0Ll559FepuWJP5Bt9mLP3oaZ1 jq4f9/0VlENKHuJg6iyUqCph6rmn7VGEjQHC8BFAd4YeYRDer/AkM73ZL88uKp/yDQWG1ptvFUR PT5HNAiy3ag2cHWQS2aqjQ3fXb5nTvSUK3IGaq4RqI+AjxaaXlcAiWAl8ohifXNNAesEJZMq2am PGhFr15LTPaOaSxGtJ1XcGp/Qw2//S3Z7mrO/AUnzMUSEA3dD9MJgC+Cr0R2egpUj2ICbxUsBJw XBh76a2UbUaUIVkCjFmNrSFbRDWhJemtRAynordeFdEp/5AAnhZvi4 X-Received: by 2002:a05:6000:2905:b0:437:6ec2:b110 with SMTP id ffacd0b85a97d-43797942efbmr4671769f8f.52.1771003480135; Fri, 13 Feb 2026 09:24:40 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.215]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43796abc85csm6782557f8f.22.2026.02.13.09.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Feb 2026 09:24:39 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: biju.das.jz@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com Cc: claudiu.beznea@tuxon.dev, linux-sound@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea Subject: [PATCH] ASoC: renesas: rz-ssi: Fix playback and capture Date: Fri, 13 Feb 2026 19:24:34 +0200 Message-ID: <20260213172434.3801015-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Claudiu Beznea In the current codebase the rz_ssi_stream_get() is called at the beginning of rz_ssi_dai_trigger() before rz_ssi_stream_init() is called. Since rz_ssi_stream_init() sets the ssi->{playback, capture}->substream, relying on it in rz_ssi_stream_get() is incorrect. Fix this by checking substream->stream instead as the original code did. Fixes: 53dfb2ad6fcf ("ASoC: renesas: rz-ssi: Simplify the logic in rz_ssi_s= tream_is_play()") Signed-off-by: Claudiu Beznea --- sound/soc/renesas/rz-ssi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/renesas/rz-ssi.c b/sound/soc/renesas/rz-ssi.c index 39aa865bdca3..74e078c04150 100644 --- a/sound/soc/renesas/rz-ssi.c +++ b/sound/soc/renesas/rz-ssi.c @@ -180,7 +180,7 @@ static inline bool rz_ssi_stream_is_play(struct snd_pcm= _substream *substream) static inline struct rz_ssi_stream * rz_ssi_stream_get(struct rz_ssi_priv *ssi, struct snd_pcm_substream *subst= ream) { - return (ssi->playback.substream =3D=3D substream) ? &ssi->playback : &ssi= ->capture; + return (substream->stream =3D=3D SNDRV_PCM_STREAM_PLAYBACK) ? &ssi->playb= ack : &ssi->capture; } =20 static inline bool rz_ssi_is_dma_enabled(struct rz_ssi_priv *ssi) --=20 2.43.0