[alsa-devel] [PATCH] ASoC: sgtl5000: Allow the codec to work in slave mode

Mark Brown broonie at kernel.org
Tue Sep 23 03:54:48 CEST 2014


On Thu, Sep 18, 2014 at 08:17:25PM -0300, Fabio Estevam wrote:

>  	default:
> -		/* if mclk not satisify the divider, use pll */
> +		/* if mclk not satisfy the divider, use pll */
>  		if (sgtl5000->master) {
>  			clk_ctl |= SGTL5000_MCLK_FREQ_PLL <<
>  				SGTL5000_MCLK_FREQ_SHIFT;
> -		} else {
> -			dev_err(codec->dev,
> -				"PLL not supported in slave mode\n");
> -			return -EINVAL;
>  		}
>  	}

Are you sure that the configuration that results is valid?  Typically
the requirements for MCLK to other clock ratios are very similar for
master and slave modes, it's just that it tends to be a lot more obvious
when things go wrong in master mode since directly visible clocks tend
to go wrong as opposed to performance problems.  Are the dividers that
we can't get configuration for purely for generating BCLK/LRCLK in
master mode or are they for other things?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140922/856cc67f/attachment-0001.sig>


More information about the Alsa-devel mailing list