Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 2008 15:38:06 +0200
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        freebsd-multimedia@freebsd.org
Subject:   uaudio : channel dead
Message-ID:  <485FA73E.9010105@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi list,

I've seen several people having the same problem I'm having on the
lists. However, I couldn't find a solution :-(

Here's the facts:
Just bought a new USB headset [1]. This one uses snd_uaudio. Playback is
great, but recording / mic in doesn't work:

uaudio0: <vendor 0x0d8c C-Media USB Headphone Set, class 0/0, rev
1.10/1.00, addr 3> on uhub0
uaudio0: audio rev 1.00
pcm0: <USB Audio> on uaudio0
pcm0:virtual:dsp1.vr0: record interrupt timeout, channel dead
pcm0:virtual:dsp1.vp0: play interrupt timeout, channel dead

Here are a few debugging information.

| uname -a
FreeBSD gahrtop.localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Jun 23
09:43:28 CEST 2008
root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034  i386

| sysctl hw.snd dev.pcm
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_formats: 1
hw.snd.compat_linux_mmap: 0
hw.snd.feeder_buffersize: 16384
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.verbose: 3
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2007061600/i386
hw.snd.default_auto: 0
dev.pcm.0.%desc: USB Audio
dev.pcm.0.%driver: pcm
dev.pcm.0.%parent: uaudio0
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanformat: s16le
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanformat: s16le
dev.pcm.0.buffersize: 16384

| cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: <USB Audio> at ? kld snd_uaudio [GIANT] (1p:1v/1r:1v channels
duplex default)
~        mode 1:(output) 2ch, 16/16bit, pcm, 48000,44100Hz
~        mode 1:(input) 1ch, 16/16bit, pcm, 48000,44100Hz
~        [pcm0:play:dsp0.p0]: spd 48000, fmt 0x10000010, flags
0x00101000, 0x00000020
~        interrupts 0, underruns 0, feed 0, ready 0
[b:16384/2048/8|bs:16384/8192/2]
~        {userland} -> feeder_vchan(0x10000010) ->
feeder_volume(0x10000010) -> {hardware}
~        pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 0, fmt
0x00000000/0x00000008, flags 0x10000000, 0x00000000
~        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
~        {userland} -> feeder_root(0x00000000) -> {hardware}
~        [pcm0:record:dsp0.r0]: spd 48000, fmt 0x10000010/0x00000010,
flags 0x00101000, 0x00000000
~        interrupts 0, overruns 0, feed 0, hfree 16384, sfree 32768
[b:16384/1024/16|bs:32768/16384/2]
~        {hardware} -> feeder_root(0x00000010) ->
feeder_monotostereo16(0x00000010 -> 0x10000010) ->
feeder_vchan(0x10000010) -> {userland}
~        pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 0, fmt
0x00000000/0x00000008, flags 0x10000000, 0x00000000
~        interrupts 0, overruns 0, feed 0, hfree 0, sfree 0
[b:0/0/0|bs:0/0/0]
~        {hardware} -> feeder_root(0x00000000) -> {userland}

File Versions:
$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.109 2008/05/27 02:16:05 ariff
Exp $
$FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.122 2007/12/03 14:26:56
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.11 2007/10/26 20:49:23
ariff Exp $
$FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.74 2007/10/26 20:49:59 ariff
Exp $

| usbdevs -v | grep Headphone
~ port 2 addr 3: full speed, power 100 mA, config 1, C-Media USB
Headphone Set(0x000c), vendor 0x0d8c(0x0d8c), rev 1.00


I would greatly like to get this headset working, so any hint is appreciatd!

P.S. CC me since I'm not on the list

[1] http://www.trust.com/products/product_detail.aspx?item=14734

- --
Pietro Cerutti
gahr@FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhfpz0ACgkQwMJqmJVx947xRACghQJM52MH3zl5WtLybl7jGMC4
MjcAniVeIgftOJVwytt2k/kv3+7Aa1dG
=nDp6
-----END PGP SIGNATURE-----



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