Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Dec 2004 14:22:08 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Tilman Linneweh <arved@freebsd.org>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: Latest uaudio commits break Logitech USB Headset
Message-ID:  <41D47F90.1080500@elischer.org>
In-Reply-To: <20041229105800.GS687@arved.at>
References:  <20041229105800.GS687@arved.at>

next in thread | previous in thread | raw e-mail | index | archive | help


Tilman Linneweh wrote:

>Hi,
>
>I just updated to yesterdays CURRENT to try the latest changes to uaudio
>with my Logitech USB headset.
>RELENG_4,5 panic if the device is plugged in on boot, but sound works
>if it is plugged in later.
>
>CURRENT now doesn't panic anmyore, but the device doesn't work anymore:
>
>Here is an excerpt of the USB/pcm components on my system:
>
>uhci0: <VIA 83C572 USB controller> port 0xb400-0xb41f irq 21 at device 16.0 on pci0
>uhci0: [GIANT-LOCKED]
>usb0: <VIA 83C572 USB controller> on uhci0
>usb0: USB revision 1.0
>uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub0: 2 ports with 2 removable, self powered
>ums0: Logitech USB-PS/2 Mouse M-BA47, rev 1.00/1.10, addr 2, iclass 3/1
>ums0: 4 buttons and Z dir.
>uhci1: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 21 at device 16.1 on pci0
>uhci1: [GIANT-LOCKED]
>usb1: <VIA 83C572 USB controller> on uhci1
>usb1: USB revision 1.0
>uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub1: 2 ports with 2 removable, self powered
>uhci2: <VIA 83C572 USB controller> port 0xc000-0xc01f irq 21 at device 16.2 on pci0
>uhci2: [GIANT-LOCKED]
>usb2: <VIA 83C572 USB controller> on uhci2
>usb2: USB revision 1.0
>uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub2: 2 ports with 2 removable, self powered
>uaudio0: Logitech Logitech USB Headset, rev 1.10/1.13, addr 2
>uaudio0: audio rev 1.00
>pcm0: <USB Audio> on uaudio0
>pcm0: chn_init(pcm0:play:0) failed: err = 19
>pcm0: pcm_chn_create(ua_chan, 1, 0xffffff003d8ef600) failed
>pcm0: chn_init(pcm0:record:0) failed: err = 19
>pcm0: pcm_chn_create(ua_chan, -1, 0xffffff003d8ef600) failed
>uhid0: Logitech Logitech USB Headset, rev 1.10/1.13, addr 2, iclass 1/1
>uhci3: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 21 at device 16.3 on pci0
>uhci3: [GIANT-LOCKED]
>usb3: <VIA 83C572 USB controller> on uhci3
>usb3: USB revision 1.0
>uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
>uhub3: 2 ports with 2 removable, self powered
>ucom0: Prolific Technology PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 1.10/2.02, addr 2
>ehci0: <VIA VT6202 USB 2.0 controller> mem 0xcff00000-0xcff000ff irq 21 at device 16.4 on pci0
>ehci0: [GIANT-LOCKED]
>ehci_pci_attach: companion usb0
>ehci_pci_attach: companion usb1
>ehci_pci_attach: companion usb2
>ehci_pci_attach: companion usb3
>usb4: EHCI version 1.0
>usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
>usb4: <VIA VT6202 USB 2.0 controller> on ehci0
>usb4: USB revision 2.0
>uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
>uhub4: single transaction translator
>uhub4: 8 ports with 8 removable, self powered
>pcm1: <VIA VT8237> port 0xc800-0xc8ff irq 22 at device 17.5 on pci0
>pcm1: [GIANT-LOCKED]
>pcm1: <Analog Devices AD1980 AC97 Codec>
>ums0: at uhub0 port 1 (addr 2) disconnected
>ums0: detached
>uaudio0: at uhub2 port 2 (addr 2) disconnected
>pcm0: detached
>uaudio0: detached
>uhid0: at uhub2 port 2 (addr 2) disconnected
>uhid0: detached
>ucom0: at uhub3 port 1 (addr 2) disconnected
>All threads purged from cuaU0
>All threads purged from ttyU0
>ucom0: detached
>ums0: Logitech USB-PS/2 Mouse M-BA47, rev 1.00/1.10, addr 2, iclass 3/1
>ums0: 4 buttons and Z dir.
>ucom0: Prolific Technology PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 1.10/2.02, addr 2
>uaudio0: Logitech Logitech USB Headset, rev 1.10/1.13, addr 2
>uaudio0: audio rev 1.00
>pcm0: <USB Audio> on uaudio0
>pcm0: chn_init(pcm0:play:0) failed: err = 19
>pcm0: pcm_chn_create(ua_chan, 1, 0xffffff0000e3b500) failed
>pcm0: chn_init(pcm0:record:0) failed: err = 19
>pcm0: pcm_chn_create(ua_chan, -1, 0xffffff0000e3b500) failed
>uhid0: Logitech Logitech USB Headset, rev 1.10/1.13, addr 2, iclass 1/1
>
>If I disconnect the device and reconnect it, i get the following:
>
>uaudio0: at uhub2 port 2 (addr 2) disconnected
>pcm0: unregister: mixer busy
>pcm0: unregister: mixer busy
>uhid0: at uhub2 port 2 (addr 2) disconnected
>uhid0: detached
>uaudio1: Logitech Logitech USB Headset, rev 1.10/1.13, addr 2
>uaudio1: audio rev 1.00
>pcm2: <USB Audio> on uaudio1
>pcm2: chn_init(pcm2:play:0) failed: err = 19
>pcm2: pcm_chn_create(ua_chan, 1, 0xffffff002347a900) failed
>pcm2: chn_init(pcm2:record:0) failed: err = 19
>pcm2: pcm_chn_create(ua_chan, -1, 0xffffff002347a900) failed
>uhid0: Logitech Logitech USB Headset, rev 1.10/1.13, addr 2, iclass 1/1
>


can you try the following patch?
(apply by hand)

--- patch begins here ---
--- src/sys/dev/sound/usb/uaudio_pcm.c.orig	Sun Oct 31 02:56:01 2004
+++ src/sys/dev/sound/usb/uaudio_pcm.c	Thu Dec  9 04:21:10 2004

@@ -58,7 +58,7 @@
 
 static struct pcmchan_caps ua_reccaps = {8000, 48000, ua_recfmt, 0};
 
-#define UAUDIO_PCM_BUFF_SIZE	16*1024
+#define UAUDIO_PCM_BUFF_SIZE	(16*1024-1)
 
 /************************************************************/
 static void *
--- patch ends here ---


>
>regards
>tilman
>_______________________________________________
>freebsd-usb@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-usb
>To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"
>  
>



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