From owner-freebsd-usb@FreeBSD.ORG Thu Dec 30 22:22:09 2004 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03E1716A4CE; Thu, 30 Dec 2004 22:22:09 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79EAE43D31; Thu, 30 Dec 2004 22:22:08 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 6BE7B7A403; Thu, 30 Dec 2004 14:22:08 -0800 (PST) Message-ID: <41D47F90.1080500@elischer.org> Date: Thu, 30 Dec 2004 14:22:08 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Tilman Linneweh References: <20041229105800.GS687@arved.at> In-Reply-To: <20041229105800.GS687@arved.at> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Latest uaudio commits break Logitech USB Headset X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2004 22:22:09 -0000 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: port 0xb400-0xb41f irq 21 at device 16.0 on pci0 >uhci0: [GIANT-LOCKED] >usb0: 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: port 0xb800-0xb81f irq 21 at device 16.1 on pci0 >uhci1: [GIANT-LOCKED] >usb1: 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: port 0xc000-0xc01f irq 21 at device 16.2 on pci0 >uhci2: [GIANT-LOCKED] >usb2: 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: 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: port 0xc400-0xc41f irq 21 at device 16.3 on pci0 >uhci3: [GIANT-LOCKED] >usb3: 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: 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: 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: port 0xc800-0xc8ff irq 22 at device 17.5 on pci0 >pcm1: [GIANT-LOCKED] >pcm1: >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: 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: 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" > >