Long story short: I used for about one year an odroid HC4 as NFS server and worked fine. Now I would add a player service for it. It mounts an HDMI port, so I tried to plug in the cable and it worked. I were able to see the video output but with no sound.
I found there is no detected hdmi card:
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ODROIDHC4 [ODROID-HC4], device 0: fe.dai-link-0 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ODROIDHC4 [ODROID-HC4], device 1: fe.dai-link-1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ODROIDHC4 [ODROID-HC4], device 2: fe.dai-link-2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
tried again after
# alsactl init
alsa-lib main.c:1541:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
Found hardware: "axg-sound-card" "" "" "" ""
Hardware is initialized using a generic method
(alsactl -U init provides no error)
The modules side looks fine to me (it was the same on 5.10.144, I tried moving to 5.19.10 with no result):
# lsmod | grep snd
snd_soc_hdmi_codec 24576 1
snd_soc_meson_axg_sound_card 16384 0
snd_soc_meson_card_utils 16384 1 snd_soc_meson_axg_sound_card
snd_soc_meson_g12a_tohdmitx 20480 1
snd_soc_meson_codec_glue 16384 1 snd_soc_meson_g12a_tohdmitx
snd_soc_meson_axg_tdmout 24576 1
snd_soc_meson_axg_frddr 36864 3
snd_soc_meson_axg_fifo 20480 1 snd_soc_meson_axg_frddr
snd_soc_meson_axg_tdm_interface 16384 2 snd_soc_meson_axg_sound_card
snd_soc_meson_axg_tdm_formatter 16384 2 snd_soc_meson_axg_tdm_interface,snd_soc_meson_axg_tdmout
snd_soc_core 245760 10 snd_soc_meson_axg_tdm_formatter,snd_soc_meson_axg_sound_card,snd_soc_hdmi_codec,snd_soc_meson_g12a_tohdmitx,snd_soc_meson_axg_tdm_interface,snd_soc_meson_axg_fifo,snd_soc_meson_axg_tdmout,snd_soc_meson_axg_frddr,snd_soc_meson_card_utils,snd_soc_meson_codec_glue
snd_compress 24576 1 snd_soc_core
ac97_bus 16384 1 snd_soc_core
snd_pcm_dmaengine 20480 1 snd_soc_core
snd_pcm 131072 7 snd_soc_hdmi_codec,snd_compress,snd_soc_meson_axg_tdm_interface,snd_soc_core,snd_soc_meson_axg_fifo,snd_soc_meson_codec_glue,snd_pcm_dmaengine
snd_timer 40960 1 snd_pcm
snd 90112 5 snd_soc_hdmi_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm
soundcore 16384 1 snd
I tried digging in dmesg and the only related issue that came out is:p
panfrost ffe40000.gpu: error -ENODEV: dev_pm_opp_set_regulators: no regulator (mali) found
but I wouldn't say that to be the source of the sound problem.
There are errors but I don't feel the solution behind any of them. Do you?
Kernel, modules, drive, dtb... where else could the lack of sound come from?
Any suggestion?