* [PATCH] alsa-lib: topology: Fix private data for BEs
@ 2017-08-22 9:16 Liam Girdwood
2017-08-22 12:00 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Liam Girdwood @ 2017-08-22 9:16 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, Liam Girdwood
Private data was not being added to BEs. Fix this.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
src/topology/data.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/topology/data.c b/src/topology/data.c
index 5b83b9f..f96ff9b 100644
--- a/src/topology/data.c
+++ b/src/topology/data.c
@@ -50,7 +50,9 @@ struct snd_soc_tplg_private *get_priv_data(struct tplg_elem *elem)
case SND_TPLG_TYPE_DAI:
priv = &elem->dai->priv;
break;
-
+ case SND_TPLG_TYPE_BE:
+ priv = &elem->link->priv;
+ break;
default:
SNDERR("error: '%s': no support for private data for type %d\n",
elem->id, elem->type);
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] alsa-lib: topology: Fix private data for BEs
2017-08-22 9:16 [PATCH] alsa-lib: topology: Fix private data for BEs Liam Girdwood
@ 2017-08-22 12:00 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2017-08-22 12:00 UTC (permalink / raw)
To: Liam Girdwood; +Cc: alsa-devel
On Tue, 22 Aug 2017 11:16:05 +0200,
Liam Girdwood wrote:
>
> Private data was not being added to BEs. Fix this.
>
> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Applied, thanks.
Takashi
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] alsa-lib: topology: Fix private data for BEs
@ 2017-09-12 20:46 Liam Girdwood
2017-09-12 20:49 ` Liam Girdwood
0 siblings, 1 reply; 4+ messages in thread
From: Liam Girdwood @ 2017-09-12 20:46 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, Liam Girdwood, Pierre-Louis Bossart
Private data was not being added to BEs. Fix this.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
---
src/topology/data.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/topology/data.c b/src/topology/data.c
index 5b83b9f..f96ff9b 100644
--- a/src/topology/data.c
+++ b/src/topology/data.c
@@ -50,7 +50,9 @@ struct snd_soc_tplg_private *get_priv_data(struct tplg_elem *elem)
case SND_TPLG_TYPE_DAI:
priv = &elem->dai->priv;
break;
-
+ case SND_TPLG_TYPE_BE:
+ priv = &elem->link->priv;
+ break;
default:
SNDERR("error: '%s': no support for private data for type %d\n",
elem->id, elem->type);
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] alsa-lib: topology: Fix private data for BEs
2017-09-12 20:46 Liam Girdwood
@ 2017-09-12 20:49 ` Liam Girdwood
0 siblings, 0 replies; 4+ messages in thread
From: Liam Girdwood @ 2017-09-12 20:49 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, Pierre-Louis Bossart
Please ignore, wrong patch and already applied.
On Tue, 2017-09-12 at 21:46 +0100, Liam Girdwood wrote:
> Private data was not being added to BEs. Fix this.
>
> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
> ---
> src/topology/data.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/topology/data.c b/src/topology/data.c
> index 5b83b9f..f96ff9b 100644
> --- a/src/topology/data.c
> +++ b/src/topology/data.c
> @@ -50,7 +50,9 @@ struct snd_soc_tplg_private *get_priv_data(struct tplg_elem *elem)
> case SND_TPLG_TYPE_DAI:
> priv = &elem->dai->priv;
> break;
> -
> + case SND_TPLG_TYPE_BE:
> + priv = &elem->link->priv;
> + break;
> default:
> SNDERR("error: '%s': no support for private data for type %d\n",
> elem->id, elem->type);
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-12 20:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-22 9:16 [PATCH] alsa-lib: topology: Fix private data for BEs Liam Girdwood
2017-08-22 12:00 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2017-09-12 20:46 Liam Girdwood
2017-09-12 20:49 ` Liam Girdwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).