No audio through hdmi on amd/ati cards with the radeon driver on android 6.0 rc2

731 views
Skip to first unread message

Vijay Vijayan

unread,
Aug 28, 2016, 10:48:00 PM8/28/16
to Android-x86
All android builds do not output audio through the hdmi port of a amd/ati graphic card with the radeon driver in my case an amd hd6570 i have confirmed with alsa_mixer and alsa_aplay that device is detected and selected over the built in audio card.This seems to be a well documented problem that is solved in other distribution with different theories posted on why it happens, i tested the same computer under ubuntu where the audio works fine over hdmi in both cases i observed the driver complaining bad edid value of the connected monitor/tv in the kernel log if you unplug the hdmi and plug it back. This seems harmless as the driver exhibits the same behavior under ubuntu and has audio working

i noticed with "alsa_amixer contents" the playback channel map had a tlv size error in android-x86 instead of the different allowed channels

other things i've tried
"alsa_aplay -D hw:0,3 test.wav" this command actually begins to play the file without any error but i don't hear any output on the speakers

again this issue has been documented in many forums since as early as 2011 and still exist

Vijay Vijayan

unread,
Aug 31, 2016, 12:32:43 AM8/31/16
to Android-x86
as suggested in another thread i tried moving the devices during initialization in the init.sh script on bootup i guess this solves the problem where audio doesn't play through hdmi if your drivers are fine but the amd driver cannot play audi via hdmi at all this can be checked easily  with :

alsa_aplay -D hw:0,3 test.wav
i do believe now that this cause by speakers of the hdmi source not being mapped by a glitch handshake edid 

this only happens on ati/amd cards intel and nvidia cards work fine and this only happens on android x86  ubuntu and other linux distros have solved this issue

Patrick Gwyn

unread,
Sep 2, 2016, 4:58:28 AM9/2/16
to Android-x86
how did you do this sir?
analog audio is not working when hdmi is connected for my radeon 5450.

Vijay Vijayan

unread,
Sep 6, 2016, 1:21:26 PM9/6/16
to Android-x86
sorry i don't check my mail that often i never resolved my case, i never got audio working over hdmi  with a radeon card on android-x86 on your case however changing the init script as other have posted to the make the analog card as the first device might work 

is the analog card the native sound card on the motherboard your using ?

Tails Lol

unread,
Sep 7, 2016, 4:51:15 AM9/7/16
to Android-x86
well,only intel is making android x86 devices.
amd not making this kind of devices make the driver support very hard in a lots of way.
and android have very bad support of hdmi sound with x86 cpu.
almost no version of android X86 have support for hdmi sound for the moment im sorry.
so yea,i hope things will be better when chrome os with android support will be available for pc.
but for the mont the best situation is to run a android emulator.

Patrick Gwyn

unread,
Sep 10, 2016, 9:16:19 AM9/10/16
to Android-x86
Hey Thanks for your reply. 
yup the soundcard is builtin my motherboard. 
in the lollipop build it works okay analog audio and HDMI video works simultaneously. but with the marshmallow build it my tv detects that there's audio streaming over HDMI. When its not. I took a look at the init.d script but not quite sure what to move.

Tom

unread,
Sep 12, 2016, 11:11:36 PM9/12/16
to Android-x86


this is really annoying little bug , which affects everything from youtube to play TV. HDMI audio ATI / AMD Radeon cards. Appears as well as Android -x86 6.0 RC1 and Android 86 6.0 RC2.

Chih-Wei Huang

unread,
Sep 13, 2016, 1:04:33 PM9/13/16
to Android-x86
Please test 6.0-r1 which has added
preliminary HDMI audio support.

Prerequisite:
* A workable HDMI audio driver
* A input queue for HDMI plugging event like
/dev/input/event10: HDA Intel HDMI HDMI/DP,pcm=3
(you may check by getevent -p)

When plug in the HDMI cable, the audio route
will switch to HDMI audio automatically.
If this doesn't work, you may set the property

hal.audio.primary.hdmi=1

to force HDMI audio output.

I have tested it successfully on some
notebooks I have. They all have
Intel HDA based sound card.
I'm glad to hear test results
of other sound cards.
If not work, please provide full logcat
for debugging.


Known issues:
* If HDMI is plugged when music is playing,
audio route won't switch to HDMI directly.
You need to stop playing and play again.
* Can't adjust volume on Android side.
I'm not sure if it's a limitation of android
framework or a bug in our HAL.
* Doesn't work on ASUS T100 (or similar Baytrail tablets)
since no workable HDMI driver.

Patrick Gwyn

unread,
Sep 14, 2016, 4:45:47 AM9/14/16
to Android-x86
I'm using a radeon 5450.
How do I disable HDMI audio completely so I can just use the DVI/rgb 3.5mm analog input of my television.
Right now its sending blank/false audio over HDMI disabling the 3.5mm analog input of my television.
Once HDMI cable is unplug from the tv it lets the analog audio playback. 
Thanks.

Chih-Wei Huang

unread,
Sep 14, 2016, 4:49:43 AM9/14/16
to Android-x86
2016-09-14 14:26 GMT+08:00 Patrick Gwyn <duep...@gmail.com>:
> I'm using a radeon 5450.
> How do I disable HDMI audio completely so I can just use the DVI/rgb 3.5mm
> analog input of my television.

Well, a completely opposite request...
Yes, you can do it by setting the property

hal.audio.primary.hdmi=0
Reply all
Reply to author
Forward
0 new messages