All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: simple-scu-card: Parse off codec widgets
@ 2017-08-11 14:12 ` Daniel Baluta
  0 siblings, 0 replies; 10+ messages in thread
From: Daniel Baluta @ 2017-08-11 14:12 UTC (permalink / raw)
  To: broonie
  Cc: kuninori.morimoto.gx, alsa-devel, devicetree, linux-kernel,
	mihai.serban, shengjiu.wang, viorel.suman, Daniel Baluta

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 +
 sound/soc/generic/simple-scu-card.c                         | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
index 327d229..32f8dbc 100644
--- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt
+++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
@@ -24,6 +24,7 @@ Optional subnode properties:
 - simple-audio-card,convert-rate	: platform specified sampling rate convert
 - simple-audio-card,convert-channels	: platform specified converted channel size (2 - 8 ch)
 - simple-audio-card,prefix		: see routing
+- simple-audio-card,widgets		: Please refer to widgets.txt.
 - simple-audio-card,routing		: A list of the connections between audio components.
 					  Each entry is a pair of strings, the first being the connection's sink,
 					  the second being the connection's source. Valid names for sources.
diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c
index a75b385..0bb3da7 100644
--- a/sound/soc/generic/simple-scu-card.c
+++ b/sound/soc/generic/simple-scu-card.c
@@ -191,6 +191,10 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv)
 	if (!node)
 		return -EINVAL;
 
+	ret = asoc_simple_card_of_parse_widgets(card, PREFIX);
+	if (ret < 0)
+		return ret;
+
 	ret = asoc_simple_card_of_parse_routing(card, PREFIX, 0);
 	if (ret < 0)
 		return ret;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH] ASoC: simple-scu-card: Parse off codec widgets
@ 2017-08-11 14:12 ` Daniel Baluta
  0 siblings, 0 replies; 10+ messages in thread
From: Daniel Baluta @ 2017-08-11 14:12 UTC (permalink / raw)
  To: broonie-DgEjT+Ai2ygdnm+yROfE0A
  Cc: kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, mihai.serban-3arQi8VN3Tc,
	shengjiu.wang-3arQi8VN3Tc, viorel.suman-3arQi8VN3Tc,
	Daniel Baluta

Signed-off-by: Daniel Baluta <daniel.baluta-3arQi8VN3Tc@public.gmane.org>
---
 Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 +
 sound/soc/generic/simple-scu-card.c                         | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
index 327d229..32f8dbc 100644
--- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt
+++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
@@ -24,6 +24,7 @@ Optional subnode properties:
 - simple-audio-card,convert-rate	: platform specified sampling rate convert
 - simple-audio-card,convert-channels	: platform specified converted channel size (2 - 8 ch)
 - simple-audio-card,prefix		: see routing
+- simple-audio-card,widgets		: Please refer to widgets.txt.
 - simple-audio-card,routing		: A list of the connections between audio components.
 					  Each entry is a pair of strings, the first being the connection's sink,
 					  the second being the connection's source. Valid names for sources.
diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c
index a75b385..0bb3da7 100644
--- a/sound/soc/generic/simple-scu-card.c
+++ b/sound/soc/generic/simple-scu-card.c
@@ -191,6 +191,10 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv)
 	if (!node)
 		return -EINVAL;
 
+	ret = asoc_simple_card_of_parse_widgets(card, PREFIX);
+	if (ret < 0)
+		return ret;
+
 	ret = asoc_simple_card_of_parse_routing(card, PREFIX, 0);
 	if (ret < 0)
 		return ret;
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets
@ 2017-08-17 20:13   ` Rob Herring
  0 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2017-08-17 20:13 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: broonie, kuninori.morimoto.gx, alsa-devel, devicetree,
	linux-kernel, mihai.serban, shengjiu.wang, viorel.suman

On Fri, Aug 11, 2017 at 05:12:19PM +0300, Daniel Baluta wrote:
> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
> ---
>  Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 +
>  sound/soc/generic/simple-scu-card.c                         | 4 ++++
>  2 files changed, 5 insertions(+)

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets
@ 2017-08-17 20:13   ` Rob Herring
  0 siblings, 0 replies; 10+ messages in thread
From: Rob Herring @ 2017-08-17 20:13 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A,
	kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, mihai.serban-3arQi8VN3Tc,
	shengjiu.wang-3arQi8VN3Tc, viorel.suman-3arQi8VN3Tc

On Fri, Aug 11, 2017 at 05:12:19PM +0300, Daniel Baluta wrote:
> Signed-off-by: Daniel Baluta <daniel.baluta-3arQi8VN3Tc@public.gmane.org>
> ---
>  Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 +
>  sound/soc/generic/simple-scu-card.c                         | 4 ++++
>  2 files changed, 5 insertions(+)

Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets
  2017-08-11 14:12 ` Daniel Baluta
@ 2017-08-21  0:43   ` Kuninori Morimoto
  -1 siblings, 0 replies; 10+ messages in thread
