From: Takashi Iwai <tiwai@suse.de>
To: nitic@gmx.net
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: snd-usb-audio help
Date: Fri, 14 Feb 2003 18:50:09 +0100 [thread overview]
Message-ID: <s5hy94iiwfi.wl@alsa2.suse.de> (raw)
In-Reply-To: <3E4D276B.3050502@gmx.net>
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
At Fri, 14 Feb 2003 18:29:15 +0100,
nitic wrote:
>
> hello takashi,
>
> thanks for the quick response.i've attached the wished files :)
could you try the attached patch?
(it's to the cvs version.)
Takashi
[-- Attachment #2: usb-platonic-fix.dif --]
[-- Type: application/octet-stream, Size: 1462 bytes --]
Index: alsa-kernel/usb/usbaudio.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/usb/usbaudio.c,v
retrieving revision 1.46
diff -u -r1.46 usbaudio.c
--- alsa-kernel/usb/usbaudio.c 14 Feb 2003 17:36:00 -0000 1.46
+++ alsa-kernel/usb/usbaudio.c 14 Feb 2003 17:48:17 -0000
@@ -1051,7 +1051,7 @@
}
/* create a data pipe */
- ep = get_endpoint(alts, 0)->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK;
+ ep = fmt->endpoint & USB_ENDPOINT_NUMBER_MASK;
if (is_playback)
subs->datapipe = usb_sndisocpipe(dev, ep);
else
@@ -1062,9 +1062,16 @@
subs->fill_max = 0;
/* we need a sync pipe in async OUT or adaptive IN mode */
- attr = get_endpoint(alts, 0)->bmAttributes & EP_ATTR_MASK;
+ attr = fmt->ep_attr & EP_ATTR_MASK;
if ((is_playback && attr == EP_ATTR_ASYNC) ||
(! is_playback && attr == EP_ATTR_ADAPTIVE)) {
+ /*
+ * QUIRK: plantronics headphone has adaptive-in
+ * although it's really not...
+ */
+ if (dev->descriptor.idVendor == 0x047f &&
+ dev->descriptor.idProduct == 0x0ca1)
+ goto _ok;
/* check endpoint */
if (altsd->bNumEndpoints < 2 ||
get_endpoint(alts, 1)->bmAttributes != 0x01 ||
@@ -1088,6 +1095,7 @@
subs->syncinterval = get_endpoint(alts, 1)->bRefresh;
}
+ _ok:
if ((err = init_usb_pitch(dev, subs->interface, alts, fmt)) < 0 ||
(err = init_usb_sample_rate(dev, subs->interface, alts, fmt,
runtime->rate)) < 0)
prev parent reply other threads:[~2003-02-14 17:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3E4BF7EE.9030401@gmx.net>
2003-02-14 11:47 ` snd-usb-audio help Takashi Iwai
[not found] ` <3E4D276B.3050502@gmx.net>
2003-02-14 17:50 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hy94iiwfi.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=nitic@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox