From: Janusz Krzysztofik <jmkrzyszt@gmail.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Liam Girdwood <lgirdwood@gmail.com>,
Peter Ujfalusi <peter.ujfalusi@gmail.com>,
Takashi Iwai <tiwai@suse.com>,
linux-sound@vger.kernel.org
Subject: Re: [RFC][PATCH 1/2] ASoC: ti: ams-delta: Stop (ab)using card->pop_time
Date: Thu, 23 Apr 2026 01:11:17 +0200 [thread overview]
Message-ID: <9xDiBMSWSvmvMeBrronf_A@gmail.com> (raw)
In-Reply-To: <87340md2o4.wl-kuninori.morimoto.gx@renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]
On Thursday, 23 April 2026 00:57:06 CEST Kuninori Morimoto wrote:
>
> Hi Janusz
>
> > > We need an update in _close() as well, that's getting the component from
> > > disc_data.
> >
> > Thanks for spotting this. We should now get the component from
> > cx20442_codec.component in _close(), as we do in _receive(), and return if
> > (tty->disc_data != &cx20442_codec), maybe also WARN_ON(), or even BUG_ON().
> > Sorry for missing that.
> >
> > Kuninori, will you take care yourself, or do you prefer me to send a fixed
> > version?
>
> OK, I will try.
>
> I noticed that it seems it is inconsistent ways of handling tty->disc_data ?
> (A) is handling as "struct cx20442_codec",
> (B) is handling as "struct snd_soc_component",
>
> static int cx81801_open(...)
> {
> ...
> (A) tty->disc_data = &cx20442_codec;
> ...
> }
>
> static void cx81801_close(...)
> {
> (B) struct snd_soc_component *component = tty->disc_data;
Yeah, that's exactly what Mark pointed out as missed in my patch.
Thanks,
Janusz
> ...
> };
>
> Well.., it is the same things, anyway...
> It is confusable, I will fix this too.
>
> (A) struct cx20442_codec {
> (B) struct snd_soc_component *component;
> bool ready;
> };
>
>
> Thank you for your help !!
>
> Best regards
> ---
> Kuninori Morimoto
>
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-04-22 23:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-22 2:55 [RFC][PATCH 0/2] ASoC: move card->pop_time to soc-dapm Kuninori Morimoto
2026-04-22 2:55 ` [RFC][PATCH 1/2] ASoC: ti: ams-delta: Stop (ab)using card->pop_time Kuninori Morimoto
2026-04-22 12:31 ` Mark Brown
2026-04-22 16:52 ` Janusz Krzysztofik
2026-04-22 22:57 ` Kuninori Morimoto
2026-04-22 23:11 ` Janusz Krzysztofik [this message]
2026-04-23 0:31 ` Kuninori Morimoto
2026-04-22 2:56 ` [PATCH 2/2] ASoC: soc-dapm: move card->pop_time to soc-dapm.c Kuninori Morimoto
2026-04-22 12:35 ` 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=9xDiBMSWSvmvMeBrronf_A@gmail.com \
--to=jmkrzyszt@gmail.com \
--cc=broonie@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@gmail.com \
--cc=tiwai@suse.com \
/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