From patchwork Tue Aug 22 09:16:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liam Girdwood X-Patchwork-Id: 9914615 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 13D6A60381 for ; Tue, 22 Aug 2017 09:16:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3E95287AF for ; Tue, 22 Aug 2017 09:16:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E82CD28843; Tue, 22 Aug 2017 09:16:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6054F287AF for ; Tue, 22 Aug 2017 09:16:32 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2046626758A; Tue, 22 Aug 2017 11:16:30 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4759926758C; Tue, 22 Aug 2017 11:16:29 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by alsa0.perex.cz (Postfix) with ESMTP id 7F6C7267578 for ; Tue, 22 Aug 2017 11:16:25 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP; 22 Aug 2017 02:16:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,411,1498546800"; d="scan'208";a="121420173" Received: from sbaldwin-mobl8.ger.corp.intel.com (HELO loki.ger.corp.intel.com) ([10.252.27.190]) by orsmga004.jf.intel.com with ESMTP; 22 Aug 2017 02:16:23 -0700 From: Liam Girdwood To: Date: Tue, 22 Aug 2017 10:16:05 +0100 Message-Id: <1503393365-24760-1-git-send-email-liam.r.girdwood@linux.intel.com> X-Mailer: git-send-email 1.9.1 Cc: Takashi Iwai , Liam Girdwood Subject: [alsa-devel] [PATCH] alsa-lib: topology: Fix private data for BEs X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Private data was not being added to BEs. Fix this. Signed-off-by: Liam Girdwood --- 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);