[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E5B9CB0.4090708@ladisch.de>
Date: Mon, 29 Aug 2011 16:05:36 +0200
From: Clemens Ladisch <clemens@...isch.de>
To: Jassi Brar <jassisinghbrar@...il.com>
CC: Felipe Balbi <balbi@...com>, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.de>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org,
Linux USB Mailing List <linux-usb@...r.kernel.org>
Subject: Re: [PATCH v2] sound: usb: mixer: increase control transfer timeout
Jassi Brar wrote:
> On Mon, Aug 29, 2011 at 6:01 PM, Felipe Balbi <balbi@...com> wrote:
> > 100ms might not be enough for slower devices. Increasing
> > timeout to 1000ms doesn't seem like overkill.
> >
> > Signed-off-by: Felipe Balbi <balbi@...com>
> > ---
> >
> > Changes since v1:
> > . Increase all 100ms timeout to 1000ms
> >
> > sound/usb/mixer.c | 4 ++--
> > sound/usb/mixer_quirks.c | 10 +++++-----
> > 2 files changed, 7 insertions(+), 7 deletions(-)
The calls in mixer_quirks.c are device-specific and known to work, so
none of them actually require a longer timeout. However, increasing
their timeout doesn't hurt either, and ...
> > + buf, val_len, 1000) >= val_len) {
> > + buf, val_len, 1000) >= 0) {
> > + !value, 0, NULL, 0, 1000);
> > + !value, 0, NULL, 0, 1000);
> > + value, index + 2, NULL, 0, 1000);
> > + jacks[i].unitid << 8, buf, 3, 1000);
> > + 50, 0, &new_status, 1, 1000);
>
> How about also converting to use a local define for timeout value ?
... now that _all_ calls to snd_usb_ctl_msg use the same timeout value,
we could just as well drop this parameter.
Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists