A crucial element looks to be to enable 2 settings in the device tree (https://salsa.debian.org/kernel-team/linux/-/merge_requests/351#note_238470) # fdtput -t s /boot/dtbs/rockchip/rk3328-rock64.dtb /hdmi-sound status okay
# fdtput -t s /boot/dtbs/rockchip/rk3328-rock64.dtb /i2s@ff000000 status okay (Old value is "disabled")
I can/will test to see what else is needed to get it to work on my Rock64. But those settings are actually in rk3328.dtsi. And there is a similar file rk3399.dtsi where it seems the same (simple) change is needed.
And that would mean that HDMI audio would work on all (?) rk3328 and rk3399 devices.
But for that to happen, I need someone with a RockPro64 device who is willing to join in and validate that the changes do indeed also work on a RockPro64.
Who can and is willing to help?
Not sure if it's still helpful but ...
The board is already using device tree from upstream kernels so I didn't
have to mess with them to enable the devices. I checked the nodes with
fdtget and they showed status "okay" for both the nodes.
Diederik de Haas <didi.debian@cknow.org> writes:
But those settings are actually in rk3328.dtsi. And there is a similar
file rk3399.dtsi where it seems the same (simple) change is needed.
On my RockPro64 and see the following output -
rockpro64:~$ uname -a
Linux rockpro64 5.10.0-6-arm64 #1 SMP Debian 5.10.28-1 (2021-04-09) aarch64 GNU/Linux
rockpro64:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: hdmisound [hdmi-sound], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 [ff8a0000.i2s-i2s-hifi i2s-hifi-0] Subdevices: 1/1
Subdevice #0: subdevice #0
rockpro64:~$ grep SND_AUDIO /boot/config-5.10.0-6-arm64
# CONFIG_SND_AUDIO_GRAPH_CARD is not set
It seems the config doesn't need enabling for sound on this
device at least.
I may be wrong here, but it appears that for the Rock64, 'audio-graph-card' is used for 'sound' while 'simple-audio-card' is used for 'hdmi-sound'.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 83:10:44 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,522 |
Posted today: | 1 |