From: Kuninori Morimoto @ 2017-08-21  0:43 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: broonie, alsa-devel, devicetree, linux-kernel, mihai.serban,
	shengjiu.wang, viorel.suman


Hi

> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
> ---
>  Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 +
>  sound/soc/generic/simple-scu-card.c                         | 4 ++++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> index 327d229..32f8dbc 100644
> --- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> +++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> @@ -24,6 +24,7 @@ Optional subnode properties:
>  - simple-audio-card,convert-rate	: platform specified sampling rate convert
>  - simple-audio-card,convert-channels	: platform specified converted channel size (2 - 8 ch)
>  - simple-audio-card,prefix		: see routing
> +- simple-audio-card,widgets		: Please refer to widgets.txt.
>  - simple-audio-card,routing		: A list of the connections between audio components.
>  					  Each entry is a pair of strings, the first being the connection's sink,
>  					  the second being the connection's source. Valid names for sources.

It can be "see simple-audio-card.txt" same as other properties.
Not a big deal though

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

> diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c
> index a75b385..0bb3da7 100644
> --- a/sound/soc/generic/simple-scu-card.c
> +++ b/sound/soc/generic/simple-scu-card.c
> @@ -191,6 +191,10 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv)
>  	if (!node)
>  		return -EINVAL;
>  
> +	ret = asoc_simple_card_of_parse_widgets(card, PREFIX);
> +	if (ret < 0)
> +		return ret;
> +
>  	ret = asoc_simple_card_of_parse_routing(card, PREFIX, 0);
>  	if (ret < 0)
>  		return ret;
> -- 
> 2.7.4
> 


Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets
@ 2017-08-21  0:43   ` Kuninori Morimoto
  0 siblings, 0 replies; 10+ messages in thread
From: Kuninori Morimoto @ 2017-08-21  0:43 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: broonie, alsa-devel, devicetree, linux-kernel, mihai.serban,
	shengjiu.wang, viorel.suman


Hi

> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
> ---
>  Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 +
>  sound/soc/generic/simple-scu-card.c                         | 4 ++++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> index 327d229..32f8dbc 100644
> --- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> +++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> @@ -24,6 +24,7 @@ Optional subnode properties:
>  - simple-audio-card,convert-rate	: platform specified sampling rate convert
>  - simple-audio-card,convert-channels	: platform specified converted channel size (2 - 8 ch)
>  - simple-audio-card,prefix		: see routing
> +- simple-audio-card,widgets		: Please refer to widgets.txt.
>  - simple-audio-card,routing		: A list of the connections between audio components.
>  					  Each entry is a pair of strings, the first being the connection's sink,
>  					  the second being the connection's source. Valid names for sources.

It can be "see simple-audio-card.txt" same as other properties.
Not a big deal though

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

> diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c
> index a75b385..0bb3da7 100644
> --- a/sound/soc/generic/simple-scu-card.c
> +++ b/sound/soc/generic/simple-scu-card.c
> @@ -191,6 +191,10 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv)
>  	if (!node)
>  		return -EINVAL;
>  
> +	ret = asoc_simple_card_of_parse_widgets(card, PREFIX);
> +	if (ret < 0)
> +		return ret;
> +
>  	ret = asoc_simple_card_of_parse_routing(card, PREFIX, 0);
>  	if (ret < 0)
>  		return ret;
> -- 
> 2.7.4
> 


Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets
  2017-08-21  0:43   ` Kuninori Morimoto
@ 2017-08-21  8:31     ` Daniel Baluta
  -1 siblings, 0 replies; 10+ messages in thread
From: Daniel Baluta @ 2017-08-21  8:31 UTC (permalink / raw)
  To: kuninori.morimoto.gx
  Cc: linux-kernel, S.j. Wang, Mihai Serban, broonie, alsa-devel,
	devicetree, Viorel Suman

On Lu, 2017-08-21 at 00:43 +0000, Kuninori Morimoto wrote:
> Hi
> 
> > 
> > Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
> > ---
> >  Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 +
> >  sound/soc/generic/simple-scu-card.c                         | 4 ++++
> >  2 files changed, 5 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> > index 327d229..32f8dbc 100644
> > --- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> > +++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> > @@ -24,6 +24,7 @@ Optional subnode properties:
> >  - simple-audio-card,convert-rate	: platform specified sampling rate convert
> >  - simple-audio-card,convert-channels	: platform specified converted channel size (2 - 8 ch)
> >  - simple-audio-card,prefix		: see routing
> > +- simple-audio-card,widgets		: Please refer to widgets.txt.
> >  - simple-audio-card,routing		: A list of the connections between audio components.
> >  					  Each entry is a pair of strings, the first being the connection's sink,
> >  					  the second being the connection's source. Valid names for sources.
> It can be "see simple-audio-card.txt" same as other properties.
> Not a big deal though
> 
> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Thanks for having a look. I don't have a strong preference, but given that
the patch was already pushed and when you'll go to simple-audio-card.txt it
will point you to widgets.txt we can leave it like that.

Daniel.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets
@ 2017-08-21  8:31     ` Daniel Baluta
  0 siblings, 0 replies; 10+ messages in thread
