Made virtualbox ICH AC97 audio work with android eclair-x86

765 views
Skip to first unread message

Haojun Bao

unread,
Jun 6, 2010, 4:38:01 AM6/6/10
to Android-x86
Hi, all

With some poking around, I made the AC97 virtualbox audio device work
with android-x86, here's how:

1. Config kernel, select all PCI audio devices (sorry I don't know which
one is the right one, from lsmod output, it should be snd_intel8x0).

2. Patch external/alsa-utils/Android.mk with the attached patch, so that
the /system/usr/share/alsa/init/ folder will be populated with those
files from external/alsa-utils/alsactl/init/

3. Do a clean full build. (Or, make sure that those changes are
effective in the final iso image, i.e., the .ko modues and the alsa/init
files should show up in the system).

The following modules are loaded on my virtualbox:

snd_pcsp 8948 0 - Live 0xf8938000
snd_intel8x0 27888 3 - Live 0xf8918000
snd_ac97_codec 94676 1 snd_intel8x0, Live 0xf88e3000
ac97_bus 1300 1 snd_ac97_codec, Live 0xf88bd000
snd_pcm 65144 4 snd_pcsp,snd_intel8x0,snd_ac97_codec, Live 0xf8889000
snd_timer 18940 1 snd_pcm, Live 0xf8865000
snd 50660 10 snd_pcsp,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer, Live 0xf884a000
snd_page_alloc 8028 2 snd_intel8x0,snd_pcm, Live 0xf8831000

4. After the android system boot, run this command

alsa_ctl restore 0 -f /sdcard/1.txt

The 1.txt file is also attached, I think mainly it just unmute the audio
volume. You should adb push it onto the sdcard. Or better, come up with
a way to make it run automatically during boot. Also, the sb16 won't
work with my eclair-x86; there is just no sound. I doubt it's because
the same reason (i.e., sound is muted).

alsa-utils.patch
1.txt

Yi Sun

unread,
Jun 6, 2010, 2:02:19 PM6/6/10
to andro...@googlegroups.com
Thanks Bao,
I have created a new Wiki page and copied your e-mail to there. Please
take a look at https://sites.google.com/a/android-x86.org/web/documents/how-to-make-virtualbox-ich-ac97-audio-work-with-android-eclair-x86.
And please let me know if you need me to change anything in it.
The next step could be to verify the patch on different platforms to
see if it breaks anything and then we should push it into the repo.
For the 1.txt, I guess we could do it in the init script. But we will
also need to verify on other platforms to make sure it does not break
anything.
Thanks
Yi

> --
> You received this message because you are subscribed to the Google Groups "Android-x86" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-x86...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.
>
>

--
Android-x86
http://www.android-x86.org

Haojun Bao

unread,
Jun 6, 2010, 11:31:12 PM6/6/10
to andro...@googlegroups.com
Hi, Yi

I think the wiki page is O.K.

Thanks. It would be great if the patch can be accepted into repo, so
that I can make it work out of the box after I check out the source.

Jeffrey An

unread,
Jun 8, 2010, 9:15:27 AM6/8/10
to Android-x86
Thank you very much!!! Great work!!! Excellent....

With these changes, the sound of my viliv S7 which has IDT 92HD75B2X5
is working!!!..

Thanks,,


But... One question.

The volume is too small... Is there a way to raise it??

Thanks!!

Great works!!!!!!

On 6월7일, 오후12시31분, Haojun Bao <baohao...@gmail.com> wrote:
> Hi, Yi
>
> I think the wiki page is O.K.
>
> Thanks. It would be great if the patch can be accepted into repo, so
> that I can make it work out of the box after I check out the source.
>
> Yi Sun <beyo...@gmail.com> writes:
> > Thanks Bao,
> > I have created a new Wiki page and copied your e-mail to there. Please
> > take a look athttps://sites.google.com/a/android-x86.org/web/documents/how-to-make-....
> > And please let me know if you need me to change anything in it.
> > The next step could be to verify the patch on different platforms to
> > see if it breaks anything and then we should push it into the repo.
> > For the 1.txt, I guess we could do it in the init script. But we will
> > also need to verify on other platforms to make sure it does not break
> > anything.
> > Thanks
> > Yi
>
> >> For more options, visit this group athttp://groups.google.com/group/android-x86?hl=en.
>
> > --
> > Android-x86
> >http://www.android-x86.org

Chih-Wei Huang

unread,
Jul 9, 2010, 1:57:57 AM7/9/10
to andro...@googlegroups.com
Hi Haojun,

I've submitted the patch to AOSP,
and it has been merged very quickly.
Thank you for the contributions.

See
https://review.source.android.com/15702

2010/6/7 Haojun Bao <baoh...@gmail.com>:


> Hi, Yi
> I think the wiki page is O.K.
>
> Thanks. It would be great if the patch can be accepted into repo, so
> that I can make it work out of the box after I check out the source.

--
Chih-Wei
Android-x86 project
http://www.android-x86.org

dario

unread,
Mar 3, 2011, 1:24:33 PM3/3/11
to andro...@googlegroups.com
Hi all,

The wiki page doesn't include the "1.txt" file, was this included in init script for froyo build?  

I just want to confirm this patch is included in the latest android-x86 builds as I don't have sound working using latest Virtual Box on latest Mac OS X, I tested release and latest nightly.

And looking ahead, this patch is no longer applicable for the audio changes in gingerbread and honeycomb correct?

thanks,
Dario

Chih-Wei Huang

unread,
Mar 7, 2011, 8:51:04 PM3/7/11
to andro...@googlegroups.com
The changes are merged.
You don't need to apply them by hand.

2011/3/4 dario <dario....@gmail.com>:

--

orrorin

unread,
Nov 19, 2011, 3:49:40 PM11/19/11
to andro...@googlegroups.com
I just tried the stable and unstable Asus EEEPC iso in VirtualBox and the audio is not working. It seems there was a patch made available back in March and merged. But, it is not clear if that patch is working.

Has anyone tried playing Android games in VirtualBox?

Reply all
Reply to author
Forward
0 new messages