* [PATCH RFC] ASoC: amlogic: do not use dpcm_playback/capture flags [not found] <87o79azh65.wl-kuninori.morimoto.gx@renesas.com> @ 2024-05-14 14:30 ` Jerome Brunet 2024-05-14 14:45 ` Mark Brown 0 siblings, 1 reply; 4+ messages in thread From: Jerome Brunet @ 2024-05-14 14:30 UTC (permalink / raw) To: Mark Brown, Liam Girdwood, Kuninori Morimoto Cc: Jerome Brunet, alsa-devel, linux-kernel, linux-amlogic dpcm_playback/capture flags are being deprecated in ASoC. Use playback/capture_only flags instead Suggested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> --- Following Kuninori's series, dpcm_playback/capture will be ignored. However, properly disabling stream direction is important for Amlogic audio drivers. I'm not too sure how this should be applied to avoid breaking bisect, before or after Kuninori's series. Maybe it should be merged into it ? Any suggestion Kuninori ? sound/soc/meson/axg-card.c | 10 +++++----- sound/soc/meson/meson-card-utils.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/meson/axg-card.c b/sound/soc/meson/axg-card.c index 09aa36e94c85..646ab87afac2 100644 --- a/sound/soc/meson/axg-card.c +++ b/sound/soc/meson/axg-card.c @@ -132,7 +132,7 @@ static int axg_card_add_tdm_loopback(struct snd_soc_card *card, lb->stream_name = lb->name; lb->cpus->of_node = pad->cpus->of_node; lb->cpus->dai_name = "TDM Loopback"; - lb->dpcm_capture = 1; + lb->capture_only = 1; lb->no_pcm = 1; lb->ops = &axg_card_tdm_be_ops; lb->init = axg_card_tdm_dai_lb_init; @@ -176,7 +176,7 @@ static int axg_card_parse_cpu_tdm_slots(struct snd_soc_card *card, /* Disable playback is the interface has no tx slots */ if (!tx) - link->dpcm_playback = 0; + link->capture_only = 1; for (i = 0, rx = 0; i < AXG_TDM_NUM_LANES; i++) { snprintf(propname, 32, "dai-tdm-slot-rx-mask-%d", i); @@ -186,9 +186,9 @@ static int axg_card_parse_cpu_tdm_slots(struct snd_soc_card *card, /* Disable capture is the interface has no rx slots */ if (!rx) - link->dpcm_capture = 0; + link->playback_only = 1; - /* ... but the interface should at least have one of them */ + /* ... but the interface should at least have one direction */ if (!tx && !rx) { dev_err(card->dev, "tdm link has no cpu slots\n"); return -EINVAL; @@ -275,7 +275,7 @@ static int axg_card_parse_tdm(struct snd_soc_card *card, return ret; /* Add loopback if the pad dai has playback */ - if (link->dpcm_playback) { + if (!link->capture_only) { ret = axg_card_add_tdm_loopback(card, index); if (ret) return ret; diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c index ed6c7e2f609c..1a4ef124e4e2 100644 --- a/sound/soc/meson/meson-card-utils.c +++ b/sound/soc/meson/meson-card-utils.c @@ -186,9 +186,9 @@ int meson_card_set_fe_link(struct snd_soc_card *card, link->dpcm_merged_rate = 1; if (is_playback) - link->dpcm_playback = 1; + link->playback_only = 1; else - link->dpcm_capture = 1; + link->capture_only = 1; return meson_card_set_link_name(card, link, node, "fe"); } -- 2.43.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RFC] ASoC: amlogic: do not use dpcm_playback/capture flags 2024-05-14 14:30 ` [PATCH RFC] ASoC: amlogic: do not use dpcm_playback/capture flags Jerome Brunet @ 2024-05-14 14:45 ` Mark Brown 2024-05-14 23:11 ` Kuninori Morimoto 0 siblings, 1 reply; 4+ messages in thread From: Mark Brown @ 2024-05-14 14:45 UTC (permalink / raw) To: Jerome Brunet Cc: Liam Girdwood, Kuninori Morimoto, alsa-devel, linux-kernel, linux-amlogic [-- Attachment #1.1: Type: text/plain, Size: 665 bytes --] On Tue, May 14, 2024 at 04:30:46PM +0200, Jerome Brunet wrote: > dpcm_playback/capture flags are being deprecated in ASoC. > Use playback/capture_only flags instead > > Suggested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> > --- > > Following Kuninori's series, dpcm_playback/capture will be ignored. > However, properly disabling stream direction is important for Amlogic > audio drivers. > > I'm not too sure how this should be applied to avoid breaking bisect, > before or after Kuninori's series. Maybe it should be merged into it ? Probably better to integrate it I think? [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] [-- Attachment #2: Type: text/plain, Size: 167 bytes --] _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RFC] ASoC: amlogic: do not use dpcm_playback/capture flags 2024-05-14 14:45 ` Mark Brown @ 2024-05-14 23:11 ` Kuninori Morimoto 2024-05-15 13:01 ` Jerome Brunet 0 siblings, 1 reply; 4+ messages in thread From: Kuninori Morimoto @ 2024-05-14 23:11 UTC (permalink / raw) To: Mark Brown Cc: Jerome Brunet, Liam Girdwood, alsa-devel, linux-kernel, linux-amlogic Hi > > dpcm_playback/capture flags are being deprecated in ASoC. > > Use playback/capture_only flags instead > > > > Suggested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> > > --- > > > > Following Kuninori's series, dpcm_playback/capture will be ignored. > > However, properly disabling stream direction is important for Amlogic > > audio drivers. > > > > I'm not too sure how this should be applied to avoid breaking bisect, > > before or after Kuninori's series. Maybe it should be merged into it ? > > Probably better to integrate it I think? ASoC needs dpcm_xxx flag *before* my patch. Your patch is replacing it to xxx_only flag, so it should be applied *after* my patch. So integrate/merge is good idea, I think. Thank you for your help !! Best regards --- Renesas Electronics Ph.D. Kuninori Morimoto _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RFC] ASoC: amlogic: do not use dpcm_playback/capture flags 2024-05-14 23:11 ` Kuninori Morimoto @ 2024-05-15 13:01 ` Jerome Brunet 0 siblings, 0 replies; 4+ messages in thread From: Jerome Brunet @ 2024-05-15 13:01 UTC (permalink / raw) To: Kuninori Morimoto Cc: Mark Brown, Jerome Brunet, Liam Girdwood, alsa-devel, linux-kernel, linux-amlogic On Tue 14 May 2024 at 23:11, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> wrote: > Hi > >> > dpcm_playback/capture flags are being deprecated in ASoC. >> > Use playback/capture_only flags instead >> > >> > Suggested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> >> > Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> >> > --- >> > >> > Following Kuninori's series, dpcm_playback/capture will be ignored. >> > However, properly disabling stream direction is important for Amlogic >> > audio drivers. >> > >> > I'm not too sure how this should be applied to avoid breaking bisect, >> > before or after Kuninori's series. Maybe it should be merged into it ? >> >> Probably better to integrate it I think? > > ASoC needs dpcm_xxx flag *before* my patch. > Your patch is replacing it to xxx_only flag, so it should be applied > *after* my patch. So integrate/merge is good idea, I think. Ok. Then I guess it is up to you and Mark. Please let me know if you need me for anything. Cheers > > Thank you for your help !! > > Best regards > --- > Renesas Electronics > Ph.D. Kuninori Morimoto -- Jerome _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-15 13:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <87o79azh65.wl-kuninori.morimoto.gx@renesas.com>
2024-05-14 14:30 ` [PATCH RFC] ASoC: amlogic: do not use dpcm_playback/capture flags Jerome Brunet
2024-05-14 14:45 ` Mark Brown
2024-05-14 23:11 ` Kuninori Morimoto
2024-05-15 13:01 ` Jerome Brunet
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®