All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dr Nicholas J Bailey <nicholas.bailey@glasgow.ac.uk>
To: Guido Aulisi <guido.aulisi@gmail.com>
Cc: "tiwai@suse.de" <tiwai@suse.de>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Daniel Mack <zonque@gmail.com>
Subject: Re: [PATCH v2] ALSA: snd-usb-usx2y: remove bogus frame checks
Date: Mon, 7 Oct 2013 15:58:51 +0100	[thread overview]
Message-ID: <27085905.a7dazzfD9V@arial> (raw)
In-Reply-To: <1381048163.1974.5.camel@yoda.heavyware>

On Monday 07 October 2013 08:41:06 you wrote:
> Can anyone test whether the patch below works alone without the
> previous patch?  (Meanwhile, the previous patch to remove the frame
> check is fine, it's just too strict for controllers like ehci, so it's
> still fine to apply.)
> 
> 
> thanks,
> 
> Takashi
> 
> ---
> diff --git a/sound/usb/usx2y/usbusx2yaudio.c
> b/sound/usb/usx2y/usbusx2yaudio.c index 6234a51..1236ff3 100644
> --- a/sound/usb/usx2y/usbusx2yaudio.c
> +++ b/sound/usb/usx2y/usbusx2yaudio.c
> @@ -137,10 +137,12 @@ static int usX2Y_urb_play_prepare(struct
> snd_usX2Y_substream *subs, /* calculate the size of a packet */
>                 counts = cap_urb->iso_frame_desc[pack].actual_length /
> usX2Y->stride; count += counts;
> +#if 0
>                 if (counts < 43 || counts > 50) {
>                         snd_printk(KERN_ERR "should not be here with
> counts=%i\n", counts); return -EPIPE;
>                 }
> +#endif
>                 /* set up descriptor */
>                 urb->iso_frame_desc[pack].offset = pack ?
>                         urb->iso_frame_desc[pack - 1].offset +

For me, this patch alone fails in much the same way (possibly exactly the same 
way) as before the previous patch.

>From audacity (probably not much use unless you know the source code... I 
don't):

Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, 
inParams, StreamDirection_In, NULL != callback )' failed in 
'src/hostapi/alsa/pa_linux_alsa.c', line: 2092
Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, 
outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData 
)' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2764
Expression 'stream->playback.pcm' failed in 
'src/hostapi/alsa/pa_linux_alsa.c', line: 4541
Expression 'stream->playback.pcm' failed in 
'src/hostapi/alsa/pa_linux_alsa.c', line: 4541
^C


[I hit ^C because recording stalled]


nick@arial:/usr/src$ dmesg | tail
[  111.667015] usb 2-1.6.4: New USB device strings: Mfr=0, Product=0, 
SerialNumber=0
[  114.707156] Sequence Error!(hcd_frame=3 ep=8in;wait=1024,frame=0).
[  114.707156] Most probably some urb of usb-frame 1024 is still missing.
[  114.707156] Cause could be too long delays in usb-hcd interrupt handling.
[  574.566748] Sequence Error!(hcd_frame=3 ep=8in;wait=1024,frame=0).
[  574.566748] Most probably some urb of usb-frame 1024 is still missing.
[  574.566748] Cause could be too long delays in usb-hcd interrupt handling.
[  575.593918] Sequence Error!(hcd_frame=6 ep=8in;wait=1027,frame=3).
[  575.593918] Most probably some urb of usb-frame 1027 is still missing.
[  575.593918] Cause could be too long delays in usb-hcd interrupt handling.


Reverting to the previous patch, everything works fine:

[  170.252226] usb 2-1.6.4: USB disconnect, device number 5
[  173.012844] usb 2-1.6.4: new full-speed USB device number 7 using ehci-pci
[  173.105451] usb 2-1.6.4: New USB device found, idVendor=1604, 
idProduct=8006
[  173.105456] usb 2-1.6.4: New USB device strings: Mfr=0, Product=0, 
SerialNumber=0
[  175.372992] usb 2-1.6.4: USB disconnect, device number 7
[  177.109626] usb 2-1.6.4: new full-speed USB device number 8 using ehci-pci
[  177.202361] usb 2-1.6.4: New USB device found, idVendor=1604, 
idProduct=8007
[  177.202372] usb 2-1.6.4: New USB device strings: Mfr=0, Product=0, 
SerialNumber=0


[no further messages]

Best stick with the original patch then :)

Nick/.

  parent reply	other threads:[~2013-10-07 15:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-02 15:49 [PATCH v2] ALSA: snd-usb-usx2y: remove bogus frame checks Daniel Mack
2013-10-03 10:25 ` [PATCH v2] ALSA: snd-usb-usx2y: remove bogus frame checks -- SUCCESS Dr Nicholas J Bailey
2013-10-07  7:35   ` Takashi Iwai
2013-10-06  8:29 ` [PATCH v2] ALSA: snd-usb-usx2y: remove bogus frame checks Guido Aulisi
2013-10-07  7:41   ` Takashi Iwai
2013-10-07 14:58   ` Dr Nicholas J Bailey [this message]
2013-10-07 15:11     ` Daniel Mack
2013-10-07 15:35       ` Takashi Iwai
2013-10-07 15:34         ` Daniel Mack
2013-10-07 16:20           ` Dr Nicholas J Bailey
2013-10-07 16:31           ` Dr Nicholas J Bailey

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=27085905.a7dazzfD9V@arial \
    --to=nicholas.bailey@glasgow.ac.uk \
    --cc=alsa-devel@alsa-project.org \
    --cc=guido.aulisi@gmail.com \
    --cc=tiwai@suse.de \
    --cc=zonque@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.