Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2010, 04:32 AM
carlosalvet carlosalvet is offline
Junior Member
 
Join Date: Sep 2010
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default 5.1 audio channels in PC- BSD
Hi I am new in Free BSD so that I am using PC-BSD for comfort.

Before i was using Ubuntu and i decided for this SO thinking in more stable system.

I have a 5.1 audio channel speakers and i don't know how to configure them in my PC-BSD i could read about a virtual channel but i didn't understand very well. Someone can tell me how can i do to has my 5.1 audio channel output working very well?

thanks before hand!
Reply With Quote
  #2  
Old 09-17-2010, 07:52 AM
carlosalvet carlosalvet is offline
Junior Member
 
Join Date: Sep 2010
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default i had been reading and found this
in this page http://www.freebsd.org/cgi/man.cgi?q...eBSD+8-current i found a several steps

Code:
cat /etc/sndstat

FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <HDA Realtek ALC885 PCM #0 Analog> (play/rec) default
pcm1: <HDA Realtek ALC885 PCM #1 Analog> (play/rec)
pcm2: <HDA Realtek ALC885 PCM #2 Digital> (play/rec)
my sound driver is: snd_hda_load="YES"

it says in

http://www.freebsd.org/cgi/man.cgi?q...eBSD+8-current

and I added this control in /etc/sysctl.conf with:

Code:
snd_hda_load="YES"
and then add the hints to start in the reboot
Code:
           hint.pcm.0.at="isa"
           hint.pcm.0.irq="5"
           hint.pcm.0.drq="1"
           hint.pcm.0.flags="0x0"
and with the hints the sound drivers crash so after reboot the devices are undetected and i can't continue

in the first link following the instructions found with this hints added.

Code:
#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.nid21.config="as=2 seq=0"
what's the meaning of "nid #" or where can i read about these? why 20,24 and 26? which may i use?

here is the data sheet of my sound card realtek ALC889

http://www.realtek.com.tw/downloads/...Downloads=true

I am really looking for information to my problem.

with this hints the 3th device is lost it and the SO recognize 2 sound drivers divece #0 and #1 but it doesn't care because these don't play any sound, just follow the song with play and without any sound.

thanks before hand!

Last edited by carlosalvet; 09-18-2010 at 09:47 PM.
Reply With Quote
  #3  
Old 09-19-2010, 05:13 AM
carlosalvet carlosalvet is offline
Junior Member
 
Join Date: Sep 2010
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default more advance
using this driver hda i can play 2.1 channel audio.

i read in datasheet and i can play the front principal channel 2.1, but the other 2 jack don't work.

i found this:

FRONT (Port D); Pin: 35.36; Location: Rear Panel; Front Channel Line Output and Amplified Output
SURR (Port A); Pin: 39,41; Location: Rear Panel; Surround Channel Line Output
CENTER/LFE(Port-G); Pin: 43,44; Location: Rear Panel; Center and Low Frecuency Channel Line Output
SIDE(Port-H); Pin: 45,46; Location: Rear Panel;Side Surround Chanel Output
MIC1(Port-B); Pin: 21,22; Location: Rear Panel; Analog Microphone Input
LINE1(Port-C); Pin: 21,24; Location: Rear Panel;Analog Line Output
LINE2(Port-E); Pin: 14,15; Location: Front Panel; Re-Tasking Jack Support Headphone Out (Default), Microphone Input and Line Input
MIC2(Port-F); Pin: 16,17; Location: Front Panel; Re-Tasking Jack Support Microphone Input (Default), Microphone Input and Line Input and Headphone Output

configuring my hints only could set up my front channel with

Code:
hint.hdac.0.cad0.nid35.config="as=1 seq=0 device = Line-out"
treat with
Code:
hint.hdac.0.cad0.nid35.config="as=1 seq=0 device = Line-out"
hint.hdac.0.cad0.nid14.config="as=1 seq=1 device = Line-out"
hint.hdac.0.cad0.nid39.config="as=1 seq=2 device = Line-out"
with no positive results just work 2.1 audio channels and no more.
Reply With Quote
  #4  
Old 09-19-2010, 07:40 PM
Fatmice's Avatar
Fatmice Fatmice is offline
Senior Member
 
Join Date: Feb 2008
Location: US
Posts: 887
Thanks: 0
Thanked 0 Times in 0 Posts
Default
You need to read the snd_hda man pages closer. It tells you what the nid# means.

More importantly, you shouldn't really need to mess with them. They are there to provide override to BIOS provided values.

You should get a verbose dmesg first to see what those are. Enable verbose as root by
Code:
echo 'boot_verbose="YES"' >> /boot/loader.conf
. After boot,
Code:
dmesg | grep hdac
and post it here. Also include the pcmX lines.

