Re: [PATCH 2/4] ASoC: Add ADAU1373 codec support

From: Lars-Peter Clausen
Date: Thu Aug 11 2011 - 06:13:40 EST



>> + SOC_ENUM("Lineout1 Mono Stereo", adau1373_lineout1_mode_enum),
>> + SOC_ENUM("Speaker Mono Stereo", adau1373_speaker_mode_enum),
>
> I'd expect these to be platform data/machine data rather than user
> control? The speaker wiring isn't going to vary dynamically...
>
You still might want to switch, for whatever particular reason, between mono
and stereo at runtime.

>> + switch (freq / params_rate(params)) {
>> + case 1024: /* fs */
>> + div = 0;
>> + break;
>> + case 1536: /* 2/3 fs */
>> + div = 1;
>> + break;
>
> These comments look inaccuate, fs is the sample rate so a divide of 1
> would be fs.

div contains the register value representation of that particular divider.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/