At Tue, 10 Sep 2002 10:06:31 -0700 (PDT), Guilhem Tardy wrote: > > > just add the constraint in open callback, such like > > > > int your_pcm_open(snd_pcm_substream_t *substream) > > { > > ... > > > > err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, > > your_period_size_min, your_period_size_max); > > ... > > } > > > > this is the cleanest solution. > > Sure, but then I also need to define .period_bytes_min and .period_bytes_max in > my snd_pcm_hardware_t, right? This is quite feasible, indeed.
yes. they can be 0 and MAX_INT, so that they never restrict the condition, if you don't want these parameters affecting the behavior. (this is not tested but should work ;) Takashi ------------------------------------------------------- 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