Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Mar 2009 13:55:20 +1030
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-multimedia@freebsd.org
Subject:   snd_hda recording in 7.1?
Message-ID:  <200903041355.28763.doconnor@gsoft.com.au>

next in thread | raw e-mail | index | archive | help
--nextPart11567349.f6e498JDhG
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,
Does anyone have sound recording via snd_hda working in 7.1?
I have a Supermicro C2SBA+ and playback works fine, but recording does not.

There are no front panel connectors, but there are jumpers on the connector
on the motherboard as per the manual.

I can record some analogue noise if I crank up 'mixer mic' and 'mixer line'=
=20
but plugging a mic into either has no effect.

hdac0: <Intel 82801I High Definition Audio Controller> mem 0xd25a0000-0xd25=
a3fff irq 16 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20090131_0127
hdac0: [ITHREAD]
hdac0: HDA Codec #2: Realtek ALC883
pcm0: <HDA Realtek ALC883 PCM #0 Analog> at cad 2 nid 1 on hdac0

cat /dev/sndstat with verbose set to 4 yields..
=46reeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)=20
Installed devices:                                   =20
pcm0: <HDA Realtek ALC883 PCM #0 Analog> at cad 2 nid 1 on hdac0 kld snd_hd=
a [MPSAFE] (1p:3v/1r:1v channels duplex default)
        [pcm0:play:dsp0.p0]: spd 48000, fmt 0x10000010, flags 0x00101020, 0=
x00000020                                      =20
        interrupts 195096, underruns 0, feed 195096, ready 0 [b:4096/2048/2=
|bs:4096/2048/2]                               =20
        {userland} -> feeder_vchan(0x10000010) -> feeder_volume(0x10000010)=
 -> {hardware}                                 =20
        pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 44100/48000, fmt 0x10=
000010, flags 0x10000000, 0x00000008           =20
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:65536/2048/3=
2]                                             =20
        {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000=
) -> {hardware}                                =20
        pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp1]: spd 44100/48000, fmt 0x10=
000010, flags 0x10007030, 0x00000008, pid 62923=20
        interrupts 0, underruns 231, feed 195096, ready 7912 [b:0/0/0|bs:81=
92/1024/8]                                     =20
        {userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000=
) -> {hardware}                                =20
        pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp2]: spd 48000, fmt 0x00000010=
/0x10000010, flags 0x10000000, 0x00000000
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:32768/1024/3=
2]
        {userland} -> feeder_root(0x00000010) -> feeder_monotostereo16(0x00=
000010 -> 0x10000010) -> {hardware}
        [pcm0:record:dsp0.r0]: spd 48000, fmt 0x10000010, flags 0x00101000,=
 0x00000000
        interrupts 445, overruns 0, feed 890, hfree 4096, sfree 4096 [b:409=
6/2048/2|bs:4096/2048/2]
        {hardware} -> feeder_root(0x10000010) -> feeder_vchan(0x10000010) -=
> {userland}
        pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 44100/48000, fmt 0x=
10000010, flags 0x10000000, 0x00000008
        interrupts 0, overruns 0, feed 0, hfree 0, sfree 65536 [b:0/0/0|bs:=
65536/2048/32]
        {hardware} -> feeder_root(0x10000010) -> feeder_rate(48000 -> 44100=
) -> {userland}

=46ile Versions:
$FreeBSD: src/sys/dev/sound/pci/hda/hdac.c,v 1.44.2.11 2009/02/04 15:02:57 =
mav Exp $
$FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.3 2005/01/06 01:43:17 imp =
Exp $
$FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.18 2007/03/15 18:19:01 ariff Exp=
 $
$FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.36 2007/06/16 03:37:28 ariff Ex=
p $
$FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.107.2.1 2008/05/28 14:45:05 ariff=
 Exp $
$FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.119 2007/06/17 19:02:05 ariff E=
xp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.23 2007/06/02 13:07:44 joe=
l Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.73.2.1 2007/10/29 18:47:47 ariff=
 Exp $