From: Daniel Baluta @ 2017-08-21  8:31 UTC (permalink / raw)
  To: kuninori.morimoto.gx
  Cc: devicetree, alsa-devel, S.j. Wang, linux-kernel, broonie,
	Viorel Suman, Mihai Serban

On Lu, 2017-08-21 at 00:43 +0000, Kuninori Morimoto wrote:
> Hi
> 
> > 
> > Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
> > ---
> >  Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 +
> >  sound/soc/generic/simple-scu-card.c                         | 4 ++++
> >  2 files changed, 5 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> > index 327d229..32f8dbc 100644
> > --- a/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> > +++ b/Documentation/devicetree/bindings/sound/simple-scu-card.txt
> > @@ -24,6 +24,7 @@ Optional subnode properties:
> >  - simple-audio-card,convert-rate	: platform specified sampling rate convert
> >  - simple-audio-card,convert-channels	: platform specified converted channel size (2 - 8 ch)
> >  - simple-audio-card,prefix		: see routing
> > +- simple-audio-card,widgets		: Please refer to widgets.txt.
> >  - simple-audio-card,routing		: A list of the connections between audio components.
> >  					  Each entry is a pair of strings, the first being the connection's sink,
> >  					  the second being the connection's source. Valid names for sources.
> It can be "see simple-audio-card.txt" same as other properties.
> Not a big deal though
> 
> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Thanks for having a look. I don't have a strong preference, but given that
the patch was already pushed and when you'll go to simple-audio-card.txt it
will point you to widgets.txt we can leave it like that.

Daniel.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets
@ 2017-08-21 23:50       ` Kuninori Morimoto
  0 siblings, 0 replies; 10+ messages in thread
From: Kuninori Morimoto @ 2017-08-21 23:50 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: linux-kernel, S.j. Wang, Mihai Serban, broonie, alsa-devel,
	devicetree, Viorel Suman


Hi Daniel

> > > @@ -24,6 +24,7 @@ Optional subnode properties:
> > >  - simple-audio-card,convert-rate	: platform specified sampling rate convert
> > >  - simple-audio-card,convert-channels	: platform specified converted channel size (2 - 8 ch)
> > >  - simple-audio-card,prefix		: see routing
> > > +- simple-audio-card,widgets		: Please refer to widgets.txt.
> > >  - simple-audio-card,routing		: A list of the connections between audio components.
> > >  					  Each entry is a pair of strings, the first being the connection's sink,
> > >  					  the second being the connection's source. Valid names for sources.
> > It can be "see simple-audio-card.txt" same as other properties.
> > Not a big deal though
> > 
> > Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> Thanks for having a look. I don't have a strong preference, but given that
> the patch was already pushed and when you'll go to simple-audio-card.txt it
> will point you to widgets.txt we can leave it like that.

Thanks.
No problem for me, it is not a big deal :)

Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets
@ 2017-08-21 23:50       ` Kuninori Morimoto
  0 siblings, 0 replies; 10+ messages in thread
From: Kuninori Morimoto @ 2017-08-21 23:50 UTC (permalink / raw)
  To: Daniel Baluta
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, S.j. Wang, Mihai Serban,
	broonie-DgEjT+Ai2ygdnm+yROfE0A,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Viorel Suman


Hi Daniel

> > > @@ -24,6 +24,7 @@ Optional subnode properties:
> > >  - simple-audio-card,convert-rate	: platform specified sampling rate convert
> > >  - simple-audio-card,convert-channels	: platform specified converted channel size (2 - 8 ch)
> > >  - simple-audio-card,prefix		: see routing
> > > +- simple-audio-card,widgets		: Please refer to widgets.txt.
> > >  - simple-audio-card,routing		: A list of the connections between audio components.
> > >  					  Each entry is a pair of strings, the first being the connection's sink,
> > >  					  the second being the connection's source. Valid names for sources.
> > It can be "see simple-audio-card.txt" same as other properties.
> > Not a big deal though
> > 
> > Acked-by: Kuninori Morimoto <kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
> 
> Thanks for having a look. I don't have a strong preference, but given that
> the patch was already pushed and when you'll go to simple-audio-card.txt it
> will point you to widgets.txt we can leave it like that.

Thanks.
No problem for me, it is not a big deal :)

Best regards
---
Kuninori Morimoto
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-08-21 23:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-11 14:12 [PATCH] ASoC: simple-scu-card: Parse off codec widgets Daniel Baluta
2017-08-11 14:12 ` Daniel Baluta
2017-08-17 20:13 ` Rob Herring
2017-08-17 20:13   ` Rob Herring
2017-08-21  0:43 ` Kuninori Morimoto
2017-08-21  0:43   ` Kuninori Morimoto
2017-08-21  8:31   ` Daniel Baluta
2017-08-21  8:31     ` Daniel Baluta
2017-08-21 23:50     ` Kuninori Morimoto
2017-08-21 23:50       ` Kuninori Morimoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.