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 93733497388 for ; Thu, 8 Oct 2026 10:42:35 +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=1791456156; cv=none; b=tAm86kT0jLwNSifQLxozc2IE5ZI9hFVC4yL8MhwZ6AcixrCbAIflV/roKyZJLroUtd9ekI68iNzG4mqwwX5fS8uRnaCfPn2HHl7BLj5nItEbuFfLg3wwpJ6VhONWv0q/b0va8Ru3ol6yiK5+BvJBno0BBmnenOqFWUrm6amPpy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791456156; c=relaxed/simple; bh=jz760ztqgga0RO/+vAvDuVyLPPNpmX23pq1M+Bivpxo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fU5efp+hEe0e3JJUO366XpX+hwgNaplDkTPgoWebk8lmvGb8zF/V8gt8d6+wFYzoU/0crpu+JbB9rqihVgbatpYUyTk2f7oQlDMC0kL5Ih2p+0UUtNeiN4+D9mHtG9DcfGN7KRKuYSuG7WwYkAs2H3X9xrHTvkcxnAlcCaw2YB8= 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=L1/RigIi; 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="L1/RigIi" Received: by mail-dy1-f178.google.com with SMTP id 5a478bee46e88-33fb4680717so892116eec.1 for ; Thu, 08 Oct 2026 03:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791456155; x=1792060955; 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=Uc00trQPX7RuBM3kvjd0hrBbedJ5QhnOwvfpAMsSqmQ=; b=L1/RigIidDe9b6f1eq2d8lq1qPCC42BcSjCm1Wqbe6Rnhg7fTQ695jWveXlQx515bC mP+Y7FrUqiPmKmIbz5qx/bGqK2DVBMWpt5JsYKxcJhxEK5CgrodWfnTwf4f6PWdlGrIt rgFSjPdZuuk6admcjRXBWJQ6pxShwL/6gulJT3bOr/ReEvmKH3CeJ1+mCckm6A70Cbt4 V2AUB+qDPreuEMFpzEc/RczaW7vvBHC8yref9DddyhK0kmgmGm8rBu62HtVK4+6t7J2B F2HNyXW22o36q6kRdaWlEKuxAuhXLkQG08bG9aamTl3U41lTgfLAQOR3qVm016Mfa1GU Xk+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791456155; x=1792060955; 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=Uc00trQPX7RuBM3kvjd0hrBbedJ5QhnOwvfpAMsSqmQ=; b=pDuvLu1+W94HJOcIhOAobNhEINHriFDsU/2QBVGMY7OZkNT5yokCqSar6XBVvxm/5w OChGm7UH0zQ8dVSXfqC5S5MbIwujjkihpPecft4WKBOE3BU/2RA7hXS9+l+HUIkgc5YB dToH7yr1PoOTgR7mD1rL/+eDd5C4hs+Uj8K/vedDOE8mPBYyCN00bQm5fFf29Zq9uyOO Pi1gREyQLH49YnhzVbcsBPr9QA+qxSMI17znu0Z6eCgWLf6KoOjqmtcWtum/2t/2UpC1 eh6dUjf0JSd3va6lacfF7mbN5ovzhWo0Eg6/DnMGv7l20StyHgG40J3rTJLhahPYirDo ylnA== X-Forwarded-Encrypted: i=1; AKwUvBw+GWpGfoaOGtHic60ULFDFueEx4WXuHtBCCAav9aHSmzYcBGcu5l9hAKiox7fDw0M+4Jyi454sVP6zeA==@vger.kernel.org X-Gm-Message-State: AFuF++kdvbbJiN3iCspm3Ekg1BU776ZA7gUosFh1FuXt+ws1qi3FYZJ6 RRaN2q+QSRPy39pz7hpBPbIsOcMUJDSbmV8AyeMahV9J94nqGPmXLQuM X-Gm-Gg: AYBFou1Qx3VhLLcphz+ecRUG7poxWGnfu2LwmXObyOoGwACX89+mL7eMpRdiP7ntt/N bUJY0v6IuP3j83GC/kVOkyx/uG2QhoiudJVcqn4yAWU7OLidsDQLL4E1QdBYDjLLcHVse88AIMd v/aufvNPXxMOhlja5MJpBhpbe/bb09B7Y41HWg75ff07tz1KdkIlbkl7ebt3itRdRkOgeMNcOXg EWT22p6SJ9XozrdhdlSXGk7CTIWykd1+q8wGYOmrdkz1QcWtOb4CuL/oR6MSBX21WIN4bUkN+It gubYTedSZanZPlBDV0OqwRyN/1wmYL9ogDcVONA96Qu+0dhDOtRbHYX5zsKhuKvKfzlmogEYtNk A/SJXd/gKDhGDUJM+oJC3Flk6GsjRWh691+e1idAT4KL6erCCWg+MxyedizPU8ycsSqCT0y3gx2 4OVtqu5AOmJNRPGPL2xvodJzI18gfMDTuoOYvPrstVECUxzM1guNeSPxWoECHTRroHIUpGHp0eX lYEmVf91P0bsq435+t+Z9cQHsDM4xVf4XOR/SesEf8HQIF71DdYN0Cd7lwZ6a2Fa62NAoQTRZsH wL64K2AH1oquTQ== X-Received: by 2002:a05:7301:d194:b0:351:28eb:8cd8 with SMTP id 5a478bee46e88-3515ddee11cmr6279341eec.18.1791456154501; Thu, 08 Oct 2026 03:42:34 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3517810b895sm7496369eec.17.2026.10.08.03.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2026 03:42:33 -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 14/24] ASoC: codecs: nau8824: Ensure the DAI is marked as started on success Date: Thu, 8 Oct 2026 17:38:21 +0700 Message-ID: <20261008103831.542533-15-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-sound@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_minmax() may return 1, which is then returned from nau8824_dai_startup(). ASoC only marks the DAI as started when .startup() returns 0. This currently has no functional impact, as nau8824_dai_ops has no .shutdown() callback. Still, return 0 explicitly on success to match what ASoC expects and ensure the DAI is correctly marked as started. Signed-off-by: bui duc phuc --- sound/soc/codecs/nau8824.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/nau8824.c b/sound/soc/codecs/nau8824.c index 853eb9472af9..c89889aa420e 100644 --- a/sound/soc/codecs/nau8824.c +++ b/sound/soc/codecs/nau8824.c @@ -1061,14 +1061,19 @@ static int nau8824_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_component *component = dai->component; struct nau8824 *nau8824 = snd_soc_component_get_drvdata(component); const struct nau8824_osr_attr *osr; + int ret; osr = nau8824_get_osr(nau8824, substream->stream); if (!osr || !osr->osr) return -EINVAL; - return snd_pcm_hw_constraint_minmax(substream->runtime, - SNDRV_PCM_HW_PARAM_RATE, - 0, CLK_DA_AD_MAX / osr->osr); + ret = snd_pcm_hw_constraint_minmax(substream->runtime, + SNDRV_PCM_HW_PARAM_RATE, + 0, CLK_DA_AD_MAX / osr->osr); + if (ret < 0) + return ret; + + return 0; } static int nau8824_hw_params(struct snd_pcm_substream *substream, -- 2.43.0