From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033050AbeEXLTn (ORCPT ); Thu, 24 May 2018 07:19:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:58892 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967908AbeEXJwq (ORCPT ); Thu, 24 May 2018 05:52:46 -0400 Date: Thu, 24 May 2018 11:52:44 +0200 Message-ID: From: Takashi Iwai To: Guenter Roeck Cc: Mark Brown , Liam Girdwood , alsa-devel@alsa-project.org, Guenter Roeck , "Patel, Chintan M" , Jaroslav Kysela , linux-kernel Subject: Re: [RFC/RFT PATCH] ASoC: topology: Improve backwards compatibility with v4 topology files In-Reply-To: References: <20180522165842.233949-1-groeck@google.com> <20180523135609.GK4828@sirena.org.uk> <20180523155811.GO4828@sirena.org.uk> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 May 2018 18:17:23 +0200, Guenter Roeck wrote: > > On Wed, May 23, 2018 at 8:58 AM Mark Brown wrote: > > > On Wed, May 23, 2018 at 08:54:18AM -0700, Guenter Roeck wrote: > > > On Wed, May 23, 2018 at 6:56 AM Mark Brown wrote: > > > > On Wed, May 23, 2018 at 03:54:54PM +0200, Takashi Iwai wrote: > > > > > > And I'm wondering whether we should move these definitions to uapi > > > > > headers. > > > > > Yes, we should. > > > > Are you sure ? They used to be in > > > sound/soc/intel/skylake/skl-tplg-interface.h. > > > I took my clue from sound/soc/soc-topology.c, where the v4 structures > are > > > also > > > declared locally and not in the uapi files. > > > I'm saying we should move them there. They're clearly part of the > > userspace ABI and therefore belong in uapi, it was a mistake to let them > > be elsewhere. > > They define a firmware file format. Not sure if I would call that userspace > ABI. The point is that the defined data is used from both kernel and user space. Although strictly speaking it might be no "ABI", it'd make sense a lot to put the stuff into uapi directory, so that the kernel can expose it properly and user-space can refer it as the single source. > 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. Yes, it should be done by another patch. thanks, Takashi