From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 9DCF336E47A for ; Thu, 15 Oct 2026 01:49:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792028984; cv=none; b=EgzlkpRIQ5jI92qYrVqWGNU/4+oZEuFZdmuDiXNPy7FSHhF4wLsfWXgq5C0MKXRbUkq/qDic6jt46BYRHNd1cUuQdLoVD3hdrEiEtAe41ferlTjREgiGRBD5CrbOgzG+m0wTJ8bgEELurAw7eIGNOx51q/KxGB4T63jyqkW510M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792028984; c=relaxed/simple; bh=jlEb+ienncM3LL+BnYDTqkV/y1oGhTtwElRku4Cmr6c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AYMBF3Sep2Z1vQPJtNgh+0gByuCZV2Gpfj7/5Zq5R6yd58ET9JyxZGD1NUkmq6RayYhFHSihDM2CT4cKfZbt8UmgiDuQjsWdjuCpG370eHy7GGyx3JK40pp+LZMXTOnfl1DZFuO3KylsVRBlNB31EtgTCfloTSG1qU6bJQjXrWg= 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=V4+BOBkC; arc=none smtp.client-ip=209.85.214.182 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="V4+BOBkC" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2d6e954afbdso7420875ad.2 for ; Wed, 14 Oct 2026 18:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792028978; x=1792633778; 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=FVU2me1+3bnamRCjCl3aeaOsDD74U7zM2YYw6HaRgfo=; b=V4+BOBkCcVFDOF1oErC3PeurvYWSyTu6yuYe9GubVrhefUyUQMFa1XYlu0vwZvcsha DRTcoyiw2GXHmwfcdbRotSfR0/2ejJ85tomLYYCFeHIPFurFSlwt5d1Onp/oZX/JhHDw PGZsyhQgMIqN1Qwwhapl9SPj0Ym6unO9BMFdwDAGBw80vJ5X3McHjsn4zYBN7ehNQOlo g5TS9xLFTup3+d6PoQ7pzDAXV8Kdn4vZZc9p9sYfqCPIUzwEZJVD5eIPIh2avw6X4x+l /Nzs4BxenfyQa3BW8bLn/qpDLMMjm297eFfQqA/PHZC6De+/7aoIKk+Ahu5yi6oGtfi2 B2Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792028978; x=1792633778; 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=FVU2me1+3bnamRCjCl3aeaOsDD74U7zM2YYw6HaRgfo=; b=qvylAvvbSkkVJXvqtm6CaofXxcyi4dgwvT1GLFed4YQLXT0OOwck+9THql8QvIMPA9 NZwfOSg3ZbzaGtQmQczRfhWkAACJrhGbXQqYcaGVn0un47JLa36+FmF41ADIdfeocmkF /UEQBvrM/7huLw6ZTntT3umj0o0d/vOVOA31fGuzk0mrsceOB41kk9BiAxQzKO37g8pA XPlcrUi/SiUwlhsjHJ6o47mWYIPq8yDmrAyJVZwdbR4vslC2v6Inirv8QV4NeQTuwbNw B+M7QgTgO+51JKAg8QiMHGSK8Mlf8GYj18BhsCzEfKkzhqxeOJlA/WedJZrfhIdu/PKb YsvA== X-Forwarded-Encrypted: i=1; AKwUvBxcwx/RgUkEDNlcQMLQHjQ5wga9xwUyW7Oxy3GKMfeBfEBYlXlEAv4CczjvD12hShTrw7Jd+6G3EESXMvA=@vger.kernel.org X-Gm-Message-State: AFq9FYK8Mg4up6igqnIMjk4fOg/8Odtqc/D0pPBEsJdXpuo1IQFbCQlJ l0qEcZ3rHiQTfQgGSRWeYxn7okzM9n5Ee5trki/UqxU+M8t0J7QGr+dJ X-Gm-Gg: AYBFou3L8PQWC5PXIJJ+98zlPLpZlyveSmPbmfKetpkI7mwu3/R6P5q1IIsire9hHuU /XINI7KnbhbVqT++6F47nEzaPm8B+5U9JzdvLhpgomU8aLP39noWNz94PBMLTnIkIINsZlI+UOO G4vMiYhInY/PsgIF3TEPHvVMYGneAnI4vfVaK0tEiKjhlxJPNwlRc9Bp/wAzk6/wcxhn6l08toh +NrIIu03V99VjLzijhcvfj2uhQomVCUwZpOj90eL5v0nUrLavQxltSRWC2QZnse1cOraiyZt21A C++o6YtkmkxbyPWq9+jp1F4GL0dkJbgH//N6TziR216NPkB9G3DwmoJ4iYZeGnIj99jfqnb3npb +6uXQGSSYN5gEOmYs0m612beDKEFws1MSZQ8Pkj1RFo4wvsvvVx8pbSc+1pfsT3FU71FdIgStZP mGx56xwEUK2VchnIn+WsdMmsMTd0IdOfudUdvNs6Y1dXFz5LAbh0CbjrssQcw4TMPv/lP+RllUd 20MKSehRku+tWaqLXGIlVH9nDQTcbGC27ocDyPVrZUpLKX+pj6BhYoSPAm2M6kk0VNW2tP1CT9X zbntBahC0kXiWg== X-Received: by 2002:a17:903:3243:b0:2dd:ad74:ac32 with SMTP id d9443c01a7336-2e842bc61a1mr152460415ad.27.1792028978441; Wed, 14 Oct 2026 18:49:38 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e8422b8cc1sm73202995ad.54.2026.10.14.18.49.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 18:49:37 -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 , 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 v2 20/25] ASoC: renesas: fsi: Ensure the component is marked as opened on success Date: Thu, 15 Oct 2026 08:43:19 +0700 Message-ID: <20261015014324.5569-21-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015014324.5569-1-phucduc.bui@gmail.com> References: <20261015014324.5569-1-phucduc.bui@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sound/soc/renesas/fsi.c b/sound/soc/renesas/fsi.c index 23b7e63596d3..74e2ea002fbb 100644 --- a/sound/soc/renesas/fsi.c +++ b/sound/soc/renesas/fsi.c @@ -1811,14 +1811,21 @@ 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; + /* + * ASoC only marks the component as opened when .open() returns 0. + * Since snd_pcm_hw_constraint_integer() may return 1, explicitly + * return 0 to ensure the component is correctly marked as opened. + */ + return 0; } static snd_pcm_uframes_t fsi_pointer(struct snd_soc_component *component, -- 2.43.0