Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3237502imm; Fri, 25 May 2018 02:05:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrQsQCAcF49R66yR53w3CJoiLjxeK1uQPjM6FNGxG/GA70GdZMId+qW30Y3yxiJ4hDDK+o X-Received: by 2002:a63:a702:: with SMTP id d2-v6mr1341605pgf.422.1527239137640; Fri, 25 May 2018 02:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527239137; cv=none; d=google.com; s=arc-20160816; b=TXh68EJP2hqtchxCjjaVY0xzhq5MQGsdN4iS0ZpFPJ49Vizjyr1SQOo6uAZasvk9in sMgUPuXOqIF3MWdMQvbfriqurJ54StSlW2c+RBWavc0HIdpeur3vEGdxvAixI7z+g0Ca D8sQ/Hglg5HKKM1/FTW64H0x91Q9xZztzJtgO8x/EwXJ1q+o/FzkA0MnVREJKkgwhRnV Ye3W6EFotfYigM8bIemFOyefPyO/FBKZmLxNYDB2Y/d5uVIKGaOtDTg7lQWKyXAjHCoy 5SL1inOxeN6XHlWWehr9cvaOqfU19OCcbWsGBuytDJlidzKrX1DoKhxVVeUnyRdlduwR +3tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=gg/hvaz+on7f34Gj8NGMRwBBMPJNIqNmGM4dXp6TObc=; b=qx8QWglkujml4mxXYTMEMY/Paj6Eak2XiuiylnuJhfLpyqxZvH3M+grQJ0uWzuoesy PZ+gacMdPsiOC8OZpNPdpwAF4x70/Wj4JTP3CXEYoqpJT5a7n6/xSZn0/3rE19/CrMPl PDOZi5itlVGjIW42PJac0Fwk0ANa1rqx8d/4WrYnmU0STg9eJ8HzsN1eDCVUYT59sTi8 a+Lvi2cgnzX/krE202wxXj6K9tlvPxOKUSA7YvmTqVQ9gDa7H43SpT8qaAsydknUkMhz 9kcPSm5vShfCatOTHCeDE8WZDMm8lUK2Ou+Fjy74E7JstX8LrlHCjhcXkIuLDRVxQLsa qQAw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4-v6si12749447plp.357.2018.05.25.02.05.10; Fri, 25 May 2018 02:05:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965028AbeEYJFB convert rfc822-to-8bit (ORCPT + 99 others); Fri, 25 May 2018 05:05:01 -0400 Received: from mga09.intel.com ([134.134.136.24]:58464 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964804AbeEYJE7 (ORCPT ); Fri, 25 May 2018 05:04:59 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 May 2018 02:04:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,439,1520924400"; d="scan'208";a="52099016" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 25 May 2018 02:04:58 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 25 May 2018 02:04:58 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 25 May 2018 02:04:58 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.210]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.96]) with mapi id 14.03.0319.002; Fri, 25 May 2018 17:04:55 +0800 From: "Lin, Mengdong" To: Mark Brown , Guenter Roeck CC: "alsa-devel@alsa-project.org" , Takashi Iwai , linux-kernel , Liam Girdwood , "Patel, Chintan M" , Guenter Roeck , "Nc, Shreyas" Subject: RE: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files Thread-Topic: [alsa-devel] [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files Thread-Index: AQHT8p3eVfqEi5/HJ0ugxMT/iVtl1aQ88UUAgAABFYCAAAVegIABcSwAgAAKKwCAAASdgIABrrwQ Date: Fri, 25 May 2018 09:04:55 +0000 Message-ID: References: <20180522165842.233949-1-groeck@google.com> <20180523135609.GK4828@sirena.org.uk> <20180523155811.GO4828@sirena.org.uk> <20180524141842.GW4828@sirena.org.uk> <20180524151137.GY4828@sirena.org.uk> In-Reply-To: <20180524151137.GY4828@sirena.org.uk> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjJkNDJjNTMtOWI4NC00NmMzLTgzNjgtNTEwZjQ2ZTZmNTlkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ0clNcL241NkRVRzh3Q1VKaFwvVTBXcnhXbEJGZUtveHpnelhYaHdqemlrdzRzdGZzUlFQS0VvV1F0MWpuTFVFeXUifQ== dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: alsa-devel-bounces@alsa-project.org [mailto:alsa-devel-bounces@alsa- > project.org] On Behalf Of Mark Brown > Sent: Thursday, May 24, 2018 11:12 PM > On Thu, May 24, 2018 at 07:55:06AM -0700, Guenter Roeck wrote: > > On Thu, May 24, 2018 at 7:18 AM Mark Brown wrote: > > Your mail client formatting seems to be broken, the word wrapping is really > funky (it looks like it's breaking longer than 80 column lines in the middle of > paragraphs rather than flowing paragraphs within 80 columns). > > > > > I don't mind adding the structures to > > > > sound/soc/intel/skylake/skl-tplg-interface.h, > > > > but it seems a bit out of scope to tie this with moving the file > > > > to include/uapi/sound. > > > > I think that should be a separate discussion. > > > > Is there some reason not to just do it while we're looking at this? > > > I don't see why we wouldn't want to do this. > > > I don't mind doing this. However, keeping the change local and in a > > single patch would make it easier to backport, and I think that the > > ability to backport would be essential to get more than one-person > > test coverage. I also would have liked feedback from someone at Intel, > > at least for the Skylake specific structures. > > Oh, of course - I'm just saying we should do this, not that everything needs to be > in one patch. Obviously the code motion would be a separate patch. > > > Anyway, what file do you have in mind for the structure definitions, > > both for the ones in soc-tolopogy.c and the ones needed in > > skl-topology.c ? Everything into asoc.h, or something else ? > > All of those that can appear in a firmware file, I don't super care where they end > up but possibly a separate header file or files to the kernel specific ones as they > might get used with Windows. Please put the Skylake specific structures in a separate header file, not in asoc.h. The file asoc.h is for generic topology structures which are platform independent. The topology code in alsa-lib never parses the platform specific structures. The Skylake specific structures are needed by vendor applications like Intel topology tool (ITT) to define topology for different platforms. The applications can include both asoc.h, skl-tplg-interface.h and other device specific headers. Thanks Mengdong