Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1940383imm; Thu, 24 May 2018 03:17:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRMyucBpTX0wizGocNr7hZ0H9Y+RlSmULip1nhx2LGemjBJS4PnXXZ86h/0qJeAaVVceft X-Received: by 2002:a17:902:4081:: with SMTP id c1-v6mr6716922pld.60.1527157053665; Thu, 24 May 2018 03:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527157053; cv=none; d=google.com; s=arc-20160816; b=MV3gpCB1ozL7QarX6UTnisu8tCqa3YAIOqgQY0a1rtyoxhQL9FYA+HJZMBcsoy1U1U XcY2NmChMSg4gd0rRAnafp6mup1ZX+2qiWiYMQhHoHkbd95yWoALjWtRupR9T31uT4HP 4YUou1O0mpRuSAYbvi4gl1C5XOh0F6/gw13pB9hGkdCsPOVCjnIsx0T1W7TkcjS6bDk6 jaxJ8h+CdR2X4+ktNf0Xi2Jw8fkT1O36vOeapHtlD7g9C00PDY/1aId5ZcxONFuomXWg +ccTyQsbI/nNHli5qMeXohlnIHr6lHxPC52gLg0qMqRdh3jVwMH3UkgFB4si+Wtvae0t O6lw== 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=gPAqGNlijVQ1BHtRHPUL5pRi7YeKCMppSTSIq/coKAg=; b=L12UwE0vbVr4YMs1G2ci2uE+7hWJ2p+vJvHUYuXLGGpAvoam1SliH1uoiYmrq8YzQj xqdlGEzogSKbOc6WExExzxTaKwp+R8zWux/O1YMMSRwc/Q45Yh2cofTKBvHlvXXzGsk8 xku3jFdQhmI5C/ib+gpONgZ2uPbeneyeG/cNEm8DxB9KnYESsD6qwBV65EcOfbbCrEoD kR/x33dX2OTPIMAxL/WSXmclcNAkFZw/afcQjdDJJ+Gx7DReT/WiUiUkTTky3ZsAGRSM NeOcnU99/psiu0fKYpODpY0Zh5SjYP8hC8XjFhMxDnXl6y/laKW/m2rlNGMgyAKrzkAT w9LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BMiD0zC7; 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 j10-v6si21145839pfn.87.2018.05.24.03.17.19; Thu, 24 May 2018 03:17:33 -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=BMiD0zC7; 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 S1031858AbeEXKQ0 (ORCPT + 99 others); Thu, 24 May 2018 06:16:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:53646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031393AbeEXKEN (ORCPT ); Thu, 24 May 2018 06:04:13 -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 6D43720896; Thu, 24 May 2018 10:04:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527156252; bh=YZkCKb4KJTLUXZzzb6F5WG0p3bEJwVdjoho5iHn+1UQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BMiD0zC72XW3EinzNF3ZhbQn9yZTPvQyb08wSXXQNU9jfnb6eMw9iLPif3wZKDljw AcNYq82End/AoDWGZ7DWzEqBip6qa6GwHVwseIvk5+pUagyeNCQc7SJin6/L0k5B1D wWhIiFesFTLrmbOuvOGNC5dXmB775ygmyT+L58U8= 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.16 119/161] ASoC: topology: create TLV data for dapm widgets Date: Thu, 24 May 2018 11:39:04 +0200 Message-Id: <20180524093032.551901841@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@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.16-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 @@ -1276,6 +1276,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;