From: Takashi Iwai Subject: Re: aplay and arecord can't set sw params Date: Wed, 10 May 2006 17:24:33 +0200 Message-ID: References: <4461F630.2060707@atmel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_May_10_17:24:33_2006-1" Return-path: In-Reply-To: <4461F630.2060707@atmel.com> 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: Hans-Christian Egtvedt Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Wed_May_10_17:24:33_2006-1 Content-Type: text/plain; charset=US-ASCII 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. Try to dump sw_params before snd_pcm_sw_params() by the patch below. Takashi --Multipart_Wed_May_10_17:24:33_2006-1 Content-Type: text/plain; charset=US-ASCII diff -r 7d9f5d349aaa aplay/aplay.c --- a/aplay/aplay.c Tue May 02 15:43:07 2006 +0200 +++ b/aplay/aplay.c Wed May 10 17:24:12 2006 +0200 @@ -1008,6 +1008,9 @@ static void set_params(void) err = snd_pcm_sw_params_set_xfer_align(handle, swparams, xfer_align); assert(err >= 0); + + fprintf(stderr, "sw_params to be set:\n"); + snd_pcm_sw_params_dump(swparams, log); if (snd_pcm_sw_params(handle, swparams) < 0) { error(_("unable to install sw params:")); --Multipart_Wed_May_10_17:24:33_2006-1-- ------------------------------------------------------- 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