diff mbox

alsa-lib: topology: Fix private data for BEs

Message ID 1505249183-14478-1-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Liam Girdwood Sept. 12, 2017, 8:46 p.m. UTC
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(-)

Comments

Liam Girdwood Sept. 12, 2017, 8:49 p.m. UTC | #1
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);
diff mbox

Patch

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);