LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No Audio in HDMI connected TV in 22.04 (https://www.linuxquestions.org/questions/linux-newbie-8/no-audio-in-hdmi-connected-tv-in-22-04-a-4175733910/)

LinuxWorli 02-15-2024 08:35 PM

No Audio in HDMI connected TV in 22.04
 
I upgraded from Ubuntu 20 to 22.04 and noticed that Its Video and Audio are not working. Somehow I managed to recover display (connected a TV through HDMI cable) but there is no audio after ubuntu upgradation. I have done many failed trials seen on the internet, but none of them are working.

System Information:

$ inxi -A
Audio:
Device-1: AMD driver: snd_hda_intel
Device-2: AMD Family 15h Audio driver: snd_hda_intel
Device-3: Generalplus USB Audio Device type: USB
driver: hid-generic,snd-usb-audio,usbhid
Sound Server-1: ALSA v: k5.15.0-94-generic running: yes
Sound Server-2: PipeWire v: 0.3.48 running: yes

$ lspci -nnk | grep -A4 Audio
00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:15b3]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:15b3]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Host Bridge [1022:157b]
--
00:09.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Carrizo Audio Dummy Host Bridge [1022:157d]
00:09.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 60h-6fh) Audio Controller [1022:157a]
DeviceName: Audio Codec ALC288
Subsystem: Conexant Systems, Inc. Family 15h (Models 60h-6fh) Audio Controller [14f1:0215]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:10.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller [1022:7914] (rev 20)
Subsystem: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller [1022:7914]

mrmazda 02-18-2024 10:12 PM

I have an AMD system nearly the same age yours:
Code:

# inxi -GSAaz --vs
inxi 3.3.33-00 (2024-02-06)
System:
  Kernel: 6.5.0-14-generic arch: x86_64 bits: 64 compiler: gcc v: 12.3.0
    clocksource: tsc avail: hpet,acpi_pm parameters: BOOT_IMAGE=/vmlinuz
    root=LABEL=zd8p22ub2204 noresume ipv6.disable=1 net.ifnames=0
    radeon.cik_support=0 amdgpu.cik_support=1 consoleblank=0 preempt=full
    mitigations=off
  Desktop: TDE (Trinity) v: R14.1.1 tk: Qt v: 3.5.0 wm: Twin v: 3.0
    with: kicker vt: 7 dm: 1: TDM 2: XDM Distro: Ubuntu 22.04.3 LTS (Jammy
    Jellyfish)
