Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test HDMI (audio doesn't work) #6

Open
SolidHal opened this issue Jun 23, 2018 · 12 comments
Open

test HDMI (audio doesn't work) #6

SolidHal opened this issue Jun 23, 2018 · 12 comments
Labels
bug Something isn't working

Comments

@SolidHal
Copy link
Owner

on kernel 4.9, HDMI didnt show up in dmesg, but now it does on 4.17.2 with new config. Untested, but should work.
Test this

@SolidHal
Copy link
Owner Author

video works, no sound

@SolidHal
Copy link
Owner Author

For sound, the patch at the bottom of this may be helpful Miouyouyou/RockMyy#2

@SolidHal
Copy link
Owner Author

Confirmed that video still works, just a little weird to setup in lxqt.

Start with the monitors settings pane closed, plug in the hdmi, then open the monitor settings. Now you have to check "enable this display" under HDMI

@SolidHal SolidHal changed the title test HDMI test HDMI (audio doesn't work) Sep 17, 2018
@SolidHal
Copy link
Owner Author

@SolidHal SolidHal added bug Something isn't working and removed minor bug labels Sep 17, 2018
@gregordinary
Copy link
Contributor

Not sure if this will be the fix, but looks like 5.4 may be getting better HDMI audio support for the rk3288:
Add HDMI jack support on RK3288

@gregordinary
Copy link
Contributor

On the most recent PrawnOS release, output of aplay -l is:

**** List of PLAYBACK Hardware Devices ****
card 0: VEYRONI2S [VEYRON-I2S], device 0: Audio HiFi-0 [Audio HiFi-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

I tried patching rk3288-veyron-speedy.dts with the suggestion above but did not get a different result.

I did find a couple things of interest:

  1. This patch was added to kernel 5.5.

All boards using rk3288-veyron-analog-audio.dtsi have HDMI audio.
Specify the support of HDMI audio on machine driver using
rockchip,hdmi-codec property so machine driver creates HDMI audio device.

  1. CONFIG_SND_SOC_RK3288_HDMI_ANALOG is currently not set in the kernel config file:

All boards using rk3288-veyron-analog-audio.dtsi have HDMI audio.
Specify the support of HDMI audio on machine driver using
rockchip,hdmi-codec property so machine driver creates HDMI audio device.

I built PrawnOS with Kernel 5.5.19 and enabled the HDMI_ANALOG mentioned above in the kernel config.

aplay -l output on the resulting build was:

**** List of PLAYBACK Hardware Devices ****
card 0: VEYRONI2S [VEYRON-I2S], device 0: Analog HiFi-0 [Analog HiFi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: VEYRONI2S [VEYRON-I2S], device 1: HDMI i2s-hifi-1 [HDMI i2s-hifi-1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I tried doing a speaker-test with the device but could not get it to work. Although it is listed as a device via aplay, I do not see it under the Pulse Audio Volume Control. https://i.imgur.com/z7U4qpd.png

@SolidHal
Copy link
Owner Author

Thanks for digging into this @gregordinary. Its not clear to me yet what the issue might be, or when I'll have a chance to dig into this myself

@kapouer
Copy link

kapouer commented Apr 5, 2021

@gregordinary you were actually very close to getting it to work: just add to /etc/pulse/default.pa

load-module module-alsa-sink device=hw:0,1

and then hdmi output works and automatically switches from internal to hdmi when plugging cable.
(on c201).

@gregordinary
Copy link
Contributor

Revisiting this, thank you for the guidance @kapouer

  1. Built PrawnOS from source, since it's now using 5.15.6, I didn't apply the patch from 5.5 mentioned in my previous comment. I did however, enable CONFIG_SND_SOC_RK3288_HDMI_ANALOG in the config.
  2. After building and installing XFCE, I modified /etc/pulse/default.pa to contain load-module module-alsa-sink device=hw:0,1
  3. Reboot after modifying the above, plugged in HDMI cable and audio is sent externally.

While the audio worked over HDMI, it was choppy. After another reboot and playing an ogg file in VLC, it was smooth but if I selected different speakers and reverted back to HDMI, it was choppy again. I'd like to test this further.

@kapouer
Copy link

kapouer commented Oct 23, 2022

See also alsa-project/alsa-ucm-conf#208

@gregordinary
Copy link
Contributor

Unfortunately same behavior with the updated .conf file.

I came across that .conf while troubleshooting the other sound-related issue. Not sure if it would behave any differently under different kernels or Debian release versions. Some chance it's also something with my chromebook, I haven't used HDMI audio much at all on this device.

@kapouer
Copy link

kapouer commented Oct 23, 2022

I think choppy sound is fixed in more recent versions of linux, or pulseaudio, I don't know which. Or maybe with pipewire/wireplumber. In any case, give a few weeks and use latest releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants