Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2053422lqa; Tue, 30 Apr 2024 07:10:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXqiHjKrtvPR1ydfs2YLBskrJc14T1Ic1Wo8SDeWtLrLaaHILifCc4pt/2eEWV+YMF+Ptdsm/M2DqeE6lRY40CGWcYxfXhxHKr3wkVlPQ== X-Google-Smtp-Source: AGHT+IEEnNXEeQvGQdWeAuh42f5hctTccUtIRbh6oJJ19kk6SsiKXafwBzJWjyPHuixtn3+1EqY6 X-Received: by 2002:a05:6808:438c:b0:3c8:2c6e:a3a9 with SMTP id dz12-20020a056808438c00b003c82c6ea3a9mr11751393oib.16.1714486222959; Tue, 30 Apr 2024 07:10:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714486222; cv=pass; d=google.com; s=arc-20160816; b=GkpA2T9pFI67clXx+Mdf3m6V5lIcylWHJ9rIpUl8yxIyyrRAULGd8+T5LbeaAH9jMZ YSLhTDec8ui0n1XXzUdUpRC+cOuTUb+zRmUXvOxa5TsfkEAvyVR+9HX+PgYYeggNThVa gN0MgVgiip9EmBF5OUsJAK3GWijjsJDyipB2t99AzAhQnj0k7+0Hpz8y+/HB+tJaSEI0 R9S6wuSJ89CG3e5Rinnu0B/XF4se534XyTtwbOZ7Rx+6MrhjXP5/nXjmhuKIyutkzVLg x+zYfjyvGvhtUBfJUavRxpadM1mWFVtTlI8VCVThAabYOvBL1IG82k3kGLwWFoq5+ilK vywQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=5Lk1lue097q/WOSyrBvWDsG60XQkpuZqlzoh3fFX8H4=; fh=BF8Q9VBFepab2Pes3jUybUJex3z8UwDE3rtq88sFK4k=; b=NzrvXwt9sUmu5FB51fCokIDdkw4X1GbBcOvM1nEyD3U83f1hraPrfLvgHvmrqksDvB 7VOY+DF5JVdPjO6EC1EWdPrIWeOsrZLhVBJEFpddG/tiIAwq6JcNSLt8wCZlgftZtdBA QiiYv05I+FpccstmIsqn/54aEalDKuJMYiLujLpKyfry+A5Zd9wg7N6S6tmO0EQ0/4TT hpwBoVyBkI0AOb3hVzXYQhApsqqsROuJZoxR0l+JzDrRPBCsIcsQryKxTrwSM1MBO9w7 ta4uBJiAi1Xq1lVeIGyI0ok4DbOvBxq7TM2wkfReqYD3DK53GOro4AIs3KF22bVl3d8B 1gtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qXMUD8s5; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-164071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k20-20020a056122079400b004c9dd33abc7si4842432vkr.322.2024.04.30.07.10.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 07:10:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qXMUD8s5; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-164071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 90BBD1C227F0 for ; Tue, 30 Apr 2024 14:10:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFD261BED73; Tue, 30 Apr 2024 14:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qXMUD8s5" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 4D9AD1A38EC for ; Tue, 30 Apr 2024 14:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714485768; cv=none; b=Nee5/ZQ6cXS6KFewFB5Eg2ivcRi+CfHCmE7lnbsdLbzQchOHW/0W5LA064Tx1qqUZLP2RxVeHi1WXhCC/we+sduCapy2Wbin5rCB8yAniM8Q7jKjacBLJ6uctUjKvnhLxxagkFHcCjzPx7USii9ejpHjqu4A5fBHaPWTDde1D8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714485768; c=relaxed/simple; bh=WaTWh6A8XvKFs+19MMAHdgA+abbpsyoPq1iDSypgs+0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WaO+6rAuDy3uP4c1h4qur/sBcUpxxd65/D1dHF/orJi5BNFFgPSqfPAdI5rC5iDKX+vdUjuvKUIZBUHi0lmYX9lyfEjH4DQ3U/NKmp0WL09ulWr55AboRX1odU4IG8EJ0s3VJJFE1wWGLf81mTQnA/pzcC3pWujiAyxVGhOjuGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qXMUD8s5; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a55b93f5540so776254166b.1 for ; Tue, 30 Apr 2024 07:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714485764; x=1715090564; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5Lk1lue097q/WOSyrBvWDsG60XQkpuZqlzoh3fFX8H4=; b=qXMUD8s5yCZbgTUQybhxAeNfSALWk6K0PyaISj56e0GbTkSL/slLjnMU6L/vVh+GAS z/AiY/u2BfmRmjojeJkntc1TcRWwwsi3hdVTbRN/+g8Qz+Il0kIyG/Nf3XbLfbTiLE5J m49rOVhR01gOjMAVjNh3QpWDL//7F1UGE3WEUPLU2eLDjDMYZU8D7eIraAVAatdSwqnF +flPUGA8pcfEJvE+AI8yZwyesZnqpG61BBT8cuTCkHwH0f0Z07AL3/Byl8sXFzZLX6Wh eDfr9I+9yUrJrrkFJctswfBisVEGA7/+09PyUPP6AaLBg/+svkd0KNQ2xhHVoXjCUqo6 /1WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714485764; x=1715090564; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5Lk1lue097q/WOSyrBvWDsG60XQkpuZqlzoh3fFX8H4=; b=rEbXYwmotVkFsnWjtjnL3AjhiRWHUefczztUixmv9EKLF5P3XRuyyd89mCmCiOV/2C knNx3FLZfiviKUhHcV/CBX1stn7b824C9tIcjPYSS0oMv0a6Zvvq8sLMnfLHqyLBBM84 jq085LpMAk7XgRsXKse0soeHwo0EfFk2TYNv6VLBs+YshyZ7ORhjcRGleQycUbujBINg Ovx8sxP/eim0PCxTAU8sxmgQrsXb9CxNuR2BCwXzmupW/6NJbDwGj32Z2S9sTpEiwg5s C8SMe+27W8z1iThFb+8Fv9N7Out4DyVbpTKaS0a2otrqsjpA0Kzf0//vlIKrELzgA8t3 I8Zw== X-Forwarded-Encrypted: i=1; AJvYcCXWnnMCmwNnPRyNKkJIc7AdkEgr6XqjW360o9hLQGB0we1n+6LZzNw6AvvJEg2CwIqw/o9wsjmHqg0lpO3rju+dAHpe6U8qUeFeyynV X-Gm-Message-State: AOJu0Yxkw6ri2EeK5KmOYB9QNBdMekaSJbrZfZf+HuAgDA+esIxIAJ71 wTtTj+9KZBGFyMMY/71J8juJXGTPwpYs+r+ezhvFbuauW1m1twyqNJ08X8W8b4A= X-Received: by 2002:a17:906:ff42:b0:a55:b345:63ec with SMTP id zo2-20020a170906ff4200b00a55b34563ecmr2134852ejb.15.1714485764472; Tue, 30 Apr 2024 07:02:44 -0700 (PDT) Received: from [127.0.1.1] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id pv27-20020a170907209b00b00a5940af3f67sm31434ejb.16.2024.04.30.07.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 07:02:43 -0700 (PDT) From: Krzysztof Kozlowski Date: Tue, 30 Apr 2024 16:02:12 +0200 Subject: [PATCH 03/13] ASoC: ti: Use snd_soc_substream_to_rtd() for accessing private_data Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240430-asoc-snd-substream-clean-v1-3-6f8a8902b479@linaro.org> References: <20240430-asoc-snd-substream-clean-v1-0-6f8a8902b479@linaro.org> In-Reply-To: <20240430-asoc-snd-substream-clean-v1-0-6f8a8902b479@linaro.org> To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Thierry Reding , Jonathan Hunter , Peter Ujfalusi , Jarkko Nikula , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Matthias Brugger , AngeloGioacchino Del Regno , Jerome Brunet , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , Sylwester Nawrocki , Ban Tao , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, imx@lists.linux.dev, linux-mediatek@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=704; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=WaTWh6A8XvKFs+19MMAHdgA+abbpsyoPq1iDSypgs+0=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmMPnvj78Se5sQ1IGtmZPj3Apt3l8lrraNbdATP 5UZknZzzu2JAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZjD57wAKCRDBN2bmhouD 1/rKEACNiDDDmi+VKdGySua5uR69g1WVV9N9njkaGa6BQYvqocDTXh2A5T950fbqbmHniXfNShS JZsCqqwu5KxhFaDGF7+cJT9d8h+f+7+N7XdkXJiLCDqED/vhEdXSK+RJxvjyb2UGCtkF2vXvq3I qq11t/wIu9DJwANQ/5NqaRpQUsdJGIYQrngiCXGTVr86HT4kWz6cB50Fq2Rc1Nwer1MNbFgNXPD EjdcTuqvqRJxRoo0qJQ1uv5PK8ANQ1WI38IhHUgC9cSPyb8BjmRNwBk/6M8bqGZXxd2GI3h0DzD 8V7Ep+O/4i5WkC/o/RdS0k/Jvzkfl794WdVSrh5ko0yoTWBfgLKB0pDzT5Td5wsGDLH4nLzQX/V 5FUZJy3lvXFB5nrv9g3mS+E8KOagd4bqA8hkkVqkp5amB7IyjqR87us8YZTtD99ZhtHJ8VBMkd+ fbJwxHjx4G4Tlbdh0zvD3QybwWSvS6+wPWtlX37WjHLAiWt8YIsZU7wDGSPZJGubhB71ork6bJk ATYI7HLcuqJT/iIWO4n1K+oIgsMbXTSo/c+WM1q9Tc22MWyviROO784jazEoZ1HWS2txtvOqMzf OBzZt/XtPghj+yRRLI6/+9SDQsMxuhH//frbs22BShcGa8gdvXz3dj2VkoB0xwDtpQ8OPZ7XHdl o8rt6UoEwW2rmsw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Do not open-code snd_soc_substream_to_rtd(). Signed-off-by: Krzysztof Kozlowski --- sound/soc/ti/omap-hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/ti/omap-hdmi.c b/sound/soc/ti/omap-hdmi.c index 4513b527ab97..639bc83f4263 100644 --- a/sound/soc/ti/omap-hdmi.c +++ b/sound/soc/ti/omap-hdmi.c @@ -40,7 +40,7 @@ struct hdmi_audio_data { static struct hdmi_audio_data *card_drvdata_substream(struct snd_pcm_substream *ss) { - struct snd_soc_pcm_runtime *rtd = ss->private_data; + struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(ss); return snd_soc_card_get_drvdata(rtd->card); } -- 2.43.0