I've never setup 5.1 sound but maybe we can muddle through this.

*If you do not want to modify loader.conf then choose option number 5 to boot with verbose messages turned on. When the machine has booted, use the grep utility to find startup messages related to the sound system
__________________
|================================================= =====|
|Please search the forum prior to posting. Intellectual laziness is not nice. | (Does not apply to non-offenders =))
|================================================= =====|

Last edited by Fatmice; 09-19-2010 at 07:49 PM.
Reply With Quote
  #5  
Old 09-21-2010, 01:49 AM
carlosalvet carlosalvet is offline
Junior Member
 
Join Date: Sep 2010
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default i found this in mseg
i did the
Code:
echo 'boot_verbose="YES"' >> /boot/loader.conf
like says in your last post and then search with dmesg and find this, I think that is good information for that

Code:
# dmesg
+--------------------------------------+
pcm0: | DUMPING PCM Playback/Record Channels |
pcm0: +--------------------------------------+
pcm0: 
pcm0: Playback:
pcm0: 
pcm0:      Stream cap: 0x00000001
pcm0:                  PCM
pcm0:         PCM cap: 0x000e0560
pcm0:                  16 20 24 bits, 44 48 96 192 KHz
pcm0:             DAC: 2 3 4 5
pcm0: 
pcm0: Record:
pcm0: 
pcm0:      Stream cap: 0x00000001
pcm0:                  PCM
pcm0:         PCM cap: 0x000e0560
pcm0:                  16 20 24 bits, 44 48 96 192 KHz
pcm0:             ADC: 7
pcm0: 
pcm0: +-------------------------------+
pcm0: | DUMPING Playback/Record Paths |
pcm0: +-------------------------------+
pcm0: 
pcm0: Playback:
pcm0: 
pcm0:     nid=20 [pin: Line-out (Green Jack)]
pcm0:       |
pcm0:       + <- nid=12 [audio mixer] [src: pcm, mix]
pcm0:              |
pcm0:              + <- nid=2 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
pcm0: 
pcm0:     nid=22 [pin: Line-out (Orange Jack)]
pcm0:       |
pcm0:       + <- nid=13 [audio mixer] [src: pcm, mix]
pcm0:              |
pcm0:              + <- nid=3 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
pcm0: 
pcm0:     nid=21 [pin: Line-out (Black Jack)]
pcm0:       |
pcm0:       + <- nid=14 [audio mixer] [src: pcm, mix]
pcm0:              |
pcm0:              + <- nid=4 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
pcm0: 
pcm0:     nid=23 [pin: Line-out (Grey Jack)]
pcm0:       |
pcm0:       + <- nid=15 [audio mixer] [src: pcm, mix]
pcm0:              |
pcm0:              + <- nid=5 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
Reply With Quote
  #6  
Old 09-21-2010, 01:52 AM
carlosalvet carlosalvet is offline
Junior Member
 
