Re: Sound support

From: Steven Friedrich <freebsdlouisville_at_gmail.com>
Date: Sun, 21 May 2023 13:01:48 UTC
On 5/19/23 3:27 PM, Steven Friedrich wrote:
>
>
> On 5/16/2023 5:43 PM, Vlad Markov wrote:
>> On Sun, 14 May 2023 15:16:30 +0200
>> Yuri<yuri@aetern.org>  wrote:
>>
>>> Steven Friedrich wrote:
>>>> On 5/13/23 2:22 PM, Steven Friedrich wrote:
>>>>> I have an HP Slimline with a Realtek ALC3601 audio device.  I don't
>>>>> see any Realtek audio devices in FreeBSD 13.2-RELEASE Hardware Notes.
>>>>> Am I out of luck?
>>>>>   
>>>> There are no pcm devices in /dev, but sndstat says:
>>>>
>>>> cat /dev/sndstat
>>>> Installed devices:
>>>> pcm0: <Realtek ALC671 (Rear Analog)> (play/rec) default
>>>> pcm1: <Realtek ALC671 (Analog)> (play/rec)
>>>> pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play)
>>>> No devices installed from userspace.
>>>>
>>>> Does this mean no sound driver accepted these devices?
>>> Devices are called /dev/dsp*, see sound(4) man page (at least the FILES
>>> section).
>>>
>>> $ ls /dev/pcm*
>>> zsh: no matches found: /dev/pcm*
>>> $ cat /boot/kernel/kernel > /dev/dsp
>>> (alien sounds)
>>>
>> I don't see any responses so here is my experience.
>>
>> Yes, a sound driver was found for your devices.
>>
>> cat someRandomFile > /dsp, should send out some noise.
>>
>> It may not, in which case check the mixer. /usr/sbin/mixer comes with the system. It is possible the volume is off.
>>
>> Still no joy? I don't remember how I figured this out but I had to make
>> entries in /boot/loader.conf. The handbook explains how to do this. It uses device.hints vice loader.conf. I did my setup long ago.
>>
>> Good luck,
>>
>> Vlad
>>   
>> It's been so long, I had forgotten I had submitted a bug.
> FreeBSD Bugzilla – Bug 254200
>>   but it was closed as a duplicate ofbug 237340  <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237340>
> which has been ignored for years.  This is why I stopped 

> using FreeBSD a few years ago.
>> dev.hdaa.1.nid3: pin: Digital-out (Jack)
>>      Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
>>     Association: 0 (0x0001)
>>         Pin cap: 0x09000094 PDC OUT HDMI DP HBR
>>      Pin config: 0x18560010 as=1 seq=0 device=Digital-out conn=Jack 
>> ctype=Digital loc=0x18 color=Unknown misc=0
>>     Pin control: 0x00000040 OUT
>>      Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
>>     Connections: 1
>>           + <- nid=2 [audio output]
>>
My hdmi output appears to be muted.  How do I un-mute?

-- 
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64