[RFC PATCH 3/3] ep93xx i2s snapper cl15 support

Mark Brown broonie at opensource.wolfsonmicro.com
Tue May 18 14:44:33 EDT 2010


On Tue, May 18, 2010 at 04:55:12PM +1200, Ryan Mallon wrote:

> +//#define CODEC_CLOCK 11289600
> +#define CODEC_CLOCK 5644800

Hrm?

> +
> +static int snappercl15_startup(struct snd_pcm_substream *substream)
> +{
> +	return 0;
> +}

Remove this and all other empty functions.

> +static int snappercl15_tlv320aic23_init(struct snd_soc_codec *codec)
> +{
> +	printk(KERN_INFO "%s - here\n", __FUNCTION__);

Debug code, should probably be removed or at least make pr_debug().

> +	snd_soc_dapm_enable_pin(codec, "Headphone Jack");
> +	snd_soc_dapm_enable_pin(codec, "Line In");
> +	snd_soc_dapm_enable_pin(codec, "Mic Jack");

No need to enable pins, this is the default condition.  You could mark
any unused pins on the CODEC as _nc_pin() though.

> +	snd_soc_dapm_sync(codec);

The core should take care of this for you (so many machines need it that
it was pulled in).



More information about the linux-arm-kernel mailing list