From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre-Louis Bossart Subject: Re: WM5102 - Help to make baytrail machine driver work Date: Tue, 9 May 2017 09:57:14 -0500 Message-ID: <6615d589-9124-5f71-0d6d-e634caf2fdaa@linux.intel.com> References: <20160505091122.GE1646@localhost.localdomain> <20160509142210.GH1646@localhost.localdomain> <20160513114136.GM1646@localhost.localdomain> <20160515101308.GN1646@localhost.localdomain> <20170508082422.GJ1594@localhost.localdomain> <7c35cd21-35a4-726d-71b5-1ef9f096fbee@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by alsa0.perex.cz (Postfix) with ESMTP id 102FD266483 for ; Tue, 9 May 2017 16:57:13 +0200 (CEST) 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: Paulo Sergio Cc: vinod.koul@intel.com, Charles Keepax , broonie@opensource.wolfsonmicro.com, mika.westerberg@linux.intel.com, alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On 5/9/17 9:45 AM, Paulo Sergio wrote: >>>> How are you setting up the I2S? As in which side is master, what >>>> format are you using? Also do you see any over/underflow error, >>>> does the system complain with "Error playing sample". >>> >>> >>> The only part where I2S is explicity used on machine driver is this >>> setting on backend DAI (SSP0-Codec) >>> >>> dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF >>> | SND_SOC_DAIFMT_CBS_CFS, >>> >>> And after setting the routes using routes mentioned on [3], I have no >>> errors, but no sound >>> >>> Note: Based on Lenovo code, I concluded this device uses ssp0, so I'm >>> using a fw file "fw_sst_0f28_ssp0.bin" posted another thread. >>> Could use the hacks used on kernel 4.11, but as I'm still testing with >>> kernel 4.4, using this fw would make things easier >> >> >> nope. I don't know how many issues we've fixed since 4.4 but it's not a >> matter of just swapping out one firmware with another. You'll have better >> luck with plain vanilla 4.11 + regular firmware and restarting modifying one >> of the latest machine drivers. > > Ok, I'll use 4.11 and post the results later > > Should I have any special care about I2S other than setting the format > um backend DAI? > Some module should be loaded? Things to look for - SSP routing: has to be SSP0 on baytrail-CR - number of slots: 2 or 4. if 4 then use DSP mode - DAI format - MCLK If I can get my hands on a WM5102 eval board I might be able to help with a MinnowMax board.