From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans-Christian Egtvedt Subject: Re: aplay and arecord can't set sw params Date: Thu, 11 May 2006 08:38:31 +0200 Message-ID: <4462DBE7.7010900@atmel.com> References: <4461F630.2060707@atmel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Takashi Iwai Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Takashi Iwai wrote: > At Wed, 10 May 2006 16:18:24 +0200, > Hans-Christian Egtvedt wrote: >> Does this output give any signs of where the error is? >> >> ~ # aplay /stk1000/gorillaz.wav >> Playing WAVE '/stk1000/gorillaz.wav' : Signed 16 bit Little Endian, Rate >> 48000 Hz, Stereo >> aplay: set_params:1012: unable to install sw params: >> start_mode: DATA >> xrun_mode: STOP >> tstamp_mode: NONE >> period_step: 1 >> sleep_min: 0 >> avail_min: 0 >> xfer_align: 0 > > avail_min and xfer_align should be the period size. So, something > wrong in alsa-lib or in aplay code. Keep in mind my recent fix for the enum vs. int problem. I'm still working on the AVR32 plattform. The soundcard is the embedded AC97 controller inside the device (AP7000) and the external codec is a National Semiconductor LM4549A. I'll try digging into the code (aplay/alsalib) and see why the xfer_align and avail_min is not set. > Try to dump sw_params before snd_pcm_sw_params() by the patch below. ~ # aplay /stk1000/gorillaz.wav Playing WAVE '/stk1000/gorillaz.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo sw_params to be set: start_mode: DATA xrun_mode: STOP tstamp_mode: NONE period_step: 1 sleep_min: 0 avail_min: 0 xfer_align: 0 silence_threshold: 0 silence_size: 0 boundary: 1234173952 aplay: set_params:1015: unable to install sw params: start_mode: DATA xrun_mode: STOP tstamp_mode: NONE period_step: 1 sleep_min: 0 avail_min: 0 xfer_align: 0 silence_threshold: 0 silence_size: 0 boundary: 1234173952 ~ # -- With kind regards, Med vennlig hilsen, Hans-Christian Egtvedt Applications Engineer - AVR Applications Lab Atmel Norway ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642