* [PATCH v2] ASoC: Intel: catpt: use asoc_substream_to_rtd()
@ 2022-03-07 15:19 Lianjie Zhang
2022-03-07 16:19 ` Cezary Rojewski
2022-03-08 17:20 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Lianjie Zhang @ 2022-03-07 15:19 UTC (permalink / raw)
To: Jaroslav Kysela
Cc: Cezary Rojewski, Pierre-Louis Bossart, Liam Girdwood, Jie Yang,
Mark Brown, Takashi Iwai, alsa-devel, linux-kernel,
Lianjie Zhang
Now we can use asoc_substream_to_rtd() macro,
let's use it.
Signed-off-by: Lianjie Zhang <zhanglianjie@uniontech.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
diff --git a/sound/soc/intel/catpt/pcm.c b/sound/soc/intel/catpt/pcm.c
index 939a9b801dec..a26000cd5ceb 100644
--- a/sound/soc/intel/catpt/pcm.c
+++ b/sound/soc/intel/catpt/pcm.c
@@ -74,7 +74,7 @@ static struct catpt_stream_template *catpt_topology[] = {
static struct catpt_stream_template *
catpt_get_stream_template(struct snd_pcm_substream *substream)
{
- struct snd_soc_pcm_runtime *rtm = substream->private_data;
+ struct snd_soc_pcm_runtime *rtm = asoc_substream_to_rtd(substream);
struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtm, 0);
enum catpt_stream_type type;
@@ -593,7 +593,7 @@ static int catpt_component_pcm_construct(struct snd_soc_component *component,
static int catpt_component_open(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{
- struct snd_soc_pcm_runtime *rtm = substream->private_data;
+ struct snd_soc_pcm_runtime *rtm = asoc_substream_to_rtd(substream);
if (!rtm->dai_link->no_pcm)
snd_soc_set_runtime_hwparams(substream, &catpt_pcm_hardware);
@@ -604,7 +604,7 @@ static snd_pcm_uframes_t
catpt_component_pointer(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{
- struct snd_soc_pcm_runtime *rtm = substream->private_data;
+ struct snd_soc_pcm_runtime *rtm = asoc_substream_to_rtd(substream);
struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtm, 0);
struct catpt_stream_runtime *stream;
struct catpt_dev *cdev = dev_get_drvdata(component->dev);
--
2.20.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] ASoC: Intel: catpt: use asoc_substream_to_rtd()
2022-03-07 15:19 [PATCH v2] ASoC: Intel: catpt: use asoc_substream_to_rtd() Lianjie Zhang
@ 2022-03-07 16:19 ` Cezary Rojewski
2022-03-08 17:20 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Cezary Rojewski @ 2022-03-07 16:19 UTC (permalink / raw)
To: Lianjie Zhang, Jaroslav Kysela
Cc: Pierre-Louis Bossart, Liam Girdwood, Jie Yang, Mark Brown,
Takashi Iwai, alsa-devel, linux-kernel
On 2022-03-07 4:19 PM, Lianjie Zhang wrote:
> Now we can use asoc_substream_to_rtd() macro,
> let's use it.
>
> Signed-off-by: Lianjie Zhang <zhanglianjie@uniontech.com>
> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Hello,
Please do not add reviewer tags until it's actually provided by them.
In regard to v2, thanks for addressing the title. Patch LGTM.
Regards,
Czarek
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] ASoC: Intel: catpt: use asoc_substream_to_rtd()
2022-03-07 15:19 [PATCH v2] ASoC: Intel: catpt: use asoc_substream_to_rtd() Lianjie Zhang
2022-03-07 16:19 ` Cezary Rojewski
@ 2022-03-08 17:20 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-03-08 17:20 UTC (permalink / raw)
To: Jaroslav Kysela, Lianjie Zhang
Cc: Liam Girdwood, alsa-devel, Takashi Iwai, linux-kernel,
Pierre-Louis Bossart, Jie Yang, Cezary Rojewski
On Mon, 7 Mar 2022 23:19:39 +0800, Lianjie Zhang wrote:
> Now we can use asoc_substream_to_rtd() macro,
> let's use it.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: Intel: catpt: use asoc_substream_to_rtd()
commit: 51996ca26fc7b5dbeea80eddba0e8a4ece6af459
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-08 17:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07 15:19 [PATCH v2] ASoC: Intel: catpt: use asoc_substream_to_rtd() Lianjie Zhang
2022-03-07 16:19 ` Cezary Rojewski
2022-03-08 17:20 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®