From: Takashi Iwai Subject: Re: [PATCH v4 1/2] ucm: Load device-specific configuration file based on the card long name Date: Mon, 16 Jan 2017 11:41:23 +0100 Message-ID: References: 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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6B107266FCC for ; Mon, 16 Jan 2017 11:41:24 +0100 (CET) In-Reply-To: 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: "Lin, Mengdong" Cc: "liam.r.girdwood@linux.intel.com" , "alsa-devel@alsa-project.org" , "mengdong.lin@linux.intel.com" List-Id: alsa-devel@alsa-project.org On Sun, 15 Jan 2017 11:01:15 +0100, Lin, Mengdong wrote: > > > -----Original Message----- > > From: Takashi Iwai [mailto:tiwai@suse.de] > > Sent: Sunday, January 15, 2017 4:25 PM > > > > On Sat, 14 Jan 2017 09:23:55 +0100, > > mengdong.lin@linux.intel.com wrote: > > > > > > From: Mengdong Lin > > > > > > Intel DSP platform drivers are used by many different devices. For > > > user space to differentiate them, ASoC machine drivers may use the DMI > > > info > > > (vendor-product-version-board) as card long name. Possible card long > > > names > > > are: > > > DellInc.-XPS139343-01-0310JH > > > ASUSTeKCOMPUTERINC.-T100TA-1.0-T100TA > > > Circuitco-MinnowboardMaxD0PLATFORM-D0-MinnowBoardMAX > > > ... > > > > > > And user space can define configuration files like > > > longname\longname.conf for a specific device. > > > > Do you mean a file name containing a backslash? > > I didn't find the relevant code in your patch... > > No, the file name doesn't contain a backslash. It means we're using the card long name as both the directory name that contains the UCM config file and the name of the config file itself. > E.g. for the laptop Dell XPS 13, UCM will try to find a directory "DellInc.-XPS139343-01-0310JH", and then find the file " DellInc.-XPS139343-01-0310JH.conf" under the directory. If it cannot find the this file, it will fall back to open file "broadwell-rt286.conf" under directory "broadwell-rt286". Ah, a backslash as on DOS. Use a slash for Linux instead :) Takashi