[alsa-devel] [RFC PATCH] ASoC: wm8741: Add differential mono mode support

Mark Brown broonie at kernel.org
Mon May 4 13:25:37 CEST 2015


On Fri, May 01, 2015 at 08:13:57PM +0200, Sergej Sawazki wrote:

> +static const struct snd_kcontrol_new wm8741_snd_controls_mono_right[] = {
> +	SOC_SINGLE_TLV("Fine Playback Volume Right", WM8741_DACRLSB_ATTENUATION,
> +		1, 255, 1, dac_tlv_fine),
> +	SOC_SINGLE_TLV("Playback Volume Right", WM8741_DACRMSB_ATTENUATION,
> +		0, 511, 1, dac_tlv),
> +};

Please follow the control naming standard in ControlNames.txt: all
volume controls must have Volume as the last word in the name.

>  	.name = "wm8741",
>  	.playback = {
>  		.stream_name = "Playback",
> -		.channels_min = 2,  /* Mono modes not yet supported */
> +		.channels_min = 1,
>  		.channels_max = 2,

This should be varying with the platform data: in the mono modes we
can't do stereo and I suspect the stereo modes may have issues with
mono.
-------------- 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/20150504/81f790e9/attachment.sig>


More information about the Alsa-devel mailing list