How do I get hdmi audio working on my kodi box?

jp flag

I am using xubuntu 22.04. I am trying to set this box up as a kodi box. The settings sound app show Dummy Output with no other option to select. The Configure tab shows 'No sound card detected'. This works in 20.04 out-of-the-box but does it not detect my network adapter, an Intel I225-V rev 3. It seems the older distros (mostly kernel 5.4.x) works the sound but not the ethernet and the newer distros (usually kernel 5.15.x) doesn't like the sound card but the ethernet works great. Libreelec uses 5.4.x kernel and the sound works fine but I have problems with the ethernet and wifi. So I know the sound can work. The details:

Computer: Ouvislite mini PC GK5 - Intel(R) Celeron(R) N4000 CPU @ 1.10GHz

HW Details:(abbreviated)

# inxi -Fxxxrz
  Kernel: 5.15.0-60-generic x86_64 bits: 64 compiler: gcc v: 11.3.0 Console: pty pts/6
    DM: LightDM 1.30.0 Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
  Type: Desktop Mobo: N/A model: N/A v: $(DEFAULT_STRING) serial: <filter>
    UEFI: American Megatrends v: GK1V6101 date: 05/28/2022
  Device-1: Intel Celeron/Pentium Silver Processor High Definition Audio
    driver: sof-audio-pci-intel-apl bus-ID: 00:0e.0 chip-ID: 8086:3198 class-ID: 0401
  Sound Server-1: ALSA v: k5.15.0-60-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes

aplay list:

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 1: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 2: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

lspci details:

# lspci -vv -s 00:0e.0
00:0e.0 Multimedia audio controller: Intel Corporation Celeron/Pentium Silver Processor High Definition Audio (rev 03)
    DeviceName: Onboard - Sound
    Subsystem: Intel Corporation Celeron/Pentium Silver Processor High Definition Audio
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 135
    Region 0: Memory at a1510000 (64-bit, non-prefetchable) [size=16K]
    Region 4: Memory at a1000000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: [50] Power Management version 3
        Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
        Status: D3 NoSoftRst+ PME-Enable+ DSel=0 DScale=0 PME-
    Capabilities: [80] Vendor Specific Information: Len=14 <?>
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Address: 00000000fee00598  Data: 0000
    Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
        DevCap: MaxPayload 128 bytes, PhantFunc 0
            ExtTag- RBE- FLReset+
        DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
            RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+ FLReset-
            MaxPayload 128 bytes, MaxReadReq 512 bytes
        DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
    Kernel driver in use: sof-audio-pci-intel-apl
    Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci_intel_apl

Loaded Modules:

**# lsmod|sort|grep snd
ac97_bus               16384  1 snd_soc_core
ledtrig_audio          16384  1 snd_sof
snd                   106496  13 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_pcm,snd_soc_skl_hda_dsp,snd_rawmidi
snd_compress           24576  1 snd_soc_core
snd_hda_codec         163840  5 snd_hda_codec_hdmi,snd_hda_intel,snd_soc_intel_hda_dsp_common,snd_soc_hdac_hda,snd_soc_skl_hda_dsp
snd_hda_codec_hdmi     77824  1
snd_hda_core          110592  10 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_intel_hda_dsp_common,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
snd_hda_ext_core       32768  5 snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
snd_hda_intel          53248  0
snd_hwdep              16384  1 snd_hda_codec
snd_intel_dspcfg       28672  3 snd_hda_intel,snd_sof_intel_hda_common,snd_soc_skl
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
snd_pcm               143360  12 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_core,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_rawmidi            49152  1 snd_seq_midi
snd_seq                77824  2 snd_seq_midi,snd_seq_midi_event
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
snd_seq_midi           20480  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_soc_acpi           16384  3 snd_soc_acpi_intel_match,snd_sof_intel_hda_common,snd_soc_skl
snd_soc_acpi_intel_match    61440  3 snd_sof_intel_hda_common,snd_soc_skl,snd_sof_pci_intel_apl
snd_soc_core          339968  8 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_soc_dmic,snd_soc_skl_hda_dsp
snd_soc_dmic           16384  1
snd_soc_hdac_hda       24576  2 snd_sof_intel_hda_common,snd_soc_skl
snd_soc_hdac_hdmi      36864  1 snd_soc_skl_hda_dsp
snd_soc_intel_hda_dsp_common    20480  1 snd_soc_skl_hda_dsp
snd_soc_skl           172032  0
snd_soc_skl_hda_dsp    28672  0
snd_soc_sst_dsp        36864  1 snd_soc_skl
snd_soc_sst_ipc        20480  1 snd_soc_skl
snd_sof               147456  2 snd_sof_pci,snd_sof_intel_hda_common
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
snd_sof_intel_hda_common   102400  1 snd_sof_pci_intel_apl
snd_sof_pci            20480  2 snd_sof_intel_hda_common,snd_sof_pci_intel_apl
snd_sof_pci_intel_apl    16384  0
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
snd_timer              40960  2 snd_seq,snd_pcm
soundcore              16384  1 snd
soundwire_intel        40960  1 snd_sof_intel_hda_common**

When I execute:

# aplay -D plughw:0,2 /usr/share/sounds/alsa/Front_Right.wav 
Playing WAVE '/usr/share/sounds/alsa/Front_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

I get sound but otherwise no joy. Since I am using this as a kodi box I am specifically looking for hdmi audio. I have 3 sound servers running and a slew of sound modules loaded but no sound. What to do? it

David avatar
cn flag
Are you sure your machine meets the minimum hardware needed for 22.04?,Internet%20access%20is%20helpful
I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.