Join Date: Sep 2010
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default and with pcbsd-2342] ~> dmesg | grep hdac
[/code]
hdac0: <ATI SB600 High Definition Audio Controller> mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: Reserved 0x4000 bytes for rid 0x10 type 3 at 0xfe024000
hdac0: [MPSAFE]
hdac0: [ITHREAD]
hdac0: Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256
hdac0: Probing codec #0...
hdac0: HDA Codec #0: Realtek ALC885
hdac0: HDA Codec ID: 0x10ec0885
hdac0: Vendor: 0x10ec
hdac0: Device: 0x0885
hdac0: Revision: 0x01
hdac0: Stepping: 0x01
hdac0: PCI Subvendor: 0xa0021458
hdac0: Found audio FG nid=1 startnode=2 endnode=39 total=37
hdac0:
hdac0: Processing audio FG cad=0 nid=1...
hdac0: GPIO: 0x40000002 NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdac0: nid 20 0x01014410 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 4
hdac0: nid 21 0x01011412 as 1 seq 2 Line-out Jack jack 1 loc 1 color Black misc 4
hdac0: nid 22 0x01016411 as 1 seq 1 Line-out Jack jack 1 loc 1 color Orange misc 4
hdac0: nid 23 0x01012414 as 1 seq 4 Line-out Jack jack 1 loc 1 color Grey misc 4
hdac0: nid 24 0x01a19c40 as 4 seq 0 Mic Jack jack 1 loc 1 color Pink misc 12
hdac0: nid 25 0x02a19c50 as 5 seq 0 Mic Jack jack 1 loc 2 color Pink misc 12
hdac0: nid 26 0x0181344f as 4 seq 15 Line-in Jack jack 1 loc 1 color Blue misc 4
hdac0: nid 27 0x02214c20 as 2 seq 0 Headphones Jack jack 1 loc 2 color Green misc 12
hdac0: nid 28 0x593301f0 as 15 seq 0 CD None jack 3 loc 25 color Unknown misc 1
hdac0: Patching widget caps nid=29 0x00400000 -> 0x00700000
hdac0: nid 30 0x014b6130 as 3 seq 0 SPDIF-out Jack jack 11 loc 1 color Orange misc 1
hdac0: nid 31 0x01cb7160 as 6 seq 0 SPDIF-in Jack jack 11 loc 1 color Yellow misc 1
hdac0: Patched pins configuration:
hdac0: nid 20 0x01014410 as 1 seq 0 Line-out Jack jack 1 loc 1 color Green misc 4
hdac0: nid 21 0x01011412 as 1 seq 2 Line-out Jack jack 1 loc 1 color Black misc 4
hdac0: nid 22 0x01016411 as 1 seq 1 Line-out Jack jack 1 loc 1 color Orange misc 4
hdac0: nid 23 0x01012414 as 1 seq 4 Line-out Jack jack 1 loc 1 color Grey misc 4
hdac0: nid 24 0x01a19c40 as 4 seq 0 Mic Jack jack 1 loc 1 color Pink misc 12
hdac0: nid 25 0x02a19c50 as 5 seq 0 Mic Jack jack 1 loc 2 color Pink misc 12
hdac0: nid 26 0x0181344f as 4 seq 15 Line-in Jack jack 1 loc 1 color Blue misc 4
hdac0: nid 27 0x02214c20 as 2 seq 0 Headphones Jack jack 1 loc 2 color Green misc 12
hdac0: nid 28 0x593301f0 as 15 seq 0 CD None jack 3 loc 25 color Unknown misc 1 [DISABLED]
hdac0: nid 30 0x014b6130 as 3 seq 0 SPDIF-out Jack jack 11 loc 1 color Orange misc 1
hdac0: nid 31 0x01cb7160 as 6 seq 0 SPDIF-in Jack jack 11 loc 1 color Yellow misc 1
hdac0: 6 associations found:
hdac0: Association 0 (1) out:
hdac0: Pin nid=20 seq=0
hdac0: Pin nid=22 seq=1
hdac0: Pin nid=21 seq=2
hdac0: Pin nid=23 seq=4
hdac0: Association 1 (2) out:
hdac0: Pin nid=27 seq=0
hdac0: Association 2 (3) out:
hdac0: Pin nid=30 seq=0
hdac0: Association 3 (4) in:
hdac0: Pin nid=24 seq=0
hdac0: Pin nid=26 seq=15
hdac0: Association 4 (5) in:
hdac0: Pin nid=25 seq=0
hdac0: Association 5 (6) in:
hdac0: Pin nid=31 seq=0
hdac0: Tracing association 0 (1)
hdac0: Pin 20 traced to DAC 2
hdac0: Pin 22 traced to DAC 3
hdac0: Pin 21 traced to DAC 4
hdac0: Pin 23 traced to DAC 5
hdac0: Association 0 (1) trace succeeded
hdac0: Tracing association 1 (2)
hdac0: Pin 27 traced to DAC 37
hdac0: Association 1 (2) trace succeeded
hdac0: Tracing association 2 (3)
hdac0: Pin 30 traced to DAC 6
hdac0: Association 2 (3) trace succeeded
hdac0: Tracing association 3 (4)
hdac0: Pin 24 traced to ADC 7
hdac0: Pin 26 traced to ADC 7
hdac0: Association 3 (4) trace succeeded
hdac0: Tracing association 4 (5)
hdac0: Pin 25 traced to ADC 8
hdac0: Association 4 (5) trace succeeded
hdac0: Tracing association 5 (6)
hdac0: Unable to trace pin 31 to ADC 9, undo traces
hdac0: Pin 31 traced to ADC 10
hdac0: Association 5 (6) trace succeeded
hdac0: Tracing input monitor
hdac0: Tracing nid 11 to out
hdac0: nid 11 is input monitor
hdac0: Tracing nid 35 to out
hdac0: Tracing nid 36 to out
hdac0: Tracing other input monitors
hdac0: Tracing nid 24 to out
hdac0: Tracing nid 25 to out
hdac0: Tracing nid 26 to out
hdac0: Tracing nid 31 to out
hdac0: Tracing beeper
hdac0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref
[/code]

the result of
Code:
dmesg | grep hdac
is so extended and to post it is most than 10000 characters which is permited, you neet to see somthing in special or post it everything

Last edited by carlosalvet; 09-21-2010 at 01:57 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.