* [PATCH] ALSA: snd-usb-usx2y: fix start frame mask
@ 2013-10-02 13:39 Daniel Mack
2013-10-02 13:48 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Mack @ 2013-10-02 13:39 UTC (permalink / raw)
To: alsa-devel; +Cc: tiwai, guido.aulisi, Daniel Mack
This patch is based on a change proposed by Guido Aulisi in a
discussion on LAU which can be followed here:
http://linuxaudio.org/mailarchive/lau/2013/5/20/200177
Cc: fzu@wemgehoertderstaat.de
Original-code-by: Guido Aulisi <guido.aulisi@gmail.com>
Tested-by: Dr Nicholas J Bailey <nicholas.bailey@glasgow.ac.uk>
Signed-off-by: Daniel Mack <zonque@gmail.com>
---
sound/usb/usx2y/usbusx2yaudio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/usb/usx2y/usbusx2yaudio.c b/sound/usb/usx2y/usbusx2yaudio.c
index 63fb521..cd16fcc 100644
--- a/sound/usb/usx2y/usbusx2yaudio.c
+++ b/sound/usb/usx2y/usbusx2yaudio.c
@@ -328,7 +328,7 @@ static void i_usX2Y_urb_complete(struct urb *urb)
usX2Y_error_urb_status(usX2Y, subs, urb);
return;
}
- if (likely((urb->start_frame & 0xFFFF) == (usX2Y->wait_iso_frame & 0xFFFF)))
+ if (likely((urb->start_frame & 0x03FF) == (usX2Y->wait_iso_frame & 0x03FF)))
subs->completed_urb = urb;
else {
usX2Y_error_sequence(usX2Y, subs, urb);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ALSA: snd-usb-usx2y: fix start frame mask
2013-10-02 13:39 [PATCH] ALSA: snd-usb-usx2y: fix start frame mask Daniel Mack
@ 2013-10-02 13:48 ` Takashi Iwai
2013-10-02 13:49 ` Daniel Mack
0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2013-10-02 13:48 UTC (permalink / raw)
To: Daniel Mack; +Cc: alsa-devel, guido.aulisi
At Wed, 2 Oct 2013 15:39:57 +0200,
Daniel Mack wrote:
>
> This patch is based on a change proposed by Guido Aulisi in a
> discussion on LAU which can be followed here:
>
> http://linuxaudio.org/mailarchive/lau/2013/5/20/200177
>
> Cc: fzu@wemgehoertderstaat.de
> Original-code-by: Guido Aulisi <guido.aulisi@gmail.com>
> Tested-by: Dr Nicholas J Bailey <nicholas.bailey@glasgow.ac.uk>
> Signed-off-by: Daniel Mack <zonque@gmail.com>
Why this fixes the issue at all?
There is no explanation in the thread.
If any, the sanity check there is simply bogus for ehci, and it'd be
better to get rid of it completely.
thanks,
Takashi
> ---
> sound/usb/usx2y/usbusx2yaudio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/usb/usx2y/usbusx2yaudio.c b/sound/usb/usx2y/usbusx2yaudio.c
> index 63fb521..cd16fcc 100644
> --- a/sound/usb/usx2y/usbusx2yaudio.c
> +++ b/sound/usb/usx2y/usbusx2yaudio.c
> @@ -328,7 +328,7 @@ static void i_usX2Y_urb_complete(struct urb *urb)
> usX2Y_error_urb_status(usX2Y, subs, urb);
> return;
> }
> - if (likely((urb->start_frame & 0xFFFF) == (usX2Y->wait_iso_frame & 0xFFFF)))
> + if (likely((urb->start_frame & 0x03FF) == (usX2Y->wait_iso_frame & 0x03FF)))
> subs->completed_urb = urb;
> else {
> usX2Y_error_sequence(usX2Y, subs, urb);
> --
> 1.8.3.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ALSA: snd-usb-usx2y: fix start frame mask
2013-10-02 13:48 ` Takashi Iwai
@ 2013-10-02 13:49 ` Daniel Mack
2013-10-03 9:59 ` Guido Aulisi
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Mack @ 2013-10-02 13:49 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel, guido.aulisi
On 02.10.2013 15:48, Takashi Iwai wrote:
> At Wed, 2 Oct 2013 15:39:57 +0200,
> Daniel Mack wrote:
>>
>> This patch is based on a change proposed by Guido Aulisi in a
>> discussion on LAU which can be followed here:
>>
>> http://linuxaudio.org/mailarchive/lau/2013/5/20/200177
>>
>> Cc: fzu@wemgehoertderstaat.de
>> Original-code-by: Guido Aulisi <guido.aulisi@gmail.com>
>> Tested-by: Dr Nicholas J Bailey <nicholas.bailey@glasgow.ac.uk>
>> Signed-off-by: Daniel Mack <zonque@gmail.com>
>
> Why this fixes the issue at all?
> There is no explanation in the thread.
I have no idea of this driver.
> If any, the sanity check there is simply bogus for ehci, and it'd be
> better to get rid of it completely.
You're right. I guess, however, that there was a reason to add the code
in the first place.
Anyway, I'll send another patch that does the removal.
Thanks,
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ALSA: snd-usb-usx2y: fix start frame mask
2013-10-02 13:49 ` Daniel Mack
@ 2013-10-03 9:59 ` Guido Aulisi
2013-10-03 14:35 ` Daniel Mack
0 siblings, 1 reply; 5+ messages in thread
From: Guido Aulisi @ 2013-10-03 9:59 UTC (permalink / raw)
To: Daniel Mack; +Cc: Takashi Iwai, alsa-devel
Hi,
I saw this thread only today.
if I remember well, that patch worked because the check wrapped around
03ff, but in the end I removed that check totally.
I haven't used my Tascam US122 since may 2013, because I work with an
RME Raydat in my studio and I used the Tascam only for live recording.
If you want, I can do some other testing on my US122.
Ciao
Guido Aulisi
2013/10/2 Daniel Mack <zonque@gmail.com>:
> On 02.10.2013 15:48, Takashi Iwai wrote:
>> At Wed, 2 Oct 2013 15:39:57 +0200,
>> Daniel Mack wrote:
>>>
>>> This patch is based on a change proposed by Guido Aulisi in a
>>> discussion on LAU which can be followed here:
>>>
>>> http://linuxaudio.org/mailarchive/lau/2013/5/20/200177
>>>
>>> Cc: fzu@wemgehoertderstaat.de
>>> Original-code-by: Guido Aulisi <guido.aulisi@gmail.com>
>>> Tested-by: Dr Nicholas J Bailey <nicholas.bailey@glasgow.ac.uk>
>>> Signed-off-by: Daniel Mack <zonque@gmail.com>
>>
>> Why this fixes the issue at all?
>> There is no explanation in the thread.
>
> I have no idea of this driver.
>
>> If any, the sanity check there is simply bogus for ehci, and it'd be
>> better to get rid of it completely.
>
> You're right. I guess, however, that there was a reason to add the code
> in the first place.
>
> Anyway, I'll send another patch that does the removal.
>
> Thanks,
> Daniel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ALSA: snd-usb-usx2y: fix start frame mask
2013-10-03 9:59 ` Guido Aulisi
@ 2013-10-03 14:35 ` Daniel Mack
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Mack @ 2013-10-03 14:35 UTC (permalink / raw)
To: Guido Aulisi; +Cc: Takashi Iwai, alsa-devel
On 03.10.2013 11:59, Guido Aulisi wrote:
> Hi,
> I saw this thread only today.
> if I remember well, that patch worked because the check wrapped around
> 03ff, but in the end I removed that check totally.
That's what the second version of my patch also does.
Next time, when detecting such problems, please consider sending a patch
to alsa-devel, so fixes make it to the users eventually :)
Thanks,
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-03 14:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02 13:39 [PATCH] ALSA: snd-usb-usx2y: fix start frame mask Daniel Mack
2013-10-02 13:48 ` Takashi Iwai
2013-10-02 13:49 ` Daniel Mack
2013-10-03 9:59 ` Guido Aulisi
2013-10-03 14:35 ` Daniel Mack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).