Weblog

All | General | Java | Music
« Previous day (Jun 13, 2008) | Main | Next day (Jun 15, 2008) »
20080614 Saturday June 14, 2008

audiohd driver prototype for opensolaris

Recently, I am writing a topology parser for HD audio codec. The goal of this project
is to provide a generic HD audio driver for Solaris and enable audiohd to work with all
HD codecs which comply Intel high-definition audio specification. Now, this prototype
can find paths for playback and recording, but only playback works. The recording path
cannot work because I haven't finish input port configuration and volume adjustion for
recording.

I put the prototype here, you can download it and give it a try:

http://blogs.sun.com/minskey/resource/audiohd-test.tgz

After untar this file, you can do:

1. backup old audiohd driver:
cp /kernel/drv/audiohd /kernel/drv/audiohd.bak
cp /kernel/drv/amd64/audiohd /kernel/drv/amd64/audiohd.bak

2. edit /kernel/drv/audiohd.conf, uncommnet this line: "reset-configuration=1;"

3. copy new audiohd prototype from the above tarball
cp obj32/audiohd /kernel/drv/audiohd
cp obj64/audiohd /kernel/drv/amd64/audiohd

4. reboot system. but if you don't want to reboot, then do
1) entering CDE or console mode (not in gnome)
2) rem_drv audiohd
3) add_drv -i '"pciexclass,0403"' audiohd

But pls remember that this binary is just a very very early verion under developing.
There is no quality guarantee from Sun Microsystems or me. Use it only if you agree
to take the risk by yourself. :)

if this prototype panic your system, you can boot into fail-safe and run the following
command:

rem_drv -b /a audiohd

And then reboot.

Some guys report the driver works for the following codecs, if it works for others
pls send me an email : minskey.guo@sun.com.

Oh, you can check the codec by "dmesg | grep audio" after installing this driver.

Realtek :
ALC260 vid=0x10ec0260
ALC262 vid=0x10ec0262
ALC660 vid=0x10ec0660
ALC883 vid=0x10ec0883
ALC885 vid=0x10ec0885
ALC888 vid=0x10ec0888

IDT/Sigmetal:
STAC9200 vid=0x83847690
STAC9271D vid=0x83847627

Analog Devices:
AD1884 vid=0x11d41884
AD1984 vid=0x11d41984

( Jun 14 2008, 09:50:13 AM PDT ) Permalink Comments [0]

Calendar

RSS Feeds

Search

Links

Navigation

Referers