Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2014 21:26:01 -0200
From:      Luciano Rottava da Silva <rottava@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Setting up 4.1 audio in FreeBSD 10.1
Message-ID:  <CAGROAxVMEtfXFnOimMCWigBtmqVaoJr14U%2BvZwqHPFs4Zo%2BuQg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello list,

My desktop has a 4.1 speaker system, connect to an Asus motherboard with a
built-in ALC887 sound card.

$ dmesg | grep ALC
hdacc0: <Realtek ALC887 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC887 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC887 (Rear Analog 3.1/2.0)> at nid 20,26 and 24 on hdaa0
pcm1: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa0
pcm2: <Realtek ALC887 (Onboard Digital)> at nid 17 on hdaa0

I am able to listen to the front but not to the rear speakers. I would like
to adjust my audio system to 4.0/4.1, i.e., same audio in the rear and in
the front speaker. Don`t care too much about real surround sound.

All relevant sound modules are there, so I think problem is related to the
configuration of the sound chipset.

Searching in the Internet I figured out I could redefine a line-in jack
(blue, where my rear speakers are connected) to line-out. So I did it:

$ cat /boot/device.hints
hint.hdac.0.cad0.nid20.config="as=1 seq=0"
#hint.hdac.0.cad0.nid24.config="as=1 seq=1 device=Line-out"
#hint.hdac.0.cad0.nid26.config="as=1 seq=2 device=Line-out"
hint.hdac.0.cad0.nid26.config="as=1 seq=1 device=Line-out"


$ cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC887 (Rear Analog 3.1/2.0)> (play/rec) default
pcm1: <Realtek ALC887 (Front Analog)> (play/rec)
pcm2: <Realtek ALC887 (Onboard Digital)> (play)
pcm3: <USB audio> (rec)


After boot in verbose mode I got:

hdaa0: Pin sense: nid=20 sense=0x80000000 (connected)
hdaa0: Pin sense: nid=26 sense=0x80000000 (connected)
hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
pcm0: <Realtek ALC887 (Rear Analog 3.1/2.0)> at nid 20,26 and 24 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 3
pcm0:
pcm0:     nid=20 [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:
pcm0:     nid=26 [pin: Line-out (Blue Jack)]
pcm0:       + <- nid=13 [audio mixer] [src: pcm, mix]
pcm0:              + <- nid=3 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
pcm0:


This means that both jacks in the motherboard are set to line-out and shoud
work, right?

Is there anything else I should set, maybe mixer in order to have a 4.0/4.1
audio system?

Any ideas?

Thanks,
Luciano.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGROAxVMEtfXFnOimMCWigBtmqVaoJr14U%2BvZwqHPFs4Zo%2BuQg>