Re: TV doesn't produce sound from HDMI Port

From: Milan Obuch <freebsd-multimedia_at_dino.sk>
Date: Mon, 18 Dec 2023 19:08:42 UTC
On Mon, 18 Dec 2023 10:56:11 -0800
Joe B <jcb2023az@gmail.com> wrote:

> Hello,
> 
> So I plugged in my laptop into my HDMI port of my TV and everything is
> working. I used arandr to find the TV and it outputted great. Problem
> is the TV isn't using the TV's audio to play its using my laptops
> audio. Trying to figure out if that is expected or not?

[ snip ]

> cat /dev/sndstat
> ----
> 
> Installed devices:
> pcm0: <Realtek ALC255 (Internal Analog)> (play/rec) default
> pcm1: <Realtek ALC255 (Front Analog Headphones)> (play)
> pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
> No devices installed from userspace.
> 
> 
> ----
> 
> If you need anything else let me know.

What does

sysctl hw.snd.default_unit

show? In my case, setting it to 2 redirect sound output to HDMI audio
channel. I have no much experience with audio, but this is working when
more audio channels are available, allowing to switch output.

Regards,
Milan