10 Jan
2012
10 Jan
'12
1:44 a.m.
On Mon, Jan 09, 2012 at 12:11:22PM +0000, Liam Girdwood wrote:
The DL1 PDM interface adds a little gain depending on the output device. Add a method to retrieve the gain value for machine driver usage.
I'm having a hard time understanding how the machine driver would use this information...
+int twl6040_get_dl1_gain(struct snd_soc_codec *codec) +{
- struct snd_soc_dapm_context *dapm = &codec->dapm;
- if (snd_soc_dapm_get_pin_status(dapm, "EP"))
return -1; /* -1dB */
Shouldn't this be being done by reading the CODEC register settings to know which output DL1 is connected to?