Hd-audio codec setup in Virtual Box
Posted: Wed Dec 08, 2021 2:38 pm
Hi,
I am trying to implement hd-audio driver. Finally I have the first output stream running. First I setup the output stream descriptor than setup an output converter with stream I'd, format, cleared mute bit, power on (D0 state),eapd/btl. In Qemu, if I set the volume of output converter to 0 which is 0x80 the mute bit, it doesn't produce sound and if I set the volume to some value (e.g:20) it produces sound, but in virtual box if I don't setup any output converter than also, after running the stream it produces sound. I tried using the mute bit in all output converters than also it produces sound from the first output stream. Also I cannot control the volume using amplifier gain verb in virtual box.
Here's my code - https://github.com/manaskamal/aurora-xe ... da/hda.cpp
Thanks in advance
I am trying to implement hd-audio driver. Finally I have the first output stream running. First I setup the output stream descriptor than setup an output converter with stream I'd, format, cleared mute bit, power on (D0 state),eapd/btl. In Qemu, if I set the volume of output converter to 0 which is 0x80 the mute bit, it doesn't produce sound and if I set the volume to some value (e.g:20) it produces sound, but in virtual box if I don't setup any output converter than also, after running the stream it produces sound. I tried using the mute bit in all output converters than also it produces sound from the first output stream. Also I cannot control the volume using amplifier gain verb in virtual box.
Here's my code - https://github.com/manaskamal/aurora-xe ... da/hda.cpp
Thanks in advance