From mboxrd@z Thu Jan 1 00:00:00 1970 From: noman pouigt Subject: Re: recording problem in beagleboard-mcbsp Date: Fri, 27 Mar 2015 14:20:29 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by alsa0.perex.cz (Postfix) with ESMTP id 3D7DA2612D3 for ; Fri, 27 Mar 2015 22:20:32 +0100 (CET) Received: by oiag65 with SMTP id g65so86721589oia.2 for ; Fri, 27 Mar 2015 14:20:30 -0700 (PDT) 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: "peter.ujfalusi@ti.com" , "broonie@kernel.org" Cc: "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org On Fri, Mar 27, 2015 at 1:24 PM, noman pouigt wrote: > Problem: not able to record with any of the devices > in beagleboard-xm. > > Analysis: userspace is stuck in snd_pcm_readi function > and kernel space i don't see snd_pcm_update_hw_ptr > function being called. > > Checked the I2S clocks and they are perfect and recording > data line is moving based on the data. I am able to do playback > though. > > I am using below command to do recording. Do i need to add > additional switches? > > > Linux kernel: 3.19 > > root@arm:~# arecord -t wav -c 2 -r 44100 -f S32_LE -v test.wav > Recording WAVE 'test.wav' : Signed 32 bit Little Endian, Rate 44100 Hz, Stereo > Plug PCM: Linear conversion PCM (S16_LE) > Its setup is: > stream : CAPTURE > access : RW_INTERLEAVED > format : S32_LE > subformat : STD > channels : 2 > rate : 44100 > exact rate : 44100 (44100/1) > msbits : 32 > buffer_size : 27560 > period_size : 5512 > period_time : 124988 > tstamp_mode : NONE > period_step : 1 > avail_min : 5512 > period_event : 0 > start_threshold : 1 > stop_threshold : 27560 > silence_threshold: 0 > silence_size : 0 > boundary : 1806172160 > Slave: Hardware PCM card 0 'omap3beagle' device 0 subdevice 0 > Its setup is: > stream : CAPTURE > access : MMAP_INTERLEAVED > format : S16_LE > subformat : STD > channels : 2 > rate : 44100 > exact rate : 44100 (44100/1) > msbits : 16 > buffer_size : 27560 > period_size : 5512 > period_time : 124988 > tstamp_mode : NONE > period_step : 1 > avail_min : 5512 > period_event : 0 > start_threshold : 1 > stop_threshold : 27560 > silence_threshold: 0 > silence_size : 0 > boundary : 1806172160 > appl_ptr : 0 > hw_ptr : 0 > > [ 74.696319] omap-mcbsp 48074000.mcbsp: **** McBSP255 regs **** > [ 74.696380] omap-mcbsp 48074000.mcbsp: DRR2: 0xedd0abce > [ 74.696411] omap-mcbsp 48074000.mcbsp: DRR1: 0x0000 > [ 74.696441] omap-mcbsp 48074000.mcbsp: DXR2: 0x0000 > [ 74.696472] omap-mcbsp 48074000.mcbsp: DXR1: 0x0000 > [ 74.696502] omap-mcbsp 48074000.mcbsp: SPCR2: 0x0230 > [ 74.696533] omap-mcbsp 48074000.mcbsp: SPCR1: 0x0031 > [ 74.696563] omap-mcbsp 48074000.mcbsp: RCR2: 0x8041 > [ 74.696594] omap-mcbsp 48074000.mcbsp: RCR1: 0x0040 > [ 74.696594] omap-mcbsp 48074000.mcbsp: XCR2: 0x8041 > [ 74.696624] omap-mcbsp 48074000.mcbsp: XCR1: 0x0040 > [ 74.696655] omap-mcbsp 48074000.mcbsp: SRGR2: 0x001f > [ 74.696685] omap-mcbsp 48074000.mcbsp: SRGR1: 0x0f00 > [ 74.696716] omap-mcbsp 48074000.mcbsp: PCR0: 0x000f > > > setup: > beagleoboard-xm > ubuntu distribution > arecord used > jaroslav recording application also tried using max98090 codec and not using twl.