Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp100099pxb; Mon, 13 Sep 2021 14:05:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY1/PgmMkRUWh+ItPRT6lm6bT8De4Km1Tbfm42hnq8inxPigAyqvpW2TDtaSeNueIJldho X-Received: by 2002:a5e:da01:: with SMTP id x1mr11139729ioj.43.1631567138436; Mon, 13 Sep 2021 14:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631567138; cv=none; d=google.com; s=arc-20160816; b=aKDIFqImDBATj0POZ21tIzb6cKjC3HcpoTC/fFGcYWmC9cfg+xkmIi8F8CJVmQCPl3 98usQ+6xazIFxNH3EGC9GcBOFDUvF4hX3x77EOQQX+lbDOZOLqkgdpQyIZp+up7rrZYW L9utvIpgrAv0s0l9xeYnNE5CFuqWykK58vDb0o9vS8zx4SA2FkLX6tiZ36Cv0v/1Kvdn Tk3GSC3pUqZX9xA3xK8OtLGPIdyQA9+f8PzKojY/+v5tgjSiiuxOpCrmpJE8ksw1AnN9 2y1HzwuErZak5GCND+QVZB+Ow4zWGEoGmeSIyELi3i5plJw0GDzwDasU0bUUB5vcQEw9 mnEQ== 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=JvalReorOKuo07o218ETSJ1PZN8arFYp9arg++eF/jA=; b=NGl586ch1sDKUzOiEZkvRcXwOAxLAEc131FikZ458pwSAfIgXGiKVGvV98RuGfWlbd zjIHuwL3GZlmjcCkMC3GvYqAs2/PPSjm+OzF48+l3XWlWDwEV+22fkYGleOsIEcQ4KPE yt3QrOvQMpAzUoZJXVGLlu0sjuy42jlJ2V8QZL3pC7Q11NFKQoe2693AEUxqobK9v3pA rGXe/J4zSplfJ1YnGS67fTGfPzqkJSvgTfQObCXDaIEle6wN2CAmsyd4Zw/eCec5uu0j C77kx1iW2ASwtkwBdPsNzk32jvbd5zVPRP4oOu/v41wD5lrhEkM3lmom4/9TA7zCqDO8 A7PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0UuPcPoA; 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 15si8832388ilt.96.2021.09.13.14.05.25; Mon, 13 Sep 2021 14:05:38 -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=0UuPcPoA; 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 S242335AbhIMNsP (ORCPT + 99 others); Mon, 13 Sep 2021 09:48:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:46602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241400AbhIMNoE (ORCPT ); Mon, 13 Sep 2021 09:44:04 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C47C61423; Mon, 13 Sep 2021 13:30:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539844; bh=ddVMMC0wbuf+VeGv0g+vHvvy0VcVaIVhYGPqaJp9S4M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0UuPcPoAY/t5/CAlRMqb9l18XOp1lpkdwNu81GzL83VdzDbmlzLsLB4H6q9/uKTG4 4V/nL0NbLeHMILiv+XA/PdGp7qhSRaYAL6fve3KBgDPhug1RSg0Xe6YrBWT/HIoRMs Grfc2/iuP0lUmzpQwsvqAf6mzrIWoJyJZeLKi1p8= 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.10 184/236] ASoC: Intel: Skylake: Leave data as is when invoking TLV IPCs Date: Mon, 13 Sep 2021 15:14:49 +0200 Message-Id: <20210913131106.634147717@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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 0955cbb4e918..16f9f3bd68be 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