On Mon, Oct 13, 2008 at 04:22:06PM +0200, Sedji Gaouaou wrote: > ext-jukka.hynninen@xxxxxxxxxxx a ?crit : > >> + switch (div_id) { > >> + case AT91SSC_CMR_DIV: > >> + /* > >> + * The same master clock divider is used for both > >> + * transmit and receive, so if a value has already > >> + * been set, it must match this value. > >> + */ > >> + if (ssc_p->cmr_div == 0) > >> + ssc_p->cmr_div = div; > >> + else > >> + if (div != ssc_p->cmr_div) > >> + return -EBUSY; > >> + break; > What happens if the user wants to change the master clock divider at > runtime - for example, when changing sample rates? Usually you'd end up using constraints to prevent user space selecting a different sample rate if it wasn't possible to change safely. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel