On Tue, 2 Nov 2010, Clemens Ladisch wrote: >> + * It is not allowed to call this function when given configuration is not exactly one. >> ... >> +int snd_pcm_hw_params_can_disable_period_irq(const snd_pcm_hw_params_t *params) > > This function is useless because it cannot be called before > snd_pcm_hw_params_set_period_irq(). I don't think so. The info bits from the driver are used in this check which are read-only. >> + * This function should be called only on devices where >> + * #snd_pcm_hw_params_can_disable_period_irq() returns true. (too late, FIXME) > > Therefore, this paragraph needs to go away. > > I think there should be a flag that can be added to snd_pcm_open, like > SND_PCM_NO_AUTO_RESAMPLE. It's not required. It's better to allow checking if no period update feature is available after snd_pcm_open(). Jaroslav ----- Jaroslav Kysela <perex@xxxxxxxx> Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel