Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1977278imm; Thu, 24 May 2018 03:55:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrEm51JOGdeDHitICV2zHflWK949th4xrXB+1IJCCs0vCyc9EenCxG/CDVuh1zSrd4XbEhD X-Received: by 2002:a65:5288:: with SMTP id y8-v6mr5511356pgp.69.1527159342671; Thu, 24 May 2018 03:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159342; cv=none; d=google.com; s=arc-20160816; b=NTH8lF49wOv26klk3q7TdwGVkCvD1T1s1vNIaRw/e1TXhXrAzJ8OuA0AcZ2vh+KwId nnONRHf60Y3/YVkTrEHoU5qvdiFKo5YeUBlVO0uAnQ4J0cYa3rJ60n1wmdjM32mQC6rb Qlq+FwSmryVPW7w+D+lkOG+yykzkwv2vfqtr3mLHRCAVL4Dw6csN7YAL9CrXX/8ssVOS XOw8Uynz4a2szkKqDhelGQEiTG2Ee7Cu9BAAKvH1PeMV0XWitPpkkArIu5MXqDusQAqs EWbZxa/QfV2BZsiObw+kqaYvTeTUDSH320HyQSw4GJfBWY/+YfhQt+H/3lYfCfHhldqf CFUQ== 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=HVSuWlCAqaoa/cSX/tQFa4tkQB5IWNSWIR1XRU+9vx4=; b=KFV0XnGCUjVnkf78GRgnpbdwttZM35Da24emNRrQ0YsuKhJIsBuaFWTKtYiruPzgS9 sy5MkUO7KPP2LjFHxDCkMGVwqQ2W+W0A4uOCZowyo0Rp3H28Tk2Pqqge6KsTtBayZdqg 0iYOy0pVrgXfTspWCpGApKEJzWed2h+OCSlPPLN/dp8edqvilOVtkVuvpROZwSdDNb7N Bf+xofel9Z4IbtSD/XP1/7fvXpKG1q2GKmaNx6jfIPYMpUAcYkZTgW5YKSI2PvGXfi44 UzZPicR6eUYQh8mkS+y935GiHn3CSfP+QoOtaWw7BqrWndChEb92mhPek6xIUX7d6dER iHRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jzyVRC+e; 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 a33-v6si20986793pld.167.2018.05.24.03.55.27; Thu, 24 May 2018 03:55:42 -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=jzyVRC+e; 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 S968316AbeEXKyn (ORCPT + 99 others); Thu, 24 May 2018 06:54:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:36602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968445AbeEXJ4q (ORCPT ); Thu, 24 May 2018 05:56:46 -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 9A3E020893; Thu, 24 May 2018 09:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155806; bh=yR0ZYWdlgfNqK2Z9szf7F5Wwlsa9+ANMVP6Ai/sZtIM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jzyVRC+eTWuTNKg3pzTg7b55jyVbac0ngJmyKtyhdD/wuZAOhBkP0vh9Iuco1Kdek BcYirJGDyLEfCYM66GBzVZKV4VxyCv8i2aNVGxqW6fzo1KkW4ifpCJyUCpJBDSlt2b 9hrlpwE5LJBd/7bomZAc7xkbi43izqdD29MLSRwM= 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.14 124/165] ASoC: topology: create TLV data for dapm widgets Date: Thu, 24 May 2018 11:38:50 +0200 Message-Id: <20180524093627.021122807@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@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.14-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;