From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.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 97E673911B5 for ; Fri, 16 Oct 2026 04:12:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792123951; cv=none; b=T7qwvwPAHsgixnRtxT746M9vGdq0e6Pkf1ai3Kgw5FZEnk4vIf5OqvaGM8cEUIddumr0YPoQpxRSrSIBtSw1aEul9CzHLDxolqG1zwM+UVwkkK63wupoKiER8rPLK7ASy7EkKNLTCtwk4kkhEGPMlqdCux3fVrMrYTYgNBepwpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792123951; c=relaxed/simple; bh=r7OlKukmBvsw9WjHDtwSqYZmBLqvfhuoOIuidK+OgfM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C2fYPBsDpB4WsfCeEUlR/e0oaDmuPA3RDjaE99AeixKFNyAedXV1VvWocy051MeQxltlWefM1OyZj5uDwP16U+3frd2a34QZfIGfq+9qDyCnOCrtEfwrM35Ah6Ur+Dt+74xMPXtWt9nwhILrprCfr/bnPHGgLjlAhGTEVqJyOwQ= 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=Irjlygj6; arc=none smtp.client-ip=209.85.214.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="Irjlygj6" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2e987a2ba0cso2041375ad.3 for ; Thu, 15 Oct 2026 21:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792123948; x=1792728748; 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=tCZ6GoTFAN+ex1Ct3jpbL93IWIQW5JGKx6t1S7CNuas=; b=Irjlygj6WCN+Xi5/U2TOBm2Ssxl+ZfqrvcvPvQA1QCSEocCLCo9JBXw8u8jyXkK/9q PoqqpG/9q+G1oIDcyN6horpMsEtM2CjqupMpjg4Am2Td8yjMoRFHarz8uDSOXmkHvp0Q wW2Xi3E3SD4dy3GjSZbufTP8qlN96B6AmTmOUurPtPhw4jkluVB8LrTadsdZEkCbWIiE 66wS+nGE6Qz3POZdJ7hPBYkF2xXA6Pelf63GbqJk0qIytw0FLhJHILBTOO+YomFUz0h6 YrKg3LDHhCUAgQdt3DI+1fAs+JRGNHf9qr2stgrhph/H0BKYJcKkPsfsRj0jjM2g3c7D P6aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792123948; x=1792728748; 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=tCZ6GoTFAN+ex1Ct3jpbL93IWIQW5JGKx6t1S7CNuas=; b=v7l/kkNfNSsJpiKlAZNz2kua/lQs9A+MF2OSSSeCrSrSGFfXc+tu2gSadCOx2gHMt2 oGuoLkhUus6NkYT/K7cIcApOPfZ/4qQjVYq78MroZKeFL20hz6TIPhyGpVEPhp3qpb74 VSq6YafNj68KkObkm9JC+hizZqWSKrvEHHJwwe89orseijgPt2dX4zuYv2qiv1eqKvi9 BdcvjMVovhFzjNoPX106HF4z21jDe3/+qs7Kal1hJ1TutLaAuvHVsi2ugXykQUq3Y+Na nsg+90bRi2O2DgDGbXtpkTImrllArEnrI367UUBJF8N9PGnWIG7bcX2mfY9hzhfQDqfT B/uw== X-Forwarded-Encrypted: i=1; AKwUvBx3ENhtmCnmejEXjpIaHtECHI49s2Cdm5aFW8CnIhQxucHcFVG0e9xqKzfNsdl0DScttUu3WMlF2M6H0g==@vger.kernel.org X-Gm-Message-State: AFq9FYJizNKQUAeeg4wfeCsm6+usv3CJsnDhz8ar6R2lG48yzysOJVh9 bGyVs2H297uVvC05VrknhsaTXdrnoa6VkIRTXx/DgTngmpbvKf0zy9Sk X-Gm-Gg: AYBFou0hDo1QosnbCsl0EIKS9PjdWpeTmFgBmE5T5HxvgPj+PUr1VGd19mLUI5wP+MW 3guPU6o8f7SiPPn3fWn+Fghg0IOhfLy7KgjZ1wlOY8I5TQ6oF4sPEGa1ZBaTRD/YIplOYVW3vFC UIfkhQOR+X8ysiE8bG4rEj/tXFF5QS5F7aNxiETlC7E5xRehj3I9zbvK4fZzWsjeulUUGGsswUd 9uTgGFxd4PPZFdwiQAUpiWLbllZdekNRxu9d+QztA7SedP2s9PgEk3aM+xb62Lvhqz2o/B97FEs 3+2ebuqI0bpEhD8oTWERHhaza8FyqWRehvMbllyLQAxkaoJyyRPnBpNz/oxkb0/TjXJjj+yQUli f7rbo4ymTbuKuDiliG3TGnbMa3MMl2HCQsnv77Z1ayg6zKEVsFCIZ4AJr2j2iN/X/URgh2ecZN3 CgSj+FJ5TnA7fsFhlTDgBZLhwNZO4Tjp3WxEYnL8bGSiZcK2uaT5IA+/GnM8KZe6xvk6Kega1La ule3zBEp3PVl440WisdgA1LsD/dpeWAZuE7uxsJTv0JgOQXAqgXFklifB8I0PIYzk2sybXs8if3 8EtjF5XSn8MwEA== X-Received: by 2002:a17:903:94e:b0:2e9:4243:431d with SMTP id d9443c01a7336-2e942434bd5mr63920435ad.30.1792123947778; Thu, 15 Oct 2026 21:12:27 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e97e8ab443sm3815785ad.65.2026.10.15.21.12.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 21:12:27 -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 11/11] ASoC: rockchip: Explain DAI link startup return value handling Date: Fri, 16 Oct 2026 11:09:46 +0700 Message-ID: <20261016040946.521195-12-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261016040946.521195-1-phucduc.bui@gmail.com> References: <20261016040946.521195-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 Add comments explaining why the .startup() callbacks must return 0 on success to ensure the DAI link is correctly marked as started and prevent future changes from reintroducing the issue. Signed-off-by: bui duc phuc --- sound/soc/rockchip/rk3399_gru_sound.c | 5 +++++ sound/soc/rockchip/rockchip_max98090.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sound/soc/rockchip/rk3399_gru_sound.c b/sound/soc/rockchip/rk3399_gru_sound.c index 0ec80a4b8c59..d4a0daabfb42 100644 --- a/sound/soc/rockchip/rk3399_gru_sound.c +++ b/sound/soc/rockchip/rk3399_gru_sound.c @@ -266,6 +266,11 @@ static int rockchip_sound_startup(struct snd_pcm_substream *substream) if (ret < 0) return ret; + /* + * ASoC only marks the DAI link as started when .startup() returns 0. + * Since snd_pcm_hw_constraint_minmax() may return 1, explicitly + * return 0 to ensure the DAI link is correctly marked as started. + */ return 0; } diff --git a/sound/soc/rockchip/rockchip_max98090.c b/sound/soc/rockchip/rockchip_max98090.c index d54c36682415..de392b420ebd 100644 --- a/sound/soc/rockchip/rockchip_max98090.c +++ b/sound/soc/rockchip/rockchip_max98090.c @@ -202,6 +202,11 @@ static int rk_aif1_startup(struct snd_pcm_substream *substream) if (ret < 0) return ret; + /* + * ASoC only marks the DAI link as started when .startup() returns 0. + * Since snd_pcm_hw_constraint_minmax() may return 1, explicitly + * return 0 to ensure the DAI link is correctly marked as started. + */ return 0; } -- 2.43.0