From owner-freebsd-multimedia@FreeBSD.ORG Sat Feb 19 17:37:00 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8F75106566B for ; Sat, 19 Feb 2011 17:37:00 +0000 (UTC) (envelope-from Gabor@Zahemszky.HU) Received: from relay03.digicable.hu (relay03.digicable.hu [92.249.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 9BCA68FC1C for ; Sat, 19 Feb 2011 17:37:00 +0000 (UTC) Received: from [94.21.15.20] (helo=Picasso.Zahemszky.HU) by relay03.digicable.hu with esmtpa id 1Pqqjq-0007tQ-Pd for ; Sat, 19 Feb 2011 18:36:59 +0100 Date: Sat, 19 Feb 2011 18:36:58 +0100 From: Zahemszky =?ISO-8859-2?Q?G=E1bor?= To: freebsd-multimedia@freebsd.org Message-ID: <20110219183658.6ff05b78@Picasso.Zahemszky.HU> Organization: Zahemszky Bt. X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Original: 94.21.15.20 Subject: configuring snd_hda X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 17:37:00 -0000 Hi! I've got an Intel DG965SS mainboard, on it I run 8.2-RC3 - amd64. The mainb= oard has a built-in sound device, which is known to snd_hda: # sysctl hw.snd.verbose=3D2 # cat /dev/sndstat FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) Installed devices: pcm0: at cad 2 nid 1 on hdac0 kld sn= d_hda (1p:1v/1r:1v) default snddev flags=3D0x2e2 [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x000000= 04 interrupts 929, underruns 0, feed 929, ready 0 [b:4096/2048/2|bs:4096/2048= /2] channel flags=3D0x2100 {userland} -> feeder_mixer(0x00200010) -> {hardware} pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 44100/48000, fmt 0x00100010/= 0x00200010, flags 0x10000000, 0x00000069 interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:32768/1024/32] channel flags=3D0x10000000 {userland} -> feeder_root(0x00100010) -> feeder_rate(0x00100010 q:1 44100 = -> 48000) -> feeder_matrix(1.0 -> 2.0) -> feeder_volume(0x00200010) -> {har= dware} [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x0000= 0005 interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs= :4096/2048/2] channel flags=3D0x2100 {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {user= land} pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt 0x00100008, flag= s 0x10000000, 0x00000000 interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0] channel flags=3D0x10000000 {hardware} -> feeder_root(0x00000000) -> {userland} I can use the back panel speaker connector, it works. But: I cannot use the other connectors: neither back panel microphone connector nor the front panel audio connectors work. On the front, there are a green (line-out/speaker) and a pink (microphone) connectors, but neither of them work. I've just found this information in the mainboard's manual: "NOTE Some chassis still use a front panel audio solution based on the AC '97 aud= io specification. Refer to Table 7 below to connect an AC '97 front panel solu= tion to the front panel audio header on the board. The front panel audio jacks will nee= d to be manually configured for microphone or line out functionality in the Intel= =C2=AE Audio Studio application." I've read man snd_hda, and found the info about reconfiguring snd_hda, but = - I'm so sorry - I cannot understand, how can I make this soundcard to use my microphone. (I t= ested it on my laptops, and the microphone is good on these machines.) I'd like to use the muting f= unction, too: if I push the headset into the front connector, it would be better to switch o= ff the speakers in the back connectors -). I don't know, does it need, but here is the actual pindump: # sysctl dev.hdac.0.pindump=3D1 =3D=3D=3D dump =3D=3D=3D=3D hdac0: Dumping AFG cad=3D2 nid=3D1 pins: hdac0: nid 10 0x0221401f as 1 seq 15 Headphones Jack jack 1 loc 2 c= olor Green misc 0 hdac0: Caps: IN OUT HP VREF Sense: 0x00002710 delay 10us hdac0: nid 11 0x02a19040 as 4 seq 0 Mic Jack jack 1 loc 2 c= olor Pink misc 0 hdac0: Caps: IN OUT HP VREF Sense: 0x7fffffff delay 100000us hdac0: nid 12 0x400000fd as 15 seq 13 Line-out None jack 0 loc 0 c= olor Unknown misc 0 [DISABLED] hdac0: Caps: IN OUT VREF Sense: 0x00002710 delay 10us hdac0: nid 13 0x01114010 as 1 seq 0 Speaker Jack jack 1 loc 1 c= olor Green misc 0 hdac0: Caps: IN OUT HP VREF Sense: 0xffffffff delay 100000us hdac0: nid 14 0x01119012 as 1 seq 2 Speaker Jack jack 1 loc 1 c= olor Pink misc 0 hdac0: Caps: IN OUT VREF Sense: 0x0000012c delay 10us hdac0: nid 15 0x01113011 as 1 seq 1 Speaker Jack jack 1 loc 1 c= olor Blue misc 0 hdac0: Caps: IN OUT VREF Sense: 0x7fffffff delay 100000us hdac0: nid 16 0x400000fc as 15 seq 12 Line-out None jack 0 loc 0 c= olor Unknown misc 0 [DISABLED] hdac0: Caps: IN OUT Sense: 0x00002710 delay 20us hdac0: nid 17 0x400000fb as 15 seq 11 Line-out None jack 0 loc 0 c= olor Unknown misc 0 [DISABLED] hdac0: Caps: IN OUT Sense: 0x7fffffff delay 100000us hdac0: nid 18 0x400000fa as 15 seq 10 Line-out None jack 0 loc 0 c= olor Unknown misc 0 [DISABLED] hdac0: Caps: IN =20 hdac0: nid 33 0x400000f9 as 15 seq 9 Line-out None jack 0 loc 0 c= olor Unknown misc 0 [DISABLED] hdac0: Caps: OUT =20 hdac0: nid 34 0x400000ff as 15 seq 15 Line-out None jack 0 loc 0 c= olor Unknown misc 0 [DISABLED] hdac0: Caps: IN EAPD Sense: 0x00000000 hdac0: NumGPIO=3D3 NumGPO=3D0 NumGPI=3D0 GPIWake=3D1 GPIUnsol=3D1 hdac0: GPIO: data=3D0x00000000 enable=3D0x00000000 direction=3D0x00000000 hdac0: wake=3D0x00000000 unsol=3D0x00000000 sticky=3D0x00000000 =3D=3D=3D=3D Thanks G=C3=A1bor < Gabor at Zahemszky dot HU > --=20 #!/bin/ksh # # See my GPG key at http://www.Zahemszky.HU # Z=3D'21N16I25C25E30, 40M30E33E25T15U!'; IFS=3D' ABCDEFGHIJKLMNOPQRSTUVWXYZ '; set -- $Z;for i;{ [[ $i =3D ? ]]&&print $i&&break; [[ $i =3D ??? ]]&&j=3D$i&&i=3D${i%?}; typeset -i40 i=3D8#$i;print -n ${i#???}; [[ "$j" =3D ??? ]]&&print -n "${j#??} "&&j=3D;typeset +i i;}; IFS=3D' 0123456789 ';set -- $Z;for i;{ [[ $i =3D , ]]&&i=3D2; [[ $i =3D ?? ]]||typeset -l i;j=3D"$j $i";typeset +l i;};print "$j"