Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sound setup

107 views
Skip to first unread message

Paul Floyd

unread,
Oct 15, 2016, 2:09:13 PM10/15/16
to
Hi

I'm trying to get sound working on FreeBSD 10.3, so far to no avail. This
is a HP z400 workstation (something like 7 years old) which multiboots
Windows 10 and Fedora 24, both of which have working audio 'out of the box'.

I've tried most of the things that I've seen online.

# cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC262 (Analog)> (play/rec) default
pcm1: <Realtek ALC262 (Front Analog Headphones)> (play)

# kldstat -v | grep snd
284 hdac/snd_hda
283 pci/snd_hda
282 hdaa/snd_hda_pcm
281 hdacc/snd_hda
280 pci/snd_via8233
279 pci/snd_ich
278 pci/snd_es137x
277 emu10kx/snd_emu10kx_midi
276 emu10kx/snd_emu10kx_pcm
275 pci/snd_emu10kx
274 csa/snd_csapcm
273 pci/snd_csa
272 pci/snd_cmi

dmesg | grep -i audio
hdaa0: <Realtek ALC262 Audio Function Group> at nid 1 on hdacc0

# mixer
Mixer vol is currently set to 78:78
Mixer pcm is currently set to 100:100
Mixer speaker is currently set to 74:74
Mixer line is currently set to 1:1
Mixer mic is currently set to 67:67
Mixer mix is currently set to 74:74
Mixer rec is currently set to 26:26
Mixer igain is currently set to 0:0
Mixer monitor is currently set to 67:67
Recording source: mic

From pciconf -lv:
hdac0@pci0:0:27:0: class=0x040300 card=0x1309103c chip=0x3a3e8086 \
rev=0x00 hdr=0x00
vendor = 'Intel Corporation'
device = '82801JI (ICH10 Family) HD Audio Controller'
class = multimedia
subclass = HDA

Any ideas?

A+
Paul
--
Paul Floyd http://paulf.free.fr

Jens Schweikhardt

unread,
Oct 19, 2016, 3:31:52 PM10/19/16
to
Paul Floyd <ro...@127.0.0.1> wrote
in <slrno04sd...@tryfan.lan>:
...
# # mixer
# Mixer vol is currently set to 78:78
# Mixer pcm is currently set to 100:100
# Mixer speaker is currently set to 74:74
# Mixer line is currently set to 1:1
# Mixer mic is currently set to 67:67
# Mixer mix is currently set to 74:74
# Mixer rec is currently set to 26:26
# Mixer igain is currently set to 0:0
# Mixer monitor is currently set to 67:67


Hmm. Line and igain look quite low. On my box I see
$ mixer
Mixer vol is currently set to 100:100
Mixer pcm is currently set to 100:100
Mixer speaker is currently set to 0:0
Mixer line is currently set to 80:80
Mixer mic is currently set to 0:0
Mixer mix is currently set to 80:80
Mixer rec is currently set to 0:0
Mixer igain is currently set to 50:50
Mixer ogain is currently set to 100:100


Regards,

Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)

Adam Jensen

unread,
Oct 25, 2016, 7:13:07 PM10/25/16
to
if you are using the front headphones jack, it might help to do this:

sudo sysctl hw.snd.default_unit=1


Paul Floyd

unread,
Nov 1, 2016, 4:20:37 AM11/1/16
to
On Tue, 25 Oct 2016 19:13:05 -0400, Adam Jensen <han...@riseup.net> wrote:
> if you are using the front headphones jack, it might help to do this:
>
> sudo sysctl hw.snd.default_unit=1


Hi

Sorry for the delay, I upgraded to FreeBSD 11 in the meantime, but I
still have the same problem.

If I set the output to the headphones, that does work. That's OK as a
workaround but I'd still like to get the speakers to work.

Paul Floyd

unread,
Nov 1, 2016, 4:21:38 AM11/1/16
to
On 19 Oct 2016 19:31:50 GMT, Jens Schweikhardt <use...@schweikhardt.net> wrote:
> Paul Floyd <ro...@127.0.0.1> wrote
> in <slrno04sd...@tryfan.lan>:
> Hmm. Line and igain look quite low. On my box I see
> $ mixer
> Mixer vol is currently set to 100:100
> Mixer pcm is currently set to 100:100
> Mixer speaker is currently set to 0:0
> Mixer line is currently set to 80:80
> Mixer mic is currently set to 0:0
> Mixer mix is currently set to 80:80
> Mixer rec is currently set to 0:0
> Mixer igain is currently set to 50:50
> Mixer ogain is currently set to 100:100

I tried increasing the values but that made no difference.

Paul Floyd

unread,
Nov 1, 2016, 6:05:38 AM11/1/16
to
On 01 Nov 2016 08:20:35 GMT, Paul Floyd <ro...@127.0.0.1> wrote:
> On Tue, 25 Oct 2016 19:13:05 -0400, Adam Jensen <han...@riseup.net> wrote:
>> if you are using the front headphones jack, it might help to do this:
>>
>> sudo sysctl hw.snd.default_unit=1
>
>
> Hi
>
> Sorry for the delay, I upgraded to FreeBSD 11 in the meantime, but I
> still have the same problem.
>
> If I set the output to the headphones, that does work. That's OK as a
> workaround but I'd still like to get the speakers to work.

Hi

I just tried connecting some headphones to the rear loudspeaker and line
out jacks at the rear of the PC and the output is going to line out.

