Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: No sound from azalia on thinkpad T60p



        That definitely helpss this end - I now only need to set
        outputs.lineout=255
        (patch applied to 4.0_STABLE source)

On Sat, 24 May 2008, Jared D. McNeill wrote:

Greg Troxel wrote:
For me, it works on a T60 with this in rc.local.

# T60 mixer hack
mixerctl -w \
        "outputs.lineout.eapd=on" \
        "outputs.linein.dir=output" \
        "outputs.lineout=255,255"

I am not really sure why - this is copied from someone else long ago.

Can you try the following patch without your rc.local hack:

Index: azalia_codec.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/azalia_codec.c,v
retrieving revision 1.64
diff -u -r1.64 azalia_codec.c
--- azalia_codec.c      28 Apr 2008 20:23:54 -0000      1.64
+++ azalia_codec.c      24 May 2008 17:23:20 -0000
@@ -3128,6 +3128,12 @@
                mc.type = AUDIO_MIXER_ENUM;
                mc.un.ord = 1;
                generic_mixer_set(this, 0x09, MI_TARGET_PINDIR, &mc);
+               generic_mixer_set(this, 0x05, MI_TARGET_EAPD, &mc);
+               mc.type = AUDIO_MIXER_VALUE;
+               mc.un.value.num_channels = 2;
+               mc.un.value.level[0] = AUDIO_MAX_GAIN;
+               mc.un.value.level[1] = AUDIO_MAX_GAIN;
+               generic_mixer_set(this, 0x1a, MI_TARGET_VOLUME, &mc);
        }
        return 0;
}


--
                David/absolute       -- www.NetBSD.org: No hype required --


Home | Main Index | Thread Index | Old Index