Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp9897pxb; Mon, 13 Sep 2021 11:33:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMEuPOv08g81u2N1vX41zMuMiJrN3Hs+dsba3DBBfVBsygHbav7bylCmZvBbPRmGYjOjfw X-Received: by 2002:a05:6e02:1c08:: with SMTP id l8mr9079487ilh.134.1631558003230; Mon, 13 Sep 2021 11:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631558003; cv=none; d=google.com; s=arc-20160816; b=iAXUd5L+afz03d4wFoRyhuzMFmQk29FycUMCos9tsiqBHVrKloYntNn2e7l6nvvvG0 zxaXV+Ja97rcG2TiGqg5l4vUYTICDR1qaZsnZQXyl9Q/xSb64B8afl+NdWCFqLm0yM0u sJyaCF6lF4DgkbpMECkc1t9flCu2qW+dJkXgwaHQkGez3K8lY6ZA0CTWi7Mk2BjsutbR 9wnG7Dn6/W49iurGoqH4xLetFsBE3VHkJGEJfevUCtO6O2YCtO7vWlnS8NQzNGwo4LhD l0m9VmX/llMMjK0AhRfv6Xt3N5U/70Vme/4YYyFey6Zbh6p1bNVRtC+cTK5gOMWez19H LsXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jj5C3BDisGg+UYNBrBHjekG+566cq3gB77nhWQycq7U=; b=W/GG+zhvBH5L79ta30cBcOT8B7Z+h52juk5R5WQvh/Pvb9WdyBcBNcUIb03adozUx2 iZF9hEvw+G61lrOPmpZrxdigRpGGDJc591J9V9ITCsfSI+IMcKzkHveyV/rji17CBVin GMc+IZpU+PUryd3djn39r/NtoQwX4ETQSV7h1PXBJnV8gH4T+QWQJSscGf7YjElJ4P2L iDuFAxgNhvqKfHRsONgIFRWR+bDWUK+gc1tZTMe5wvvokS3sOhPPGbRcfAkuyGzCAb1d BiOBDqsRBQXETJSxxB40X9Le1SwnApNcTKZeARDizuHG8wf3AsHiaquCMF3ArvWH143M 6kgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=snClxe8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b135si7188570iof.27.2021.09.13.11.33.09; Mon, 13 Sep 2021 11:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=snClxe8A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240294AbhIMN0o (ORCPT + 99 others); Mon, 13 Sep 2021 09:26:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:35288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241053AbhIMNWi (ORCPT ); Mon, 13 Sep 2021 09:22:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CA1D8610A2; Mon, 13 Sep 2021 13:21:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539267; bh=lZD0BniTpdl9jlOZ+3+3blHwVlCTYyDX9P6LDRMFOEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=snClxe8AvTSYCVdn03xorEApA9zdQi63tAsthBxq3DqUvpfkGJn7Or5iyMuIYbkHM E8BPBetjD+iSts76XAmDLr45JqYMomcRn9/U4Fxa1oqPztHz1sFptbOfIF9UHh3SFl v3aTOBT0jJDtpfYSgKDsiwe1ByAdTbmxcBTaeY0o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cezary Rojewski , Lukasz Majczak , Mark Brown , Sasha Levin Subject: [PATCH 5.4 105/144] ASoC: Intel: Skylake: Leave data as is when invoking TLV IPCs Date: Mon, 13 Sep 2021 15:14:46 +0200 Message-Id: <20210913131051.453818594@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131047.974309396@linuxfoundation.org> References: <20210913131047.974309396@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Cezary Rojewski [ Upstream commit 126b3422adc80f29d2129db7f61e0113a8a526c6 ] Advancing pointer initially fixed issue for some users but caused regression for others. Leave data as it to make it easier for end users to adjust their topology files if needed. Fixes: a8cd7066f042 ("ASoC: Intel: Skylake: Strip T and L from TLV IPCs") Signed-off-by: Cezary Rojewski Tested-by: Lukasz Majczak Link: https://lore.kernel.org/r/20210818075742.1515155-3-cezary.rojewski@intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/skylake/skl-topology.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c index 1940b17f27ef..104c73eb9769 100644 --- a/sound/soc/intel/skylake/skl-topology.c +++ b/sound/soc/intel/skylake/skl-topology.c @@ -1463,12 +1463,6 @@ static int skl_tplg_tlv_control_set(struct snd_kcontrol *kcontrol, struct skl_dev *skl = get_skl_ctx(w->dapm->dev); if (ac->params) { - /* - * Widget data is expected to be stripped of T and L - */ - size -= 2 * sizeof(unsigned int); - data += 2; - if (size > ac->max) return -EINVAL; ac->size = size; -- 2.30.2