2019-10-13 19:00:53

by Daniel Baluta

[permalink] [raw]
Subject: [RFC PATCH 2/2] ASoC: simple-card: Add documentation for force-dpcm property

This property can be global in which case all links created will be DPCM
or present in certian dai-link subnode in which case only that specific
link is forced to be DPCM.

Signed-off-by: Daniel Baluta <[email protected]>
---
Documentation/devicetree/bindings/sound/simple-card.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt
index 79954cd6e37b..15e6f5329857 100644
--- a/Documentation/devicetree/bindings/sound/simple-card.txt
+++ b/Documentation/devicetree/bindings/sound/simple-card.txt
@@ -63,6 +63,7 @@ Optional dai-link subnode properties:
- mclk-fs : Multiplication factor between stream
rate and codec mclk, applied only for
the dai-link.
+- force-dpcm : Indicates dai-link is always DPCM.

For backward compatibility the frame-master and bitclock-master
properties can be used as booleans in codec subnode to indicate if the
--
2.17.1


2019-10-14 11:58:07

by Mark Brown

[permalink] [raw]
Subject: Re: [RFC PATCH 2/2] ASoC: simple-card: Add documentation for force-dpcm property

On Sun, Oct 13, 2019 at 10:00:14PM +0300, Daniel Baluta wrote:

> This property can be global in which case all links created will be DPCM
> or present in certian dai-link subnode in which case only that specific
> link is forced to be DPCM.

> +- force-dpcm : Indicates dai-link is always DPCM.

DPCM is an implementation detail of Linux (and one that we want to phase
out going forwards too), we shouldn't be putting it in the DT bindings
where it becomes an ABI.


Attachments:
(No filename) (480.00 B)
signature.asc (499.00 B)
Download all attachments

2019-10-14 13:18:50

by Daniel Baluta

[permalink] [raw]
Subject: Re: [alsa-devel] [RFC PATCH 2/2] ASoC: simple-card: Add documentation for force-dpcm property

On Mon, Oct 14, 2019 at 2:57 PM Mark Brown <[email protected]> wrote:
>
> On Sun, Oct 13, 2019 at 10:00:14PM +0300, Daniel Baluta wrote:
>
> > This property can be global in which case all links created will be DPCM
> > or present in certian dai-link subnode in which case only that specific
> > link is forced to be DPCM.
>
> > +- force-dpcm : Indicates dai-link is always DPCM.
>
> DPCM is an implementation detail of Linux (and one that we want to phase
> out going forwards too), we shouldn't be putting it in the DT bindings
> where it becomes an ABI.

Hi Mark,

I see your point. This is way I marked the patch series as RFC. I need to find
another way to reuse simple-card as machine driver for SOF.

thanks,
Daniel.

2019-10-14 16:44:39

by Mark Brown

[permalink] [raw]
Subject: Re: [alsa-devel] [RFC PATCH 2/2] ASoC: simple-card: Add documentation for force-dpcm property

On Mon, Oct 14, 2019 at 04:17:31PM +0300, Daniel Baluta wrote:
> On Mon, Oct 14, 2019 at 2:57 PM Mark Brown <[email protected]> wrote:

> > DPCM is an implementation detail of Linux (and one that we want to phase
> > out going forwards too), we shouldn't be putting it in the DT bindings
> > where it becomes an ABI.

> I see your point. This is way I marked the patch series as RFC. I need to find
> another way to reuse simple-card as machine driver for SOF.

Have a look at the way the Renesas systems are using this and the audio
graph card - they have DPCM.


Attachments:
(No filename) (576.00 B)
signature.asc (499.00 B)
Download all attachments

2019-10-15 02:13:10

by Kuninori Morimoto

[permalink] [raw]
Subject: Re: [alsa-devel] [RFC PATCH 2/2] ASoC: simple-card: Add documentation for force-dpcm property


Hi

> > > DPCM is an implementation detail of Linux (and one that we want to phase
> > > out going forwards too), we shouldn't be putting it in the DT bindings
> > > where it becomes an ABI.
>
> > I see your point. This is way I marked the patch series as RFC. I need to find
> > another way to reuse simple-card as machine driver for SOF.
>
> Have a look at the way the Renesas systems are using this and the audio
> graph card - they have DPCM.

Indeed we (= Renesas) are using this as DPCM, but unfortunately
it is not upstreamed. Using local patch.

Thank you for your help !!
Best regards
---
Kuninori Morimoto

2019-10-15 02:16:33

by Kuninori Morimoto

[permalink] [raw]
Subject: Re: [alsa-devel] [RFC PATCH 2/2] ASoC: simple-card: Add documentation for force-dpcm property


Hi

> > > > DPCM is an implementation detail of Linux (and one that we want to phase
> > > > out going forwards too), we shouldn't be putting it in the DT bindings
> > > > where it becomes an ABI.
> >
> > > I see your point. This is way I marked the patch series as RFC. I need to find
> > > another way to reuse simple-card as machine driver for SOF.
> >
> > Have a look at the way the Renesas systems are using this and the audio
> > graph card - they have DPCM.
>
> Indeed we (= Renesas) are using this as DPCM, but unfortunately
> it is not upstreamed. Using local patch.

I mean DT part.

Thank you for your help !!
Best regards
---
Kuninori Morimoto