[OLPC-devel] Sensor mode mixer control and AD1888 suspend/resume status

Jaya Kumar jayakumar.lkml at gmail.com
Sun Jun 18 06:18:32 EDT 2006


Sensor mode mixer control:

The following simple patch will provide a mixer control for disabling
V_REFOUT. By the way, turning this mixer control on, as expected makes
the standard mic not work. So I believe this further confirms that
there's no problem with either the  cs5535audio driver or AD1888 codec
driver with respect to standard mics on unmodified boards.

You should see the following mixer control with this patch:
# amixer
<snip>
Simple mixer control 'Disable V_REFOUT for Sensor Mode',0
  Capabilities: pswitch pswitch-joined

gmail might mangle whitespace.

diff -X cs5535audio.dontdiff -X
linux-2.6.17-rc5/Documentation/dontdiff -uprN
linux-2.6.17-rc5-ad1888pm/sound/pci/ac97/ac97_patch.c
linux-2.6.17-rc5-ad1888vref/sound/pci/ac97/ac97_patch.c
--- linux-2.6.17-rc5-ad1888pm/sound/pci/ac97/ac97_patch.c
2006-06-18 15:40:03.000000000 +0800
+++ linux-2.6.17-rc5-ad1888vref/sound/pci/ac97/ac97_patch.c
2006-06-18 17:46:20.000000000 +0800
@@ -1873,6 +1873,7 @@ static const struct snd_kcontrol_new snd
                .get = snd_ac97_ad1888_lohpsel_get,
                .put = snd_ac97_ad1888_lohpsel_put
        },
+       AC97_SINGLE("Disable V_REFOUT for Sensor Mode", AC97_AD_MISC, 2, 1, 0),
        AC97_SINGLE("Spread Front to Surround and Center/LFE",
AC97_AD_MISC, 7, 1, 0),
        {
                .iface = SNDRV_CTL_ELEM_IFACE_MIXER,

---

2. AD1888 suspend/resume
I've sent a rough patch that works and is able to go into 0 power
standby mode and resume cleanly to ALSA maint, Jordan and Marcelo.
Needs someone with a power meter to measure what are the actual power
savings.

I think that's pretty much all the issues with audio that I'm aware of.

Best regards,
jaya



More information about the Devel mailing list