From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 824923815D2 for ; Fri, 16 Oct 2026 04:12:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792123950; cv=none; b=MMa8Fym6oe37428olSdAE+eM23VKNunK2F4met/zLfheGvR6WRMexW31gFayalOZ5ldbcuifVgQHUVBUFk8cRm87Yldn3SCOlveNNJcFVudg3NRKEsONaK+V1yXHcBdXQgTc/weoN6zNQ/VUV1uO90W2qbxcsvUaDRjf5jLZL/s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792123950; c=relaxed/simple; bh=r7OlKukmBvsw9WjHDtwSqYZmBLqvfhuoOIuidK+OgfM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XcjzmgO8S8gHexqlQ7UJWNX7ysGq7nOpPMfKXVStdL5nNhnTVaa9U5CjYXkMWP5bzcajU+J/f10YF8yCaJSE1+BTnR0n9J46F8hGt7Y32qdD6NCIiOhyLJXu30+tyK6RpUd6biJPDFBNBNEShnzJQyJPhv5nutPl3RiJvoPxvJU= 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=e0mro+ed; arc=none smtp.client-ip=209.85.214.175 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="e0mro+ed" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2e831e86ebfso16181505ad.1 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=lists.linux.dev; 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=e0mro+edLHTUyODn4mQfLKJc/ybY7dpzr9qgnfW8LRS0f0dF/nBP3F8CwrhfcE75ak QoxyvwBRZbmo8Bn7EzOBq1NlZob/M2Ophkknq6vpx4iWC8M153n9br3x4WUNL4Bg/g8z PWzhTJK6qvZY0zt3WHiAbSPZXuZ9LDVIgysmL9MOya1WWk0wjblnzcvL4gT6SE4NtK/g EOwiajIe5m0uP+pDqbyW3UugvW8IwqswRi0WS5V3aH6sROsGguJqiSefLKTROHIrcCRH ED886CK7c9d+QBmMIQr/mk8gR2WpfC+lgAIfLFrAFrHLsntLOFlLggip5QNji3ipQ8KX FwHw== 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=25etUqyPQGK5tavH+eb2U2RyfQDCcWj8OImwYaV4KBDdBBC2RWS8tOC4y6sjA4z/d9 h03UqZqIT0fvQzocMZGNiHU7eAd/BMz8XhDtU+5JVgqj/o7UzTbjjczl13v4LV5ojLla 14ESfoozj55zgbnXpi0wj39KuuPVBmPBxL7JJeqgHfA+4DzJUwgk+UIh57NXux4KT1Ob 1/0QpsgtL72NCGIEZl37AJ+aKbX3hAWntXgVIox7LDJm/fB+ot76FTtAAraWOXpfluwz l9ydq4tcHLOq/w13kp1jDG9eoIgY5Ca7yvfnyO2E/tlGF1HqA5U5T+bJnJyD5gmf1umi mV0g== X-Forwarded-Encrypted: i=1; AKwUvBxNAw9pGAodxPKQUC4ugeJDMOfg/LIXu7DwUSbP5LRYD7eoyImuirLs0wpnELdfoRBPaZc=@lists.linux.dev X-Gm-Message-State: AFq9FYLP44tj2PJaK2+m1EJ+vQj3loPBEoFPCZSE+Uw42ap5nObv++/l w4tHhwL1Rks81wQyrHZGI1YfL8n/MGGunXP/FSpthFQQomHgNSQTfXY7 X-Gm-Gg: AYBFou3H7Z4U6eYeEVkDm/GTeiYNe6tujnvIOWbT4U7ylqyiLKKUfLQClV/I+21jgFg AQW4jSG1s074f0SbgJsa/MlfHV3MK1oYMalIUcUJV6zqaAg7/GU/9tNsGWlfHeyKELA5zJjoIYU oCfnwlJxvruJ5VynSQBzb9BOny+s5n2M1kiM9UH4fL5CCl4VGQo6uESgL5is6OTh1ZRdry93ASF ERvG5cnuWYFltLY0N7rMDbQt6qM2S7IGUZec4oHwAd/2+Zde8LjIagjF8LkMW0Mjb0mhb7YCM+K NOlND8be9ktIi1UrGtPHzfRM+kr1h9k9YO+zc44++V82hURm7OshBwogmqVqfSalfeWMi8hL78b FR6/lomPH6TjWWG6KfPL1dxgERDjxRDHZtZZsM3nb4e+KUFzcDgK2yAwPo1rwXhaf/sYdKMNB+I gB/D+Wo7QRYf1X7ZOAz3LwoCpy9QRgti9ptRLxMNFMHj0cpIB930YaNZjpXeoTFskk0Um5SsEAA M5Xt5Be2/D6Dwj1uilBewCp7E9ZztjuhstoGAkykLrB3zGpWqhu5QIXxhi4Ut672W8atBAL1Diu LcPKrqNMcpRwRA== 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: imx@lists.linux.dev 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