Sound through HDMI - volume adjust issue

1,951 views
Skip to first unread message

Luca

unread,
Apr 17, 2020, 10:44:55 AM4/17/20
to Android-x86
Hello,

I installed on a brand new Beelink BT3X (Intel Apollo lake Celeron J3355, Intel HD Graphics 500),

Everything works fine, except audio over HDMI, which I thought fixed following these instructions:
(BTW is that still the best approach?)

Later I realized that I cannot adjust volume using Android settings. To be more specific, it looks like adjusting multimedia volume has no effect, while adjusting ringtones volume do has some effect.

Any help would be much appreciated. Thanks!

Rob Ballantyne

unread,
Apr 18, 2020, 3:34:24 AM4/18/20
to andro...@googlegroups.com
The best way to set the output is using the property hal.audio.out rather than deleting potentially useful devices.

Example hal.audio.out=pcmC0D3p

I have the same issue with the volume but I'll have a look at fixing it soon if nobody else does.

Look through the commit history here for useful info https://osdn.net/projects/android-x86/scm/git/hardware-libaudio/commits

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/5381d945-d9a0-4f8b-92f0-589d3ce45a92%40googlegroups.com.

luca.a...@gmail.com

unread,
Apr 18, 2020, 6:39:10 AM4/18/20
to andro...@googlegroups.com

Hello Rob,

Il 18/04/2020 09:33, Rob Ballantyne ha scritto:
The best way to set the output is using the property hal.audio.out rather than deleting potentially useful devices.

Example hal.audio.out=pcmC0D3p

Thank you very much for pointing this out. But I'm totally noob in android-x86 development... can you kindly tell me where (in which file) should I set this property?



I have the same issue with the volume but I'll have a look at fixing it soon if nobody else does.

Thank you again! Please let me know



Rob Ballantyne

unread,
Apr 18, 2020, 6:58:29 AM4/18/20
to andro...@googlegroups.com
You can set it in /system/etc/init.sh

Locate the init_hal_audio() function

Just before the closing brace after 'esac' write

setprop hal.audio.out pcmC0D3p
setprop hal.audio.primary.hdmi 1


Remember, your device may not be pcmC0D3p, so try others if not working. Good luck

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.

luca.a...@gmail.com

unread,
Apr 22, 2020, 3:29:31 AM4/22/20
to andro...@googlegroups.com

Il 18/04/2020 12:58, Rob Ballantyne ha scritto:
You can set it in /system/etc/init.sh

Locate the init_hal_audio() function

Just before the closing brace after 'esac' write

setprop hal.audio.out pcmC0D3p
setprop hal.audio.primary.hdmi 1


Remember, your device may not be pcmC0D3p, so try others if not working. Good luck


Yes, it worked out nicely!

I look forward for news about volume fix, if and when there will be any.

Thank you!


youling 257

unread,
Sep 4, 2020, 6:37:02 AM9/4/20
to Android-x86
we can use property force choose which pcmC for audio output, needn't AUDIO_DEVICE_OUT_AUX_DIGITAL.
when i setprop hal.audio.out pcmC0D0p or pcmC0D7p, they can output audio on internal sound card or hdmi, but only has max and mini volume.
edit system/etc/audio_policy.conf, delete |AUDIO_DEVICE_OUT_AUX_DIGITAL, can adjust audio volume.
Reply all
Reply to author
Forward
0 new messages