From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f178.google.com (mail-dy1-f178.google.com [74.125.82.178]) (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 A305E497399 for ; Thu, 8 Oct 2026 10:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791456252; cv=none; b=HN0xf2sCCCDRkkilpgKEIz1qQQ+TX7+BW7E6HcGUoXV5PZXCGPAhIdWGmZWtCFBH8XQljel2Ne6fogJarOA+UHLA23dOmYVz4+thkZ2ShNgHP2n7wPFI9ekUEhP85LjmfTi/V0guiEaiU6621569aWdIYyDJvhhR8jAPQWQb5Aw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791456252; c=relaxed/simple; bh=l1HC2BErZTeFg9PacGbdvzlNTd3R8UQWG+h9EUzSDPU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UBb7E/eEB2t9BUtiIkVFcklfvr0UDI5aYgslJ88lacKZTS70CsHsKpnLXraYCr5U80jozCA2B/5IW/c5iZvpP+UvxBfldile356q6I8p1gngRU43BS9tUOLZaEZku8RsIGzRoBZEMBZ9qtZEeWChcT3DuiaYCsPt58lgvzPlvAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=c2hVVGS1; arc=none smtp.client-ip=74.125.82.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="c2hVVGS1" Received: by mail-dy1-f178.google.com with SMTP id 5a478bee46e88-3515f9a5d25so4194413eec.0 for ; Thu, 08 Oct 2026 03:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791456250; x=1792061050; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uLXKgERfdgngku3yQUE+LcMSxD8yCQ+a/l+GKCCFjt4=; b=c2hVVGS1qP6BYZpO0J6o+VS283uSdirhHU9h5upXlurXs6Lkvo/2FEOzuW2MNe+sQF uLgbdDcnUM8FULFJO74NzhWuAeM8ltC9wb6ByiGdvrzOUhsI6c2RMI4dwJ0FsSdgbyUC Maxui+3zhwmveOjeXU/hoouwspCsq4UgVrKdE11AT7iEMxD2m0ZkGhkWvJpQVYTpMg/E ZM0s9Vt7qxhzksYzPUKYRl7zIdpw/WKeWZ2DAbs7VMB98pJDK1c47ybG8Uf3RqyhIYD2 4dqGSmvd2kUu0p0CKs0QukksUXBUYK8ona5xIemI/IlUQoQqgMAn3LFM6TXqgn0xH8Tb o4+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791456250; x=1792061050; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=uLXKgERfdgngku3yQUE+LcMSxD8yCQ+a/l+GKCCFjt4=; b=U68o1Niv8OWYnb1Si895ICSvDkKDfh6DZir0bOH3isEsnqlOgIIUEUgUvf7p366i5Q p1XxrfIwg8QYXMT8FVbzQhpwdcTfyRuZ6huUdVtHhcfTuaMp4vW6gdfqa312awDVoOSt tehmdJ0uYQOvX2GUbOjmY9T2SwH6sPB12KdP/np099C53drZLt/+fzWG52I4LCc48r3d 5utgZUxrPyrXAXNJVzWSYVjbXn7kZqY+8xF4b8FAwhUCkOWVVUchWZZx6gKex7MtY3wh cIw35gkhHfx+SXSTG5hHO8O7EqfE3JjM/o9hcHD0MK4APvwQR+AMUy2B89Ud31QgNcWp tQXg== X-Forwarded-Encrypted: i=1; AKwUvByqmrzX6CFIA8n1QvBz2OGc5jboHSjAmJaFZFhe956m6i+3AUEHUK6wks8FnVWgDWYq21nX3AmqPLpfq4Ofo6o4Fw==@vger.kernel.org X-Gm-Message-State: AFq9FYJnC1y4Hww1/3GCyNXkCgalVZ/SY0/eJIDxOYel9syDfRx3CxdK V5u8YBc0EyZOA/8BRVjaXYTvy2BMpKWqBF9e+oQlMw7BSyvNZ0dQBpxt X-Gm-Gg: AYBFou2lkDXbopypRGaNbzyHNVULhpSUO/nRt2Nm1MQ0yCExDqTGF50GuyrcDu5JPlY yNs6Te/y00hm0ecIm3BKqghs5hexHsiUSO0cgNkqydtfk81jsOj9ECfQ/kEs31o1ifubQ9IRMuu N+/A/ziUL1e7zLfODUiOzB5HBSjjDKMcayFEBMMnBPJ3ssr0KdmzcxjmNQ05b52baGN+mrNyd2+ zW6MnODrEdklF6SwkArcVMFDBaUJMpojebXBp5bPZ2MjFJ+VkT+nPxSiGdEDDeNLIKz9fw9RaBr ytdOTJUlIctF5utcS872H9Io8RyaBHMHnM1fjoOkiOEH+BiPN6o1NbPa2oG4K45gF4YoFUd+5Sp TNly/l7QI5/3eL74wb2Q9Uxtzut0Iyb9jS419zzTuwMujRP4+X2AYdQ7tQm1Y67q8M7Qy1CKoXH i59sE50NJjD9a9APGaI+L4p747t7g0WB5PVghIY+96eNa7/l90JCcNUxjTbrh2/AajiodiPCZ/C Kcz0ZwlEje7aDmI6HdlhOyda9u9yT5PLzg+41Rzx2Zmki67wuSuMtIfc4kwK1MgDoR8puZDdCUe 7+jZE45DHwH0Rg== X-Received: by 2002:a05:7300:d214:b0:352:2e10:10c3 with SMTP id 5a478bee46e88-3522e10401bmr948755eec.36.1791456249630; Thu, 08 Oct 2026 03:44:09 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3517810b895sm7496369eec.17.2026.10.08.03.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2026 03:44:09 -0700 (PDT) From: phucduc.bui@gmail.com To: Vijendar Mukunda , Venkata Prasad Potturu , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , povik+lin@cutebit.org, Claudiu Beznea , Andrei Simion , Nicolas Ferre , Alexandre Belloni , David Rhodes , Richard Fitzgerald , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Cezary Rojewski , Peter Ujfalusi , Bard Liao , Kai Vehmanen , Pierre-Louis Bossart , Kuninori Morimoto , Geert Uytterhoeven , Magnus Damm , Biju Das , Lad Prabhakar , Heiko Stuebner Cc: Kees Cook , Syed Saba Kareem , wangdicheng , Chris Bainbridge , Linus Walleij , Charles Keepax , Neo Chang , Krzysztof Kozlowski , u.kleine-koenig@baylibre.com, Pengpeng Hou , Cristian Ciocaltea , Hemanth Selam , Md Shofiqul Islam , Bjorn Helgaas , Zain Aboobacker , Sang-Heon Jeon , Ajit Kumar Pandey , Ravulapati Vishnu vardhan rao , Bo Shen , Vinod Koul , linux-sound@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, patches@opensource.cirrus.com, linuxppc-dev@lists.ozlabs.org, imx@lists.linux.dev, linux-rockchip@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, bui duc phuc Subject: [PATCH 20/24] ASoC: renesas: fsi: Ensure the component is marked as opened on success Date: Thu, 8 Oct 2026 17:38:27 +0700 Message-ID: <20261008103831.542533-21-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261008103831.542533-1-phucduc.bui@gmail.com> References: <20261008103831.542533-1-phucduc.bui@gmail.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc snd_pcm_hw_constraint_integer() may return 1, which is then returned from fsi_pcm_open(). ASoC only marks the component as opened when .open() returns 0. This currently has no functional impact, as fsi_soc_component has no .close() callback. Still, return 0 explicitly on success to match what ASoC expects and ensure the component is correctly marked as opened. Signed-off-by: bui duc phuc --- sound/soc/renesas/fsi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/renesas/fsi.c b/sound/soc/renesas/fsi.c index 23b7e63596d3..88618e4b052d 100644 --- a/sound/soc/renesas/fsi.c +++ b/sound/soc/renesas/fsi.c @@ -1811,14 +1811,16 @@ static int fsi_pcm_open(struct snd_soc_component *component, struct snd_pcm_substream *substream) { struct snd_pcm_runtime *runtime = substream->runtime; - int ret = 0; + int ret; snd_soc_set_runtime_hwparams(substream, &fsi_pcm_hardware); ret = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); + if (ret < 0) + return ret; - return ret; + return 0; } static snd_pcm_uframes_t fsi_pointer(struct snd_soc_component *component, -- 2.43.0