From: Takashi Iwai Subject: Re: [PATCH v2] conf: Move UCM profile snippets into components subdirectory Date: Thu, 29 Nov 2018 08:47:31 +0100 Message-ID: References: <20181128095654.22915-1-tiwai@suse.de> <8b588d26-b3ed-d49a-6883-0e9c7fc00b9c@redhat.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 8D0BE26770D for ; Thu, 29 Nov 2018 08:47:32 +0100 (CET) In-Reply-To: <8b588d26-b3ed-d49a-6883-0e9c7fc00b9c@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Hans de Goede Cc: alsa-devel@alsa-project.org, youling 257 , Pierre-Louis Bossart List-Id: alsa-devel@alsa-project.org On Wed, 28 Nov 2018 18:12:25 +0100, Hans de Goede wrote: > > Hi, > > On 28-11-18 10:56, Takashi Iwai wrote: > > We have placed UCM profile snippets to be included by the main config > > files also in the same directory, src/conf/ucm, it confuses alsaucm > > program that scans over all subdirectories. It thinks such a file is > > also the main config file, and spews errors like: > > % alsaucm > > ALSA lib utils.c:67:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm/bytcr/bytcr.conf > > ALSA lib parser.c:1427:(load_master_config) error: could not parse configuration for card bytcr > > alsaucm: unable to obtain card list: No such file or directory > > > > Actually we already defined the subdirectory for such components, and > > they are skipped at parsing the main configs. So we just need to move > > the files there -- this is what's done here. > > > > One more thing done here is to add a new component subdirectory, > > platforms, for definitions bytcr/* that don't match with neither the > > existing ones (codecs nor dsps). > > > > Suggested-by: Hans de Goede > > Acked-by: Jaroslav Kysela > > Signed-off-by: Takashi Iwai > > Thank you, looks good to me. I've also given this a test run on > a bytcr device with a rt5640 codec and everything still works fine: > > Reviewed-by: Hans de Goede > Tested-by: Hans de Goede OK, I pushed the fix now. Also I have another patch to set the ucm subdirectory as the default search path, so that you don't have to set at each config. Will submit soon later. thanks, Takashi