[alsa-devel] ASoC: Merging at91 and avr32 dirs - test report

Mark Brown broonie at sirena.org.uk
Mon Oct 13 16:34:08 CEST 2008


On Mon, Oct 13, 2008 at 04:22:06PM +0200, Sedji Gaouaou wrote:
> ext-jukka.hynninen at vaisala.com 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.


More information about the Alsa-devel mailing list