From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Assertion `!snd_interval_empty(i)' failed Date: Wed, 16 Jul 2003 12:34:48 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <200307111618.14449.gkajmowi@tbaytel.net> Mime-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <200307111618.14449.gkajmowi@tbaytel.net> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: gkajmowi@tbaytel.net Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 11 Jul 2003 16:18:14 -0400, Garrett Kajmowicz wrote: > > I am working on software designed for VOIP, but it dynamically changes sample > rates and so forth on the fly. So prior to doing a snd_pcm_readi, I check > to see if I need to change any parameters. If so I used the existing > hw_params object and apply the required changes to sample rate, data type, > etc. > > I then call pcm_drop to close the pcm device, followed by > snd_pcm_hw_params(pcm_handle, hwparams) which should properly apply the > configuration. Instead I get: > > interval.c:108: snd_interval_refine_min: Assertion `!snd_interval_empty(i)' > failed. > Aborted > > How do I go about fixing this problem? that means a parameter (perhaps sample rate?) has no valid value in the configuration space. you should check whether the sample rate you pass is supported by the hardware, or try to use *_near() function to set the nearest parameter. Takashi ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0