I tried booting verbose. There's a load of stuff prefixed with hdaa0 and
pcm0. Some that looks pertinent to me copied below.

There's no black jack, just pink blue and green.

hdaa0: Original pins configuration:
hdaa0: nid 0x as seq device conn jack loc color misc
hdaa0: 18 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 20 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 21 01014c10 1 0 Line-out Jack 1/8 Rear Green 12
hdaa0: 22 99030120 2 0 Line-out Fixed ATAPI Onboard Unknown 1
hdaa0: 24 01a19c30 3 0 Mic Jack 1/8 Rear Pink 12
hdaa0: 25 02a11c31 3 1 Mic Jack 1/8 Front Black 12
hdaa0: 26 01813c3f 3 15 Line-in Jack 1/8 Rear Blue 12
hdaa0: 27 02211c40 4 0 Headphones Jack 1/8 Front Black 12
hdaa0: 28 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 29 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 30 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: 31 411111f0 15 0 Speaker None 1/8 Rear Black 1
hdaa0: Patching widget caps nid=29 0x00400000 -> 0x00700000
hdaa0: Patched pins configuration:
hdaa0: nid 0x as seq device conn jack loc color misc
hdaa0: 18 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa0: 20 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa0: 21 01014c10 1 0 Line-out Jack 1/8 Rear Green 12
hdaa0: 22 99030120 2 0 Line-out Fixed ATAPI Onboard Unknown 1
hdaa0: 24 01a19c30 3 0 Mic Jack 1/8 Rear Pink 12
hdaa0: 25 02a11c31 3 1 Mic Jack 1/8 Front Black 12
hdaa0: 26 01813c3f 3 15 Line-in Jack 1/8 Rear Blue 12
hdaa0: 27 02211c40 4 0 Headphones Jack 1/8 Front Black 12
hdaa0: 28 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa0: 30 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA
hdaa0: 31 411111f0 15 0 Speaker None 1/8 Rear Black 1 DISA

and

pcm0: <Realtek ALC262 (Analog)> at nid 21 and 24,25,26 on hdaa0
pcm0: Playback:
pcm0: Stream cap: 0x00000001 PCM
pcm0: PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
pcm0: DAC: 2
pcm0:
pcm0: nid=21 [pin: Line-out (Green Jack)]
pcm0: + <- nid=12 [audio mixer] [src: pcm, mix]
pcm0: + <- nid=2 [audio output] [src: pcm]
pcm0: + <- nid=11 [audio mixer] [src: mix]

pcm0: Speaker/Beep Volume (OSS: speaker): -34/12dB
pcm0: +- ctl 9 (nid 11 in 5): -34/12dB (32 steps) + mute
pcm0: +- ctl 39 (nid 35 in 5): mute
pcm0: +- ctl 48 (nid 36 in 5): mute

pcm0: Soft PCM mixer ENABLED
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (disconnected)
pcm0: Recording channel set is: Front Left, Front Right,
pcm0: Recording channel matrix is: 2.0 (disconnected)

Bob Eager

unread,
Nov 1, 2016, 7:15:46 AM11/1/16
to
I didn't see earlier posts, but have you done:

cat /dev/sndstat ?

Then use the right number for the jack you want, in the sysctl.




--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Paul Floyd

unread,
Nov 1, 2016, 7:19:52 AM11/1/16
to
On 1 Nov 2016 11:15:44 GMT, Bob Eager <news...@eager.cx> wrote:
> On Tue, 01 Nov 2016 08:21:38 +0000, Paul Floyd wrote:
>
>> On 19 Oct 2016 19:31:50 GMT, Jens Schweikhardt <use...@schweikhardt.net>
>> wrote:
>>> Paul Floyd <ro...@127.0.0.1> wrote
>>> in <slrno04sd...@tryfan.lan>:
>>> Hmm. Line and igain look quite low. On my box I see $ mixer Mixer vol
>>> is currently set to 100:100 Mixer pcm is currently set to
>>> 100:100 Mixer speaker is currently set to 0:0 Mixer line is
>>> currently set to 80:80 Mixer mic is currently set to 0:0 Mixer
>>> mix is currently set to 80:80 Mixer rec is currently set to
>>> 0:0 Mixer igain is currently set to 50:50 Mixer ogain is
>>> currently set to 100:100
>>
>> I tried increasing the values but that made no difference.
>>
>> A+
>
> I didn't see earlier posts, but have you done:
>
> cat /dev/sndstat ?
>
> Then use the right number for the jack you want, in the sysctl.

Hi Bob

Yes, I've tried. This is the output:

cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC262 (Analog)> (play/rec) default
pcm1: <Realtek ALC262 (Front Analog Headphones)> (play)

The problem is that pcm0 is attached to the unconnected rear line out jack
whilst I want to use the
internal speaker.

Paul Floyd

unread,
Nov 1, 2016, 12:43:12 PM11/1/16
to
On 01 Nov 2016 11:19:50 GMT, Paul Floyd <ro...@127.0.0.1> wrote:

[snip]

After quite a lot of searching on the web, and a bit of experimentation
I found these settings for /boot/device.hints:

hint.hdaa.0.nid22.config="as=1 seq=0 device=Speaker conn=Fixed"
hint.hdaa.0.nid27.config="as=1 seq=15 device=Headphones conn=Jack"
hint.hdaa.0.nid21.config="as=2 seq=0 device=Line-out conn=Jack"

This now seems to work OK.
0 new messages