On Fri, Feb 24, 2012 at 07:39:19PM +0100, Gregor Pintar wrote:
> Hello.
>
> My Creative Sound Blaster X-Fi HD USB sound card doesn't work on OpenBSD 5.0.
> uaudio reports "sync ep address mismatch".
> Using my patch it works. But there is still no sound with default 44100Hz
> rate.
> All other rates works fine.
>
> patch (for revision 1.95):
> --- uaudio.c Tue Jan 31 21:13:32 2012
> +++ uaudio.c Fri Feb 24 19:49:47 2012
> @@ -1768,7 +1768,7 @@
> sc->sc_dev.dv_xname);
> return (USBD_NORMAL_COMPLETION);
> }
> - if (sync_addr && sync_ed->bEndpointAddress != sync_addr) {
> + if (sync_addr && UE_GET_ADDR(sync_ed->bEndpointAddress) !=
> sync_addr) {
> printf("%s: sync ep address mismatch\n",
> sc->sc_dev.dv_xname);
> return (USBD_NORMAL_COMPLETION);
>
Good catch! Let me just check if this doesn't break devices that
currently work by accident before i commit it. Thanks!
-- Alexandre