Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2018 20:45:01 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Steven Friedrich <FreeBSD@twc.com>
Cc:        freebsd-questions@freebsd.org, "Steve O'Hara-Smith" <steve@sohara.org>
Subject:   Re: No Sound
Message-ID:  <20180915204501.b21cb2b9.freebsd@edvax.de>
In-Reply-To: <2925378.bT80LyP3VS@chameleon.friedrich.org>
References:  <5065116.8gLySxXtyI@chameleon.friedrich.org> <5087996.8gLySxXtyI@chameleon.friedrich.org> <20180914210228.f390e34c.freebsd@edvax.de> <2925378.bT80LyP3VS@chameleon.friedrich.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, 15 Sep 2018 01:49:51 -0400, Steven Friedrich wrote:
> OK, I've figured out the basics (mostly)
> I have three possible outputs to choose from, i.e., pcm0 (rear analog), pcm1 
> (front analog), and pcm2 (HDMI/DP).
> I can choose which touse with sysctl hw.snd.default_unit.
> Which ever I set, I must use the corresponding mixer, i.e., mixer0 for pcm0, 
> mixer1 for pcm1, and mixer2 for pcm2.

Excellent!



> I can hear sound out of pcm0 and pcm1 (rear and front analog), but I can't 
> hear any sound from pcm2 which goes to HDMI.
> The man page for snd_hds says:
> HDMI and DisplayPort audio may also require support from video driver.
> 
> Since I'm using syscons, I don't think this applies.

Correct. But... you mentioned that you're using FreeBSD 11.2,
and this should default to vt as the console driver, _not_ sc.
Anyway, I think in this case an X-related driver is meant.
And of course your video _hardware_ needs to support HDMI
audio. There are monitors which do not have this ability.
Some only offer an external audio connector (for headphones
or amplifier), and some have built-in amplified speakers.



> But it begs the question, is the audio supplied to both HDMI and DisplayPort 
> or is it selectable?

Maybe there is a corresponding setting in your computer's
CMOS setup (BIOS or UEFI). I would _guess_ that the system
choses the one output (out of the available two) that has
a device connected to it as the default unit for output.
At least that would be a sane approach. But... sure, you
never know... ;-)



> And is it digital or analog?

In those two cases, the audio is transmitted as digital data,
if I remember correctly. Turning it back into usable analog
audio is the task of the hardware attached to the other end
of the HDMI or DP cable.



> In summary, I can't get audio out to HDMI...

Maybe this is helpful:

https://www.freebsd.org/doc/handbook/sound-setup.html

There is a paragraph that deals with HDMI output, but the
task of _selecting_ it has been solved, so the question
that remains is: Why is there nothing to hear?

It is very important to check which graphics card your
system has (because that's the unit responsible for the
HDMI port), and see if there is a good X driver for it.
Of course sound and graphics hardware may actually be
inside the same chip, so "card" often doesn't apply.
It still seems to imply that HDMI sound playback is
only possible from within X...

Furthermore:

https://forums.freebsd.org/threads/sound-over-hdmi.36130/

http://daemon-notes.com/articles/entertainment/htpc/app-a




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20180915204501.b21cb2b9.freebsd>