Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2010138imm; Thu, 24 May 2018 04:28:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoE++vB4KtP0HQqhA2hlG8YrXmyLjzDxTGWWo88PIKQVQnDqKfE9QVLNRy7X21VGHI7Yc8+ X-Received: by 2002:a17:902:8c95:: with SMTP id t21-v6mr6900515plo.306.1527161309278; Thu, 24 May 2018 04:28:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527161309; cv=none; d=google.com; s=arc-20160816; b=gCmXtrpHqZF+RNBCHP7flthk49CV/55fcxsSPjyqn9zXXldsAupepfp+nmhPxzvKR7 iCwmAz4Gy5CqQqy2vSdMliOrDp74gfz1GCrwm2U/LtqNa6PkNFnK5bxRUxD/SMm6zJTM 8iSaTpFgyDA2sSxRz5YDnaKlaft6ANESlPrOwqIxkCyAfipD8F3eGd8Vza123Fwxb4Yl jTxlsi/hCydwYKiV+er4k/2DuvqdbT4Yjl6J79pdhEmI8N5SLSm8UMFblXatXjd5D+E9 pR1xP/DMQ/tyJtDmVi0p8+7LAaR+oYcFNTAcRR3nBORBuWywThuaYFupObGg+/BOYMb1 D+9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=3xD3tXybyLHRs7LBjaXL52lTltq2E69agUbv1bgU9wI=; b=S9ygM/4jKfX7Ygp7ckIB7GszVM2MMEm9oNUPYXk6upvxlul5lHdWhff9IETSkuYwsD BAXcm7jc5WaLf7djycrKcRmgEefOSIpUFVkiaquIBalEkfEC42pgCNMtaQcBzz1hysEf jtQuT2N2AWlFxwH38RTJYkF6qewhxlUI1KnFuIgqOH6OxvIuZbx4bxOJngblO8NgQiwJ sGpgKte/wjvIGxApFTHIFZb76cQuZHdgPenZ0hM4GylwE85Asezi4Fz0U1aDdNHNMvR4 9byxUe1nUSEu/FueYWhcM24wzv1gChDB9XiHVjmgzslZw2RB2t060blK03h4/kLxGbOs 41uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xoOdzruT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p17-v6si9695681pge.110.2018.05.24.04.28.14; Thu, 24 May 2018 04:28:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xoOdzruT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968845AbeEXL1P (ORCPT + 99 others); Thu, 24 May 2018 07:27:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:46890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967702AbeEXJv1 (ORCPT ); Thu, 24 May 2018 05:51:27 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 55EAA208C4; Thu, 24 May 2018 09:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155486; bh=6HtyoXepWt8X7bGbHAdMIIdqSLkn52BLHCfHtgqTBus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xoOdzruTc/4xZua6pxdsswhofsG3R2/rOByUXZmPzu99DSe4AOKD1cBtycwjI0PhF S3rpwxXcTn8Sd3JksPGPVKVRzqie05YLMlerAMAiBeBuAPuxZzB+RqRenBekddrMoU +712rztdW3zR/1KMG8ebM0hIEMzIsuvUPO7Lqrt8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ranjani Sridharan , Mark Brown , Sasha Levin Subject: [PATCH 4.9 68/96] ASoC: topology: create TLV data for dapm widgets Date: Thu, 24 May 2018 11:38:51 +0200 Message-Id: <20180524093609.315936292@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093605.602125311@linuxfoundation.org> References: <20180524093605.602125311@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ranjani Sridharan [ Upstream commit bde8b3887add8368ecf0ca71117baf2fd56a6fc9 ] This patch adds the change required to create the TLV data for dapm widget kcontrols from topology. This also fixes the following TLV read error shown in amixer while showing the card control contents. "amixer: Control hw:1 element TLV read error: No such device or address" Signed-off-by: Ranjani Sridharan Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/soc/soc-topology.c | 3 +++ 1 file changed, 3 insertions(+) --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -1180,6 +1180,9 @@ static struct snd_kcontrol_new *soc_tplg kfree(sm); continue; } + + /* create any TLV data */ + soc_tplg_create_tlv(tplg, &kc[i], &mc->hdr); } return kc;