Graphics:
  Device-1: AMD Kaveri [Radeon R7 Graphics] vendor: ASRock driver: amdgpu
    v: kernel alternate: radeon arch: GCN-2 code: Sea Islands
    process: GF/TSMC 16-28nm built: 2013-17 ports: active: DP-1, DVI-D-1,
    HDMI-A-1, VGA-1 empty: none bus-ID: 00:01.0 chip-ID: 1002:130f
    class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 compositor: Twin v: 3.0 driver: X:
    loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3600x2640 s-dpi: 120 s-size: 762x558mm (30.00x21.97")
    s-diag: 944mm (37.18")
  Monitor-1: DVI-D-1 mapped: DVI-D-0 pos: top-right model: Dell P2213
    serial: <filter> built: 2012 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2
    size: 473x296mm (18.62x11.65") diag: 558mm (22") ratio: 16:10 modes:
    max: 1680x1050 min: 720x400
  Monitor-2: DP-1 mapped: DisplayPort-0 pos: primary,bottom-l
    model: Acer K272HUL serial: <filter> built: 2018 res: 2560x1440 hz: 60
    dpi: 109 gamma: 1.2 size: 598x336mm (23.54x13.23") diag: 686mm (27")
    ratio: 16:9 modes: max: 2560x1440 min: 720x400
  Monitor-3: HDMI-A-1 mapped: HDMI-A-0 pos: top-left model: NEC EA243WM
    serial: <filter> built: 2011 res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2
    size: 519x324mm (20.43x12.76") diag: 612mm (24.1") ratio: 16:10 modes:
    max: 1920x1200 min: 640x480
  Monitor-4: VGA-1 mapped: VGA-0 pos: middle-r model: Lenovo L2251x Wide
    serial: <filter> built: 2011 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2
    size: 474x296mm (18.66x11.65") diag: 559mm (22") ratio: 16:10 modes:
    max: 1680x1050 min: 720x400
  API: EGL v: 1.5 platforms: gbm: drv: N/A x11: drv: N/A
    inactive: wayland,device
  API: OpenGL v: 4.6 vendor: amd mesa v: 23.0.4-0ubuntu1~22.04.1 glx-v: 1.4
    es-v: 3.2 direct-render: yes renderer: KAVERI (kaveri LLVM 15.0.7 DRM 3.54
    6.5.0-14-generic) device-ID: 1002:130f memory: 1000 MiB unified: no
Audio:
  Device-1: AMD Kaveri HDMI/DP Audio vendor: ASRock driver: snd_hda_intel
    v: kernel bus-ID: 00:01.1 chip-ID: 1002:1308 class-ID: 0403
  API: ALSA v: k6.5.0-14-generic status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: aRts v: 1.5.10 status: active with: artswrapper status: off
    tools: artsdsp
  Server-2: PipeWire v: 0.3.48 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active tools: pw-cat,pw-cli,wpctl
  Server-3: PulseAudio v: 15.99.1 status: off (using pipewire-pulse)
    tools: pacat,pactl,pavucontrol
#

Quite possibly it could help you to boot including the bolded Grub linux cmdline parameters I use above.
Code:

# dpkg-query -W | egrep 'alsa|arts|audio|codec|demul|gstr|jack|kodi|libde2|libx26|mix|mpv|pavu|puls|sof-|sound|vlc|wire|xdg'|sort
alsa-base      1.0.25+dfsg-0ubuntu7
alsa-firmware-loaders  1.2.5-2
alsa-oss        1.1.8-1
alsa-tools      1.2.5-2
alsa-ucm-conf  1.2.6.3-1ubuntu1.9
alsa-utils      1.2.6-1ubuntu1
firmware-sof-signed    2.0-1ubuntu4.4
libasound2:amd64        1.2.6.1-1ubuntu1
libasound2-data 1.2.6.1-1ubuntu1
libasound2-plugins:amd64        1.2.6-1
libaudio2:amd64 1.9.4-7build1
libaudiofile1:amd64    0.3.6-5+deb10u1build0.22.04.1
libde265-0:amd64        1.0.8-1ubuntu0.1
libgstreamer1.0-0:amd64 1.20.3-0ubuntu1
libgstreamer-plugins-base1.0-0:amd64    1.20.1-1ubuntu0.1
libjack-jackd2-0:amd64  1.9.20~dfsg-1
libpipewire-0.3-0:amd64 0.3.48-1ubuntu3
libpipewire-0.3-common  0.3.48-1ubuntu3
libpipewire-0.3-modules:amd64  0.3.48-1ubuntu3
libpulse0:amd64 1:15.99.1+dfsg1-1ubuntu2.1
libpulsedsp:amd64      1:15.99.1+dfsg1-1ubuntu2.1
libpulse-mainloop-glib0:amd64  1:15.99.1+dfsg1-1ubuntu2.1
libwebrtc-audio-processing1:amd64      0.3.1-0ubuntu5
libwireplumber-0.4-0:amd64      0.4.8-4
libx264-163:amd64      2:0.163.3060+git5db6aa6-2build1
libx265-199:amd64      3.5-2
linux-sound-base        1.0.25+dfsg-0ubuntu7
pavucontrol    5.0-2
pipewire:amd64  0.3.48-1ubuntu3
pipewire-bin    0.3.48-1ubuntu3
pipewire-pulse  0.3.48-1ubuntu3
pulseaudio      1:15.99.1+dfsg1-1ubuntu2.1
pulseaudio-utils        1:15.99.1+dfsg1-1ubuntu2.1
sound-theme-freedesktop 0.8-2ubuntu1
wireless-regdb  2022.06.06-0ubuntu1~22.04.1
wireplumber    0.4.8-4
xdg-user-dirs  0.17-2ubuntu4
#

Are any of the A/V related packages I have installed missing on yours? You could have a much longer list, but are any I do have missing on yours? I don't have VLC or SMplayer or Kodi or MPV or other media players other than those in web browsers installed on this (yet).
Code:

# aplay /usr/local/share/sound/alsa/test.wav
Playing WAVE '/usr/local/share/sound/alsa/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
#

Aplay is a low level player. Can you get any sound via HDMI using it? On mine, with 4 connected displays, sound is automatically coming from the speakers using the only HDMI connection. If no sound, try adding option -D hdmi.


All times are GMT -5. The time now is 07:13 AM.