snd_hda, RELENG_7: mic not working

Boris Samorodov bsam at ipt.ru
Sat Apr 19 19:13:08 UTC 2008


On Sat, 19 Apr 2008 23:00:49 +0400 Boris Samorodov wrote:

> The microphone is not working. The verbose 'grep ^pcm dmesg' is here:
> ftp://ftp.ipt.ru/pub/data/pcm0.log

And just noticed at /var/log/messages (after the command 'cat
/dev/dsp0.0 > test.raw'):
-----
Apr 19 23:06:23 host kernel: chn_resizebuf: PCMDIR_REC (hardware) timeout=21 b[4096/2048/2] bs[4096/2048/2] limit=0
Apr 19 23:06:23 host kernel: sndbuf_remalloc(): b=0xacc9c200 16384 [4096] NOCHANGE
Apr 19 23:06:23 host kernel: chn_resizebuf: PCMDIR_REC (virtual) timeout=21 b[0/0/0] bs[16384/512/32] limit=1024
Apr 19 23:06:23 host kernel: chn_resizebuf: PCMDIR_REC (hardware) timeout=21 b[4096/2048/2] bs[4096/2048/2] limit=0
Apr 19 23:06:23 host kernel: chn_resizebuf: PCMDIR_REC (virtual) timeout=21 b[0/0/0] bs[16384/512/32] limit=1024
Apr 19 23:06:23 host kernel: chn_resizebuf: PCMDIR_REC (hardware) timeout=21 b[4096/2048/2] bs[4096/2048/2] limit=0
Apr 19 23:06:23 host kernel: chn_resizebuf: PCMDIR_REC (virtual) timeout=21 b[0/0/0] bs[16384/512/32] limit=0
Apr 19 23:06:23 host kernel: chn_resizebuf: PCMDIR_REC (hardware) timeout=21 b[4096/2048/2] bs[4096/2048/2] limit=0
Apr 19 23:06:23 host kernel: sndbuf_remalloc(): b=0xacc9c200 16384 [16384] NOCHANGE
Apr 19 23:06:23 host kernel: chn_resizebuf: PCMDIR_REC (virtual) timeout=21 b[0/0/0] bs[4096/128/32] limit=170
Apr 19 23:06:23 host kernel: chn_start: PCMDIR_REC (virtual) threshold i=4096 j=1
Apr 19 23:06:23 host kernel: pcm0: HDA_DEBUG: PCMDIR_REC: Stream setup nid=8 fmt=0x00000011
Apr 19 23:06:23 host kernel: pcm0: HDA_DEBUG: PCMDIR_REC: Stream setup nid=9 fmt=0x00000011
Apr 19 23:06:23 host kernel: pcm0: chn_trigger() pcm0:record:dsp0.r0: calling go=0x00000001 , prev=0xffffffff
Apr 19 23:06:23 host kernel: pcm0: chn_trigger() pcm0:virtual:dsp0.vr0: calling go=0x00000001 , prev=0xffffffff
-----

When the command was canceled:
-----
Apr 19 23:06:32 host kernel: pcm0: chn_trigger() pcm0:record:dsp0.r0: calling go=0xffffffff , prev=0x00000001
Apr 19 23:06:32 host kernel: pcm0: chn_trigger() pcm0:virtual:dsp0.vr0: calling go=0xffffffff , prev=0x00000001
Apr 19 23:06:32 host kernel: chn_resizebuf: PCMDIR_REC (hardware) timeout=21 b[4096/2048/2] bs[4096/2048/2] limit=0
Apr 19 23:06:32 host kernel: chn_resizebuf: PCMDIR_REC (virtual) timeout=21 b[0/0/0] bs[4096/128/32] limit=0
-----


> I use ASUS P5K m/b:
> -----
> % uname -a
> FreeBSD host.ipt.ru 7.0-STABLE FreeBSD 7.0-STABLE #2: Fri Apr 18 01:36:58 MSD 2008     root at host.ipt.ru:/usr/obj/usr/src/sys/HH  i386

> % mixer
> Mixer vol      is currently set to 100:100
> Mixer pcm      is currently set to 100:100
> Mixer line     is currently set to 100:100
> Mixer mic      is currently set to  90:90
> Mixer rec      is currently set to 100:100
> Recording source: mic

> % cat /dev/sndstat           
> FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
> Installed devices:
> pcm0: <Intel 82801I High Definition Audio Controller> at memory 0xfbff8000 irq 22 kld snd_hda [20071129_0050] [MPSAFE] (1p:1v/1r:1v channels duplex default)
> 	[pcm0:play:dsp0.p0]: spd 48000, fmt 0x10000010, flags 0x00101000, 0x00000020
> 	interrupts 341, underruns 0, feed 341, 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 8000/48000, fmt 0x00000008/0x10000010, flags 0x10000000, 0x00000008
> 	interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:4096/128/32]
> 	{userland} -> feeder_root(0x00000008) -> feeder_8to16(0x00000008 -> 0x00000080) -> feeder_rate(8000 -> 48000) -> feeder_monotostereo16(0x00000080 -> 0x10000080) -> feeder_sign16(0x10000080 -> 0x10000010) -> {hardware}
> 	[pcm0:record:dsp0.r0]: spd 48000, fmt 0x10000010, flags 0x00101000, 0x00000000
> 	interrupts 1041, overruns 0, feed 2082, 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 8000/48000, fmt 0x00000008/0x10000010, flags 0x10000000, 0x00000008
> 	interrupts 0, overruns 0, feed 0, hfree 0, sfree 4096 [b:0/0/0|bs:4096/128/32]
> 	{hardware} -> feeder_root(0x10000010) -> feeder_stereotomono16(0x10000010 -> 0x00000010) -> feeder_sign16(0x00000010 -> 0x00000080) -> feeder_rate(48000 -> 8000) -> feeder_16to8(0x00000080 -> 0x00000008) -> {userland}

> File Versions:
> $FreeBSD: src/sys/dev/sound/pci/hda/hdac.c,v 1.44.2.5 2007/12/15 04:06:12 ariff 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/vchan.c,v 1.36 2007/06/16 03:37:28 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/sndstat.c,v 1.28 2007/06/16 03:37:28 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/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/feeder_fmt.c,v 1.23 2007/06/02 13:07:44 joel 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/fake.c,v 1.18 2007/03/15 18:19:01 ariff Exp $
> $FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.107 2007/07/04 12:33: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/buffer.c,v 1.37 2007/06/16 03:37:27 ariff Exp $
> $FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.10.2.1 2007/10/29 18:47:27 ariff Exp $
> $FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.73.2.1 2007/10/29 18:47:47 ariff Exp $
> -----


> WBR
> -- 
> Boris Samorodov (bsam)
> Research Engineer, http://www.ipt.ru Telephone & Internet SP
> FreeBSD committer, http://www.FreeBSD.org The Power To Serve

WBR
-- 
bsam
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve


More information about the freebsd-multimedia mailing list