Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sergej Sawazki <ce3a@gmx.de>
To: Mark Brown <broonie@kernel.org>,
	ckeepax@opensource.wolfsonmicro.com, lgirdwood@gmail.com
Cc: alsa-devel@alsa-project.org, lars@metafoo.de,
	patches@opensource.wolfsonmicro.com
Subject: Re: [RFC PATCH] ASoC: wm8741: Add differential mono mode support
Date: Mon, 04 May 2015 21:03:56 +0200	[thread overview]
Message-ID: <5547C29C.9020905@gmx.de> (raw)
In-Reply-To: <20150504112537.GA15510@sirena.org.uk>

Am 04.05.2015 um 13:25 schrieb Mark Brown:
> 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.

Thanks for this information. I would suggest "Right Fine Playback
Volume". Where "Right" is the "CHANNEL" from ControlNames.txt.
However, there is no "Right" in the "CHANNEL" section.
What do you think?

>>   	.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.

I think this should be always ".channels_min = 2". In "mono mode"
the DAC plays either the right or the left channel, however the I2S
signal is expected to be stereo.

Sergej

  reply	other threads:[~2015-05-04 19:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-01 18:13 [RFC PATCH] ASoC: wm8741: Add differential mono mode support Sergej Sawazki
2015-05-04  8:02 ` Charles Keepax
2015-05-04 11:25 ` Mark Brown
2015-05-04 19:03   ` Sergej Sawazki [this message]
2015-05-05 11:22     ` Mark Brown
2015-05-05 12:19       ` Sergej Sawazki
2015-05-05 13:57         ` Mark Brown
2015-05-05 14:07           ` Sergej Sawazki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5547C29C.9020905@gmx.de \
    --to=ce3a@gmx.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.wolfsonmicro.com \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=patches@opensource.wolfsonmicro.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox