Weblog

All | General | Java | Music
20080624 Tuesday June 24, 2008

updates for audiohd(7d) driver

Today, I fixed some bugs in the audiohd prototype. Now, both playback and
recording can work, and output mute can work as well. But there is no
monitor gain.

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

( Jun 24 2008, 10:41:21 PM PDT ) Permalink Comments [2]

20080620 Friday June 20, 2008

update for audiohd driver

I have just implemented recording for audiohd driver. Now, this driver
can perform basic playback and recording operations. But the mute and
the adjustion of monitor gain are not implemented yet.

Here, you can download and give it a try:

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

( Jun 20 2008, 05:00:06 AM PDT ) Permalink Comments [1]

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]

20060708 Saturday July 08, 2006

今天我哭了

今天,CCTV-6重播曾志伟主演的《防守反击》,本来只想随便看看,没想到居然一路看下来,居然感动得哭了。

《防守反击》是一部有关足球的片子,讲述了在假球、黑哨、黄赌毒充斥下中国足球联赛,小有资产的球迷“李成儒”对本市足球队的表现极为不满,说出了一番气话,被身为电视台记者的“李湘” 一番炒作,最后促成了由包子铺的经理“曾志伟”和一群伙计组成“包子队”,取代本市足球队与“国际联队”进行了一场商业足球赛。

其实,很早以前就看过这部片子,从来没有感动过。我怀疑自己不是被影片感动得流泪,而是为中国足球在落泪。真的,很久以来,我不想知道中国足球的任何消息。我不知道中国的顶级联赛现在叫什么,也不知道现在有几个队参赛。对于中国足球的现役球员(sorry, 我不想称他们为球星),我甚至都交不上名字了,孙继海是一个例外,因为英超赛场还偶尔提到他。

也许是因为是恰逢世界杯的缘故吧?这部影片勾起了我对中国足球的记忆:

职业联赛开始的时候,我还在武汉念书。那个时候,武汉还没有甲A球队,我们没法去现场看球,只能从电视,报纸上了解一些信息。当时,我为卿狂不止是我们这些“草民”(新东方的宋昊对这个词有精准的解释:)),全国上下不知道出了多少个“足球市长”、“足球省长”,也许正是因为这样,才有了后来的“成都保卫战”。

时至今日,我仍然相信没有哪个城市的球市赶得上当年的成都:为买球票带着铺盖卷排队等上三天三夜。但是,四川真的缺乏足球的底蕴(BTW:我绝没有什么别的意思,我自己是一个大巴山走出来的地地道道的四川人),在马明宇以42万转会宏远后,球队的成绩一落千丈。再后来,全兴濒临降级的边沿,在成都对阵宏远时,为了马明宇能脚下留情,“马儿,你在他乡还好吗?”之类的条幅满天飞。其实,四川球迷根本就不用担心,中国足球为了留住金牌的成都球市,开始了“官哨”的征程。在95联赛的收官阶段,保级无忧,夺冠无望的球队在于四川全兴的交锋中,不约而同地只守不攻。其中,最让人难受的是与国安的那场球:位列三甲,“永远争第一”的国安完全退缩在自己的半场,任由足球在自己的球门前飞来飞去,却又不得不装模做样的防守一下。我们一群老乡在学校的食堂里,满心希望的看着球从国安球门的左边飞到右边,又从右边回到左边,却始终没有球员顶到球,一直在抱怨全兴球员,最终,一老乡忍不住说了一句,“xx一挺就进去了都进不了”。

我不知道后来3:2拿下青岛的那场球是否也有官哨的成分,反正,严俊君提出的“成都保卫战”成了功。辽宁、青岛降级。对了,叫降组,faint.

后来,我们了解到最多的就是:XX球星也不归宿,xxx,xxxx,xxxxx,逐渐的,我开始怀疑,开始厌恶,最终,我不再关心中国足球。

也许,中国足球真的不需要我这样的草民的关注。

( Jul 08 2006, 02:00:06 AM PDT ) Permalink Comments [1]

20060612 Monday June 12, 2006

Hello, World

Hi, this is minskey from audio and console china group. I have
been working for Sun since December, 2003.

After I joined Sun in December, 2003, I wrote my first driver
for solaris, an audio driver for Intel ICH series, audio810(7d).
During that time, edward gillett was my code reviewer. He guided
me to improve the quality of the code.

I love audio, love this area. Even now, I still have an eye on
audio stuff. And currently, I am writing a driver for Intel high
definition audio hardware outside of my worktime. There is another
reason why I want to write it: about *6* months ago, I promised
to Osamu Sayama to write such a driver :-[ I call this driver
audiohd. Up to now, it can do playback for ICH6 and MCP55. But
it is not stable enough.

After that, together with my teammates, I completed virtual
keyboard and mouse project to enable solaris to support multiple
keyboards and mice simultaneously. Really, during development, we
got help from many senior engineers of Sun. Such as Jordan Brown,
who gave us his prototype which could work well already, and
Shudong Zhou, who was our sponsor and helped us on prototype
design, and Lisa Camesano, an expert in USB and console area,
edward pilatowicz, an expert in console and I/O area, and Alan
coopersmith, an X expert. And Frits Vanderlinden, who later
actually acted as my mentor on scsi/usb storage area.

And then, I spent some time on coherent console project before I
was sent to NWS group at Broomfield to learn SCSI for two months
in 2005. Broomfield is a beautiful town near to Denver. Everyone
I met there was friendly and warm-hearted. I fortunately had a
chance to sense traditional, peaceful life of Amercians. In the
farm of Scott tracy, I saw an hen of ten-years old and a donkey
more than thirty years old. They were treated as friends of the
family. And at Aaron Dailey's home I had delicious food, and at
a party, Mark Maybee shared his adventures in Antarctica with us.
Certainly, most important, I began to know about SCSI under the
help of scott's team members. Oh, when I lost my luggage in San
Francisco, I even got help from Carolyn Mueller, who was then at
Broomfield !!!

After returning from Broomfield, I have been working on SCSI/USB
storage area. Under the guide of frits Vanderlinden, I did some
jobs associated with removable media devices, and made changes in
sd and scsa2usb drivers to improve supports for removable media
devices, especially USB storage devices.

With the help of Peter Memishian, I recently fixed synchronization
issues in conskbd. Yes, I always get help from others. Sometimes
I hope that I could help others.

And now, I am trying to remove a legacy workaround in sd driver.
Hopefully, I can finish it in this week.

Ok, that's all. Oh, czech goal ?!

( Jun 12 2006, 09:08:59 AM PDT ) Permalink Comments [1]

Calendar

RSS Feeds

Search

Links

Navigation

Referers