snd_hda recording in 7.1?
Daniel O'Connor
doconnor at gsoft.com.au
Tue Mar 3 19:57:48 PST 2009
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'
but plugging a mic into either has no effect.
hdac0: <Intel 82801I High Definition Audio Controller> mem 0xd25a0000-0xd25a3fff 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..
FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
Installed devices:
pcm0: <HDA Realtek ALC883 PCM #0 Analog> at cad 2 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:3v/1r:1v channels duplex default)
[pcm0:play:dsp0.p0]: spd 48000, fmt 0x10000010, flags 0x00101020, 0x00000020
interrupts 195096, underruns 0, feed 195096, ready 0 [b:4096/2048/2|bs:4096/2048/2]
{userland} -> feeder_vchan(0x10000010) -> feeder_volume(0x10000010) -> {hardware}
pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 44100/48000, fmt 0x10000010, flags 0x10000000, 0x00000008
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:65536/2048/32]
{userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware}
pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp1]: spd 44100/48000, fmt 0x10000010, flags 0x10007030, 0x00000008, pid 62923
interrupts 0, underruns 231, feed 195096, ready 7912 [b:0/0/0|bs:8192/1024/8]
{userland} -> feeder_root(0x10000010) -> feeder_rate(44100 -> 48000) -> {hardware}
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/32]
{userland} -> feeder_root(0x00000010) -> feeder_monotostereo16(0x00000010 -> 0x10000010) -> {hardware}
[pcm0:record:dsp0.r0]: spd 48000, fmt 0x10000010, flags 0x00101000, 0x00000000
interrupts 445, overruns 0, feed 890, hfree 4096, sfree 4096 [b:4096/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 0x10000010, 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}
File 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 Exp $
$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 Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.23 2007/06/02 13:07:44 joel 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 Exp $
$FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.121.2.1 2007/12/06 05:21:39 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.61 2007/06/16 03:37:28 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.37 2007/06/16 03:37:27 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_volume.c,v 1.6 2007/06/16 20:36:39 ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.23 2007/06/16 03:37:28 ariff 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=2 nid=1 pins:
hdac0: nid 20 0x01014010 as 1 seq 0 Line-out Jack jack 1 loc 1 color 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 color 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 color 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 color Grey misc 0
hdac0: Caps: IN OUT HP Sense: 0x00000000
hdac0: nid 24 0x01a19830 as 3 seq 0 Mic Jack jack 1 loc 1 color 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 color 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 color 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 color 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 color Unknown misc 1 [DISABLED]
hdac0: Caps: IN
hdac0: nid 30 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED]
hdac0: Caps: OUT
hdac0: nid 31 0x411111f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED]
hdac0: Caps: IN
hdac0: NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdac0: GPIO: data=0x00000000 enable=0x00000000 direction=0x00000000
hdac0: wake=0x00000000 unsol=0x00000000 sticky=0x00000000
Any ideas? :)
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20090304/0181054a/attachment.pgp
More information about the freebsd-multimedia
mailing list