From patchwork Thu Oct 24 01:29:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13848162 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazon11010007.outbound.protection.outlook.com [52.101.228.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A694713665B for ; Thu, 24 Oct 2024 01:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.228.7 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729733372; cv=fail; b=J/HeQrp7jBcWU3uPo9zPKMvhk4GwPUZKIi5B2xlmftzzMMOyTXjioJuC56bcGq+LKkbjbupXIug8U7frR/W27NfINS7sgYKx+II0BrkFbgM+1r+VJ8MdY/UhPvmPkSc16bVnjxDEyGMvjBqXVfeA7trVw4WiEv4rywjt/4nht7k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729733372; c=relaxed/simple; bh=4KnzZrrgyi9oDhtflcKQiC9dDTsJ7UWHBHHBswiskyE=; h=Message-ID:From:To:In-Reply-To:References:Subject:Content-Type: Date:MIME-Version; b=J//ifkRV+gIzYqBuqJnrqt7XCGMyNFZeTdmk7VU6S+zKl6p5/K3b97mcZAVtaqn44b11M5oV53jmaiAQprh2w6/10UYpcGEHi+znnji60VYZVqTTjifdtueb43TEwq7CoMLZJ4RyfjFru/gsO6Kd7J0Oy0lF0sZ7YJsKTDjn4co= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=Xgbd/m74; arc=fail smtp.client-ip=52.101.228.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="Xgbd/m74" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XHlcosEYjDwOh+IAqvQBx0zXZPcXsTWoePSu0mFTKgSbxXGKoKRmnt3yQmmS9SAuPY+8bx2zzKzgGDebpJbhT2BiU+HKZZli/EPAq9HfIKpUVD+Q0S8b6/F83kEM2QK0ZaEWgWZkIW0NO+Dmh7a+lWJbn71DnzLcVqatEN+eF4ACZJDwEn6OwdOpjO6rp+5OBF6IP7gE3hOqT6Y+jmK3y54xa50/NqDhhOZzuyX+oF0kzQ7KbagolG4x2HcQojvHSZxrzMf9Pe+v5pEuLi9ZOlZ00Aj3phpO8AmVTrAHZlDzB5kU/j/i4ESzyLMvhXpd2faYkRKIr0O2C74aFop2vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=E6CkNWQso7kXIHad5ftA0Sjh/fPNdbw0gIRq5i0bGwQ=; b=zB2geOy13zVM9d8wqQJH7f8EsEMXr/gAFDJiyOG72Ov8o0VlwrsPkeE+rLDgZ8vZtBr2jFqiwad36e2HRtK1lglYWqtfdeoNckc252W3M833ep+Qxyl4EC6WVvEvrcxS9Dw5Nw37f5MY0aTI5+B344HoW85jZ6wnOxEIDLR0Qha7tt2gJZjYcZBglWOsVASZpe/t2WW0N2pqsR5iTvaQ0fFZtN+RjWkgVxgv5qGC+6VNlSvSSZSf1VfOVwgE9JnnTffNGz5mxS3CTAmicQWwV+sC/7FeBUjzgn8NdDa3fpioF2HzOhX+cWL31/aCDuVERQuf1qh/Xil+5obaSJtyUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E6CkNWQso7kXIHad5ftA0Sjh/fPNdbw0gIRq5i0bGwQ=; b=Xgbd/m74UrCHJhbi+7opUknYtGjoCz/1+Lm+i7iG7716fwu2a2dl7DsC+huFhR7ea2Lp9FKXL48dMfqkBVeP7It8CN0tq8lMjfvdEm/sRTF71ocvJstcQ1vovx4NNU4PujFAq1jQ2dqripQxjdwk9MqwVRfTIJvXdo2Se1XTsUg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) by TYCPR01MB12111.jpnprd01.prod.outlook.com (2603:1096:400:43d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Thu, 24 Oct 2024 01:29:27 +0000 Received: from TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11]) by TYCPR01MB10914.jpnprd01.prod.outlook.com ([fe80::c568:1028:2fd1:6e11%5]) with mapi id 15.20.8093.014; Thu, 24 Oct 2024 01:29:27 +0000 Message-ID: <87wmhyb85l.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Jaroslav Kysela , Jerome Brunet , Kevin Hilman , Lad Prabhakar , Liam Girdwood , Mark Brown , Neil Armstrong , Sascha Hauer , Shawn Guo , Shengjiu Wang , Takashi Iwai , Vinod Koul , Xiubo Li , alsa-devel@alsa-project.org, imx@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-sound@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, patches@opensource.cirrus.com In-Reply-To: <871q06cmsl.wl-kuninori.morimoto.gx@renesas.com> References: <871q06cmsl.wl-kuninori.morimoto.gx@renesas.com> Subject: [PATCH 3/8] ASoC: meson: switch to use rtd->id from rtd->num User-Agent: Wanderlust/2.15.9 Emacs/29.3 Mule/6.0 Date: Thu, 24 Oct 2024 01:29:27 +0000 X-ClientProxiedBy: TYCPR01CA0028.jpnprd01.prod.outlook.com (2603:1096:405:1::16) To TYCPR01MB10914.jpnprd01.prod.outlook.com (2603:1096:400:3a9::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCPR01MB10914:EE_|TYCPR01MB12111:EE_ X-MS-Office365-Filtering-Correlation-Id: 41ff83b7-a897-448f-21cf-08dcf3cb4cd1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|52116014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: GZw4wy7oZEAvzyMpWxgyjG5+YdmU61E7LBTrH9Ne83GH1uqoak3bdWBeV4xUfeOQejD1ljOKxlUD98GAR0HxxQ28fRgizOqto55pulo4FafFSru4+WutXBpn02pQCRG1U+pC5WLjgLrQY0KOeD3YKzuJRUWnIzLI1b2cb/4a87AxAPqihTGkparjOBFpJ943lrYfNT1ca3F8/+K60spFWiUBlYWobmACkR5nlFDcc0Tv38umxmB+0zXiLlBZK7WR+nbldbeJz2aYKTqBaj5aEzs2y/wM+WElc5UnkEcVH6g3ag2Ec0SJtXthEghoFZRWZXD1fwI1LrGWd6P7uNDOQGp5dDj8mDO93wdhhYPtUI4NzpN2ewGiXGW8mWgDnwYTCmjliI24+3ITAHJCh9FyxexFwlCLcVSzWJWGYdtlw/8oFS11SAkDR8m2kYq5MGIAXA9zFWYfPonRm1cXBOHqeVBSylYgtnB0OU1VsD7SlRnSiJBvfpR+jM+aY6YfoUSvukDAdyIJ94ozq+beScittN7IFF14nDE5gc1nQu8rsmiDz3Ghx21FD62bamcq3a9hzaTkqYUJiKkfBgPgUiHwLNBXugHJlbyDgBfD9syuGoOcHiviiafoj14BJz8HZm+ffSx8LXPITgx46JLf+a+XqwGhayzSHwayNWYKkppQFTNTFYwNiVzLDqfurPAb0F5+cm0sIkMwTpG6ktaD1KF8usMlE68N8R50ik4Reh+1g9T8tKva7RAp2K9cPEMvXn3WOkE1itu7Fw/nexFnYKFsjwNe4SUgFrwyI67AdO99pWaUf/y3KuviggMph6Qh160SjDZ4N5r/SkEzuDhHI3ttN3IjaTdwggVwuMEU+ohmdOpjpv0HVvk3KlXdUj/SRHimKi8JeH45e0JD8cpUepBGsx2HXIMUwPZV7IKJO6wkLY66AOAOin1O0/vsGZ5qENwAuhRshd8/w62rCXz9XDz2OvmINbL8J/Kjpf5nFiWB+wv+osecsCzIrMxQ9gd+h+VzbBfyt44Nm94bUWxCdHR+yBf1J9NlqjQPDrbDMKaqaNw9wjSk6DjhI4+YPC/YcgX+ztnnw0UF3I5JVVYIBQre0AnvF7sJzevimZtiOI9PDMh2QeIUqtido+i+4V9Abiyz2P7V+BRAutZtbWBXalptH443RnuWp3E0w7xKWNB511IxyqpfUtluy6o6erTlCsMAatglGR3JuI5+ccNt3pablObrhBg6zaEWxRmIfJdcseLqplaYTjDWNqsbpVQc6dX2aLjvhjgl31F/uAC+f7i9e2U0f4QEjlOn3d+4kg2Fz7FNaV1hlONq/Fzt/aaE4DLVtSTSb+Did8zYJxveYTToWsY4E7HwNp/PmKHW8exIL4gFxOGAQCN/Um+XfHafIQtG X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCPR01MB10914.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(52116014)(376014)(366016)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YFJIbYfC3/C/BNqeroVJ19NNUwIvSgD8dgLuq/zNu6e1zehz8wsrKKWVbSRTTOjPirz5r3IpUsp5IBvie6SV+VnkwdXPE1Xc2aXNX3RJr3uf78aSVmKvkS/4jD8vn1tD3mZ614zSDWM4UBSYOxNgrTujyCPIR3GyHyawacYrYih+Q3iNMZ08EBggmPEOFAmo0+/U5EFOwji2c6L3rOR+AeCZWqor6m0rPrIzNMkzz8dG40xXHI3rMZwHj9txd7v3mfd2rzhiFPgSSjS74VmIDy5WcxsAcyVn6OFCOtoxLdqGo2cYnYZjEsc+YE1DN5kemT0GiM9qK25x7VDCzjSK/uj3btMTqQFy1kdoEDGWAu0EeDwyNCxPWRUVfkIIn/lzWjWZJLfLL/lGGciWeVJ6KimHSaD5Vpr0WSMYPMB5jPinq+MEnfh/GRLJMc5NZn7JLk+AYeGLEq/bkKZa+G/hLXvOsTmmcO/siZbo8xngRSzavNrulubFNKnGAGTiQD6MC/BG5yfnfj/+O9f7bdZxYEdkBBCNgTvjH0tZvRfTduIhnplFJ+3Xzn9xs16RsfmGoNhWV2eoUhIbign1wQg0F8KkGPm8iB9sLfKzlBUFmoIFDTnqDPH7vIuwS28s7Mk9pBNJMLYSV4Wb521ZWbLvnaIYENY8rITP1ahHv9IKw/nYKlEGpKqLJmAMCL2YN322P9qKUP3pGcKr23oyHtYRfl9xzWoVk/h4YQIy7IXpwRKtzi8mjM8iHlyzVDKAnab2X4AE5R8d4UE11TImr1OmgSB//GADtK8dskr8I4r1xUzdNCe/lTj4PFg1ZzKExu4GYar4rWOBcWHW6nu7gpIBjJrYFuOdVFap2pKjZWd1Pi49pePszASM6zPnojjCZ8w0dvDLOrKMpdeRmgaq0DxWm3KddVfk6UId0lFYwdGdbdcizruf8pR8o3y5REuUymr9hZzs6b5q14G4ntby5T9nk9QHUiuPA3yuyNqIXCZsnyCl7GDR92fJfmTio+sl+8EBmqRdVuEBAGWraTsmcf+AasYIwGeCIcqdUIJSifhxgfNC2cfTVqmOTazHyjk9NZWZszaBo8WNdbtC/MphqWhgps/WtT0iKK5A89cdjHtrDzW7UWwdPNvl68EAymGv7IRhbnDz7ms9NxQ9I7Wch85QS2Hq6+xiBUd9vTH+2df4Q5u70pQao50LjISYPWh2YKhtNPBlZfQXStKdt4/JqR4UmItQ74qxXW6WawGAFdnJXuaDK/mG9ZuUyQbskIy/+rmqjlc+Nf1r3/PZvbUrL6h+N0GjNYbMKzg1LkTvwNdTKQws3KCLHFK6zGaf9E+QSTz1mzuF6RX/fSWeVjxt1oJ4ywJEyQKZQIWr/k4iyX7CrEPku2wncmYO3CBZ6EwnLQ7dhm9WaTfCnKX3CM11aWkme5O8LFJ/AZUa5/35IuF3cm0CHo0o/S42vCZaG/oERQHswUU0FQgFFzWOd2kwAm1Yl694G5wV/Ogsac6DfKFm8P5KJJq70/vhqC39vXyWahnONjtSzE3xHSCYEP6JP4gQvYJGljtXk5tmTNy4JmC7I+tfCehjOMKDSZ7jgRCWwmUOPTKo0tPXeCSL11FOXBqr5+Y+ouB0T2K89JoS7trp6rU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41ff83b7-a897-448f-21cf-08dcf3cb4cd1 X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB10914.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2024 01:29:27.3238 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: n++L8d7tl/gMzl4KnwpWzCzRLSfVtmq594oJGTY1Dr5T8av/7EyPx7VuawcyoaztSyg9/cjdnr+PTVCwsIhpJg+pvEvhrG2SxiDFi4NpP0AbXjdbnN8LoUhvZGajDaxa X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB12111 Now rtd->num is renamed to rtd->id. Let's switch. Signed-off-by: Kuninori Morimoto Acked-by: Jerome Brunet --- sound/soc/meson/axg-card.c | 6 +++--- sound/soc/meson/gx-card.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-card.c index 5ebf287fe7004..a2dfccb7990f3 100644 --- a/sound/soc/meson/axg-card.c +++ b/sound/soc/meson/axg-card.c @@ -43,7 +43,7 @@ static int axg_card_tdm_be_hw_params(struct snd_pcm_substream *substream, struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct meson_card *priv = snd_soc_card_get_drvdata(rtd->card); struct axg_dai_link_tdm_data *be = - (struct axg_dai_link_tdm_data *)priv->link_data[rtd->num]; + (struct axg_dai_link_tdm_data *)priv->link_data[rtd->id]; return meson_card_i2s_set_sysclk(substream, params, be->mclk_fs); } @@ -56,7 +56,7 @@ static int axg_card_tdm_dai_init(struct snd_soc_pcm_runtime *rtd) { struct meson_card *priv = snd_soc_card_get_drvdata(rtd->card); struct axg_dai_link_tdm_data *be = - (struct axg_dai_link_tdm_data *)priv->link_data[rtd->num]; + (struct axg_dai_link_tdm_data *)priv->link_data[rtd->id]; struct snd_soc_dai *codec_dai; int ret, i; @@ -86,7 +86,7 @@ static int axg_card_tdm_dai_lb_init(struct snd_soc_pcm_runtime *rtd) { struct meson_card *priv = snd_soc_card_get_drvdata(rtd->card); struct axg_dai_link_tdm_data *be = - (struct axg_dai_link_tdm_data *)priv->link_data[rtd->num]; + (struct axg_dai_link_tdm_data *)priv->link_data[rtd->id]; int ret; /* The loopback rx_mask is the pad tx_mask */ diff --git a/sound/soc/meson/gx-card.c b/sound/soc/meson/gx-card.c index 455f6bfc9f8fa..b408cc2bbc919 100644 --- a/sound/soc/meson/gx-card.c +++ b/sound/soc/meson/gx-card.c @@ -32,7 +32,7 @@ static int gx_card_i2s_be_hw_params(struct snd_pcm_substream *substream, struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct meson_card *priv = snd_soc_card_get_drvdata(rtd->card); struct gx_dai_link_i2s_data *be = - (struct gx_dai_link_i2s_data *)priv->link_data[rtd->num]; + (struct gx_dai_link_i2s_data *)priv->link_data[rtd->id]; return meson_card_i2s_set_sysclk(substream, params, be->mclk_fs); }