Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2007509imm; Sun, 27 May 2018 23:04:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqkUJKxZDcbXiQpBuSlknBcafhWVRt/xe9Af7pVvDtsNSb2dGcONfRBAN2dA5YUrhe0lbbN X-Received: by 2002:a65:65d2:: with SMTP id y18-v6mr9267510pgv.186.1527487462254; Sun, 27 May 2018 23:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527487462; cv=none; d=google.com; s=arc-20160816; b=M4TDePzLyVn8dRH/k/aneX/ZODuNWdgdOP2zVxqO5gqXxXVvwjzUuQ00eYKKSo1s42 JfuaOXxnHSi/On7YZ3CceMmEBvq6gtgjN5lQDmWOTZu2F6m5o8FsFynEMCd7Kht6ESbJ 0sqFbhqLraeWnBcYMFqidIDnN1AskmgrQ/awEiI+Biz9ErhyyM2NeCkPCTZCC4lIuEs0 14S3sbvkG1XEIGAxqyIleiGGlgYJDgv3XdJigIuGqVPw//F9rRLlD8V+DGcG7sfFzTHv GsDg/X54JSSuN6uf33lXZsxXTvRRZTTqUN1J5+/D5g5PtGcoFhDj6GP4XLITwPoY0q6s cV9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=FoNmyIb4WCdapLKa3uixRXP3bSUHeKneIgGL15srylU=; b=HcSt3QwuawAG8cdHYy9DXeSekyUQDBXEq6vPQqfdDQgJj6Nq20K/oDSgk5nMkKqtI/ FbNV+dPwWh2b66XudS7UYYubl5HQ7jftXpXgy3e2hu4HVyLWyAizCGh7f+fqPBoX2Xmg cGGD9EvfTMIkNPauwAZIUY7vqm5CFQ3BjUS6PJnMG4s971UknN+zpMTrduMEZ+u7Q4bQ ekdKHSUJbjAaWk72Ix38V2QjZxHo9VTmgf6DL1D4ISJYffvhc28z1tVqD1LZWngO6X62 Ak+14cJr10odsFwiWYZnolEhm3+tCKBjxxfeLFuj8GzwQZEWosnl02xeeljT2aUVoSwk e3nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=litrGeXZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9-v6si6158043pli.449.2018.05.27.23.04.07; Sun, 27 May 2018 23:04:22 -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=litrGeXZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753256AbeE1GD6 (ORCPT + 99 others); Mon, 28 May 2018 02:03:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:54580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbeE1GD5 (ORCPT ); Mon, 28 May 2018 02:03:57 -0400 Received: from localhost (unknown [122.167.97.238]) (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 E73CF2087E; Mon, 28 May 2018 06:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527487436; bh=mdChd8CwSCHgCzDSbuf4GYZSN0v0XSpaBeB42AMgzrc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=litrGeXZceraypsKvSg/x4Rs9DW5TdtSbkH77sX9EeeZeeUu8ggFY1PIvhsMV7cTA SW3osc0VhWt7igsYjzQ27gZdyOww1O0e5OioYQ+53md+5R7gJZq+u20+oQphPkaLEU lkTxg+b3MpdkqZjZlDiiWu91oU1yWe0cLJ1xVhXM= Date: Mon, 28 May 2018 11:33:47 +0530 From: Vinod To: Shreyas NC Cc: Guenter Roeck , Takashi Iwai , Mark Brown , Liam Girdwood , alsa-devel@alsa-project.org, Pierre-Louis Bossart , linux-kernel@vger.kernel.org, Chintan Patel , Guenter Roeck Subject: Re: [alsa-devel] [PATCH v2 1/3] ASoC: topology: Improve backwards compatibility with v4 topology files Message-ID: <20180528060347.GA5666@vkoul-mobl> References: <1527191363-21021-1-git-send-email-linux@roeck-us.net> <20180525133323.GI3116@snc-desk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180525133323.GI3116@snc-desk> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-05-18, 19:03, Shreyas NC wrote: > Adding Vinod to help review as well.. Thanks Shreyas, > > Commit dc31e741db49 ("ASoC: topology: ABI - Add the types for BE > > DAI") introduced sound topology files version 5. Initially, this > > change made the topology code incompatible with v4 topology files. > > Backwards compatibility with v4 configuration files was > > subsequently added with commit 288b8da7e992 ("ASoC: topology: > > Support topology file of ABI v4"). > > > > Unfortunately, backwards compatibility was never fully implemented. To give the history, we implement the binary method for data. The structures given here were indeed ABI but we didn't move them to uapi/ as it was still in development and with help from Takashi we finally zoomed on Tuple method for describing the data and hence that was implemented and updated and alsa-lib files also updated. I am not sure we were able to ship any alsa release with this method due to complexity of running intel tool to generate binary data and patch the topology files. > > First, the manifest size in (Skylake) v4 configuration files is set > > to 0, which causes manifest_new_ver() to bail out with error messages > > similar to the following. So is this issue with Chrome kernel or upstream? We did ask Chrome to cherry-pick patches for tuple support for SKL but I guess it was late for release cycle for them and for SKL I dont think Chrome people took it. Yeah perils of upstream and production racing... > > > > snd_soc_skl 0000:00:1f.3: ASoC: invalid manifest size > > snd_soc_skl 0000:00:1f.3: tplg component load failed-22 > > snd_soc_skl 0000:00:1f.3: Failed to init topology! > > snd_soc_skl 0000:00:1f.3: ASoC: failed to probe component -22 > > skl_n88l25_m98357a skl_n88l25_m98357a: ASoC: failed to instantiate card -22 > > skl_n88l25_m98357a: probe of skl_n88l25_m98357a failed with error -22 > > > > After this problem is fixed, the following error message is seen instead. > > > > snd_soc_skl 0000:00:1f.3: ASoC: old version of manifest > > snd_soc_skl 0000:00:1f.3: Invalid descriptor token 1093938482 > > snd_soc_skl 0000:00:1f.3: ASoC: failed to load widget media0_in cpr 0 > > snd_soc_skl 0000:00:1f.3: tPlg component load failed-22 > > > > This message is seen because backwards compatibility for loading widgets > > was never implemented. > > > > The lack of audio support when running the upstream kernel on recent > > Chromebooks has been reported in various forums, and can be traced back > > to this problem. Attempts to fix the problem, usually by providing v5 > > configuration files, were only partially successful. > > > > Let's implement backward compatibility properly to solve the problem > > for good. Thanks for doing this, great work indeed. > > diff --git a/sound/soc/intel/skylake/skl-tplg-interface.h b/sound/soc/intel/skylake/skl-tplg-interface.h > > index f8d1749a2e0c..b0e3d376594c 100644 > > --- a/sound/soc/intel/skylake/skl-tplg-interface.h > > +++ b/sound/soc/intel/skylake/skl-tplg-interface.h Don't we want to move these to upai/ as that is right place and use that in alsa-lib. -- ~Vinod