[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Enabling (HDMI) audio on rk3328/rk3399 (Rock64/RockPro64)



Not sure if it's still helpful but ...

Diederik de Haas <didi.debian@cknow.org> writes:

[...]

> 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")

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.

> 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?

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.

Hope this helps.

Punit


Reply to: