From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: [PATCH 11/29] ASoC: cirrus: use asoc_substream_to_rtd()
Date: 20 Jul 2020 10:18:24 +0900 [thread overview]
Message-ID: <87imej0yu5.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87y2nf0yw2.wl-kuninori.morimoto.gx@renesas.com>
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Now we can use asoc_substream_to_rtd() macro,
let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
sound/soc/cirrus/edb93xx.c | 2 +-
sound/soc/cirrus/snappercl15.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/cirrus/edb93xx.c b/sound/soc/cirrus/edb93xx.c
index ccf65f087ea6..7b6cdc9c8a23 100644
--- a/sound/soc/cirrus/edb93xx.c
+++ b/sound/soc/cirrus/edb93xx.c
@@ -22,7 +22,7 @@
static int edb93xx_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{
- struct snd_soc_pcm_runtime *rtd = substream->private_data;
+ struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
int err;
diff --git a/sound/soc/cirrus/snappercl15.c b/sound/soc/cirrus/snappercl15.c
index cb133e80b7c3..c4b112921661 100644
--- a/sound/soc/cirrus/snappercl15.c
+++ b/sound/soc/cirrus/snappercl15.c
@@ -22,7 +22,7 @@
static int snappercl15_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{
- struct snd_soc_pcm_runtime *rtd = substream->private_data;
+ struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
int err;
--
2.25.1
next prev parent reply other threads:[~2020-07-20 1:25 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-20 1:17 [PATCH 00/29] ASoC: add asoc_substream_to_rtd() macro Kuninori Morimoto
2020-07-20 1:17 ` [PATCH 01/29] ASoC: soc-xxx: add asoc_substream_to_rtd() Kuninori Morimoto
2020-07-20 1:17 ` [PATCH 02/29] ASoC: ux500: use asoc_substream_to_rtd() Kuninori Morimoto
2020-07-20 1:17 ` [PATCH 03/29] ASoC: ti: " Kuninori Morimoto
2020-07-20 1:17 ` [PATCH 04/29] ASoC: tegra: " Kuninori Morimoto
2020-07-20 1:17 ` [PATCH 05/29] ASoC: sunxi: " Kuninori Morimoto
2020-07-20 1:18 ` [PATCH 06/29] ASoC: stm: " Kuninori Morimoto
2020-07-20 1:18 ` [PATCH 07/29] ASoC: sof: " Kuninori Morimoto
2020-07-20 15:12 ` Pierre-Louis Bossart
2020-07-20 1:18 ` [PATCH 08/29] ASoC: sh: " Kuninori Morimoto
2020-07-20 1:18 ` [PATCH 09/29] ASoC: samsung: " Kuninori Morimoto
2020-07-20 1:18 ` [PATCH 10/29] ASoC: pxa: " Kuninori Morimoto
2020-07-20 1:18 ` Kuninori Morimoto [this message]
2020-07-20 1:18 ` [PATCH 12/29] ASoC: rockchip: " Kuninori Morimoto
2020-07-20 1:18 ` [PATCH 13/29] ASoC: amd: " Kuninori Morimoto
2020-07-20 1:18 ` [PATCH 14/29] ASoC: fsl: " Kuninori Morimoto
2020-07-20 1:18 ` [PATCH 15/29] ASoC: mediatek: " Kuninori Morimoto
2020-07-20 1:18 ` [PATCH 16/29] ASoC: atmel: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 17/29] ASoC: qcom: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 18/29] ASoC: dwc: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 19/29] ASoC: intel: " Kuninori Morimoto
2020-07-20 15:17 ` Pierre-Louis Bossart
2020-07-21 1:26 ` Kuninori Morimoto
2020-07-21 22:45 ` Mark Brown
2020-07-20 1:19 ` [PATCH 20/29] ASoC: meson: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 21/29] ASoC: au1x: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 22/29] ASoC: bcm: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 23/29] ASoC: codecs: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 24/29] ASoC: generic: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 25/29] ASoC: sprd: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 26/29] ASoC: kirkwood: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 27/29] ASoC: xtensa: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 28/29] ASoC: mxs: " Kuninori Morimoto
2020-07-20 1:19 ` [PATCH 29/29] ASoC: uniphier: " Kuninori Morimoto
2020-07-23 20:19 ` [PATCH 00/29] ASoC: add asoc_substream_to_rtd() macro Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87imej0yu5.wl-kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).