From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: writing an alsa driver Date: Thu, 25 Jun 2015 08:54:07 +0530 Message-ID: <20150625032407.GQ19530@localhost> References: <1432892521.2732.14.camel@loki> <20150529131753.GA339@asus> <1433156768.2642.21.camel@loki> <20150608084951.GA7512@dellaz> <20150615164623.GA693@asus> <1434387868.2434.50.camel@loki> <20150623090932.GA6856@dellaz> <20150624102157.GL19530@localhost> <20150624182120.GA481@asus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by alsa0.perex.cz (Postfix) with ESMTP id 6A756260656 for ; Thu, 25 Jun 2015 05:22:39 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20150624182120.GA481@asus> 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: Michele Curti Cc: Luka Karinja , Takashi Iwai , alsa-devel@alsa-project.org, Liam Girdwood , "Nikula, Jarkko" , Bard Liao List-Id: alsa-devel@alsa-project.org On Wed, Jun 24, 2015 at 08:21:20PM +0200, Michele Curti wrote: > > > There are a lot of errors about missing backend dai: > > > [ 7.195570] Baytrail Audio Port: ASoC: no backend DAIs enabled for Baytrail Audio Port > > So in this driver we use DPCM, which means that you have to route Front End > > to a BackEnd and then only you can open a device. Without linking to BE it > > will fail > > > > Yes, when Liam wrote about that I started to try to understand how to find the > right audio route/path, but I think it will take a while eheh :p > > > Thanks! So for now I tried to blindy launch these commands (apart for the > "Speaker L" and "Speaker R" controls, not present in the rt5645 codec) and > I got about a minute freeze at every boot and some new errors: > > [ 2.700127] sst-mfld-platform sst-mfld-platform: Slot control: codec_out tx interleaver slot 0 doesn't have DAPM widget!!! > [ 2.700177] sst-mfld-platform sst-mfld-platform: Slot control: codec_out tx interleaver slot 1 doesn't have DAPM widget!!! > [ 2.700226] sst-mfld-platform sst-mfld-platform: Slot control: codec_out tx interleaver slot 2 doesn't have DAPM widget!!! > [ 2.700276] sst-mfld-platform sst-mfld-platform: Slot control: codec_out tx interleaver slot 3 doesn't have DAPM widget!!! > [ 2.700321] sst-mfld-platform sst-mfld-platform: Slot control: codec_in rx deinterleaver codec_in0_0 doesn't have DAPM widget!!! > [ 2.700368] sst-mfld-platform sst-mfld-platform: Slot control: codec_in rx deinterleaver codec_in0_1 doesn't have DAPM widget!!! > [ 2.700417] sst-mfld-platform sst-mfld-platform: Slot control: codec_in rx deinterleaver codec_in1_0 doesn't have DAPM widget!!! > [ 2.700468] sst-mfld-platform sst-mfld-platform: Slot control: codec_in rx deinterleaver codec_in1_1 doesn't have DAPM widget!!! this is unexpected, I will check on this > ... > [ 7.970937] intel_sst_acpi 80860F28:00: Wait timed-out condition:0x0, msg_id:0x1 fw_state 0x3 > [ 7.970964] intel_sst_acpi 80860F28:00: fw returned err -16 Yes this is a problem, which FW are you using I am expecting you should be on http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/commit/intel?id=d562a3b636325e969d4fdf60ec5e418a510f3510 > ... > [ 53.538117] Baytrail Audio Port: sst: error code = -22 > [ 53.541909] bytx205_rt5645 bytx205_rt5645: BUG: pcmC0D0p:0, pos = -22, buffer size = 203830, period size = 1199 This is impact of FW timeout -- ~Vinod