From owner-freebsd-questions@freebsd.org Sat Sep 15 18:45:16 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E1A11081812 for ; Sat, 15 Sep 2018 18:45:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B67819477B for ; Sat, 15 Sep 2018 18:45:15 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.102.102]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPA (Nemesis) id 1N5lvf-1fmDZs2PqF-017HSd; Sat, 15 Sep 2018 20:45:03 +0200 Date: Sat, 15 Sep 2018 20:45:01 +0200 From: Polytropon To: Steven Friedrich Cc: freebsd-questions@freebsd.org, "Steve O'Hara-Smith" 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> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:K409yjpRJVcqSOzAI1Y9JcYEPrwWgXSqh1cDm8AAOBk5JhdQlvZ Fxus9tbDZEXkxmQbTyrIJCiKEUxA6yinahd35C2QvcLuQz6UqnFfUiOVxfEZbL4DzTlMKzv UqVtvS3E+Il94nUa33eYuTKsJ3Bw4d+XGNfPRrbbvKxtRzDmwknxQ7e0GReLUyGlGv21dN8 0UtNDhon68ea3LBLxxxdw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Vt0gn1Vx+qA=:Bi46f+kU/kyKDw279yQaZc 5jrGK1QDa1YAEOhZdDyaNXpMuOssmFoZKeHDagB8p1RyH9AgSSxYKe0UzSqqSFBC7LO6Y8rgk 2birGrx8Ay9TlOJTjwm2ypjaCNnmhV+Voqu8edmLSvzLAyM52lk2hmGd4SNZjpdwMG72KDG4Z FjjJ7D0Oiogn+S+tRoDfWkcsANjkjaJWVb6qFI3isQI82IIlATkg5sGdnqRvLR3d65WswYxPU xE/tMR6THSEwh/3Vpd68uNIPk/a+aGNc5Pv4s7qtp9vJfUXSPL4f9fuBd5BDI9LqYBURhOAC4 pGaupjAKCPC3vTVxiHwjdKBiaUXivg/hjytrWXR3PSVH6mOsqcuAPeBkZQQjCmnitfDmVfzsN YUgVTClq5iKzm7UkOeAuolXVggcxcI4cCrX62NSoEEb4eS8pOn8MB3+BTSKnY0W1cQT8uukSL KLb+l631apOHraFFRa0aeI+wZycg+yrPGhqxulH28eLJ5/7nQpUc3ad2WIXh4Heg/D9urxkl5 fBTUfCZoB7HeFSJxDSc1/Dnor0MVBiC411MqqtV2ZxpJZ7mLqKhtblL7iPYswdoYZIzSw/Ygp T48pagF3ncsRcWU6h2XwAFZuWZmj3dqG54JaciVFx2FqGpHVuW6Nb5EkCfMCHSqN5w2OqdzCD xaHPj2Y+A4rkobvR4sSHYtOJWCp5MbhDgJ/6kkdoG28669PD3RDs9cXKRQ9fq9gZFGyjo1dAg /YJQYtXqcUO0bHn5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2018 18:45:16 -0000 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, ...