$FreeBSD: src/sys/dev/sound/pcm/sndstat.c,v 1.28 2007/06/16 03:37:28 ariff =
Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.44 2007/06/17 15:53:11 ariff E=
xp $
$FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.121.2.1 2007/12/06 05:21:39 a=
riff Exp $
$FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.61 2007/06/16 03:37:28 ariff Ex=
p $
$FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.37 2007/06/16 03:37:27 ariff E=
xp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_volume.c,v 1.6 2007/06/16 20:36:39 a=
riff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.23 2007/06/16 03:37:28 ar=
iff Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.10.2.1 2007/10/29 18:47:27=
 ariff Exp $

I have the following mixer settings..
test:~>mixer
Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to  75:75
Mixer speaker  is currently set to  75:75
Mixer line     is currently set to 100:100
Mixer mic      is currently set to 100:100
Mixer mix      is currently set to   0:0
Mixer rec      is currently set to  80:80
Mixer monitor  is currently set to  75:75
Recording source: mic

Here is a pindump..
hdac0: Dumping AFG cad=3D2 nid=3D1 pins:
hdac0:  nid 20 0x01014010 as  1 seq  0      Line-out  Jack jack  1 loc  1 c=
olor   Green misc 0
hdac0:        Caps: IN OUT HP           Sense: 0x80000000
hdac0:  nid 21 0x01011012 as  1 seq  2      Line-out  Jack jack  1 loc  1 c=
olor   Black misc 0
hdac0:        Caps: IN OUT HP           Sense: 0x00000000
hdac0:  nid 22 0x01016011 as  1 seq  1      Line-out  Jack jack  1 loc  1 c=
olor  Orange misc 0
hdac0:        Caps: IN OUT HP           Sense: 0x00000000
hdac0:  nid 23 0x01012014 as  1 seq  4      Line-out  Jack jack  1 loc  1 c=
olor    Grey misc 0
hdac0:        Caps: IN OUT HP           Sense: 0x00000000
hdac0:  nid 24 0x01a19830 as  3 seq  0           Mic  Jack jack  1 loc  1 c=
olor    Pink misc 8
hdac0:        Caps: IN OUT HP      VREF Sense: 0x80000000
hdac0:  nid 25 0x02a1983f as  3 seq 15           Mic  Jack jack  1 loc  2 c=
olor    Pink misc 8
hdac0:        Caps: IN OUT HP      VREF Sense: 0x00000000
hdac0:  nid 26 0x01813031 as  3 seq  1       Line-in  Jack jack  1 loc  1 c=
olor    Blue misc 0
hdac0:        Caps: IN OUT HP      VREF Sense: 0x00000000
hdac0:  nid 27 0x0221401f as  1 seq 15    Headphones  Jack jack  1 loc  2 c=
olor   Green misc 0
hdac0:        Caps: IN OUT HP      VREF Sense: 0x00000000
hdac0:  nid 28 0x593301f0 as 15 seq  0            CD  None jack  3 loc 25 c=
olor Unknown misc 1 [DISABLED]
hdac0:        Caps: IN
hdac0:  nid 30 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 c=
olor   Black misc 1 [DISABLED]
hdac0:        Caps:    OUT
hdac0:  nid 31 0x411111f0 as 15 seq  0       Speaker  None jack  1 loc  1 c=
olor   Black misc 1 [DISABLED]
hdac0:        Caps: IN
hdac0: NumGPIO=3D2 NumGPO=3D0 NumGPI=3D0 GPIWake=3D0 GPIUnsol=3D1
hdac0: GPIO: data=3D0x00000000 enable=3D0x00000000 direction=3D0x00000000
hdac0:       wake=3D0x00000000  unsol=3D0x00000000    sticky=3D0x00000000

Any ideas? :)

=2D-=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


--nextPart11567349.f6e498JDhG
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQBJrfSh5ZPcIHs/zowRAgerAKCeP9aO7ik6ehNqu7xDux+6mkUKlQCeMKBo
7dxhVru21dI/vuD5guBlS6I=
=S7z1
-----END PGP SIGNATURE-----

--nextPart11567349.f6e498JDhG--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903041355.28763.doconnor>