On Thu, 29 Aug 2002, Guilhem Tardy wrote: > Hi, > > I have a problem with supporting multiple audio formats in that my hardware > defines its buffers in a number of frames rather than bytes. > > I evaluated the changes required to support description of a hardware's > period contraints in frame AND bytes. Essentially, this would mean > adding 'size_t period_size_min' and 'size_t period_size_max' to the > stucture _snd_pcm_hardware in pcm.h, and then add a constraint in > snd_pcm_hw_constraints_complete() in pcm_native.c such that the period > size is within those min and max values. Other drivers wouldn't be > affected if the period_size_min/max default values are properly chosen > (i.e. 0 and MAX_UINT, respectively). > > Would you consider such a change in the ALSA code base?
Wouldn't be better to add such constraint to your code in open() callback? This constraint is not used frequently. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project http://www.alsa-project.org SuSE Linux http://www.suse.com ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel