All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Alexander Tsoy <alexander@tsoy.me>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: usb-audio: Apply async workaround for Scarlett 2i4 2nd gen
Date: Tue, 21 Apr 2020 21:31:46 +0200	[thread overview]
Message-ID: <s5hpnc01vq5.wl-tiwai@suse.de> (raw)
In-Reply-To: <20200421190908.462860-1-alexander@tsoy.me>

On Tue, 21 Apr 2020 21:09:08 +0200,
Alexander Tsoy wrote:
> 
> Due to rounding error driver sometimes incorrectly calculate next packet
> size, which results in audible clicks on devices with synchronous playback
> endpoints. For example on a high speed bus and a sample rate 44.1 kHz it
> loses one sample every ~40.9 seconds. Fortunately playback interface on
> Scarlett 2i4 2nd gen has a working explicit feedback endpoint, so we can
> switch playback data endpoint to asynchronous mode as a workaround.
> 
> Signed-off-by: Alexander Tsoy <alexander@tsoy.me>

Applied now, thanks.

I wonder, though, whether we can correct the rounding error in the
driver code, too.


Takashi


> ---
>  sound/usb/quirks.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
> index 6c2dfd3bfcbf..351ba214a9d3 100644
> --- a/sound/usb/quirks.c
> +++ b/sound/usb/quirks.c
> @@ -1806,6 +1806,7 @@ void snd_usb_audioformat_attributes_quirk(struct snd_usb_audio *chip,
>  		 */
>  		fp->attributes &= ~UAC_EP_CS_ATTR_FILL_MAX;
>  		break;
> +	case USB_ID(0x1235, 0x8200):  /* Focusrite Scarlett 2i4 2nd gen */
>  	case USB_ID(0x1235, 0x8202):  /* Focusrite Scarlett 2i2 2nd gen */
>  	case USB_ID(0x1235, 0x8205):  /* Focusrite Scarlett Solo 2nd gen */
>  		/*
> -- 
> 2.25.3
> 

  reply	other threads:[~2020-04-21 19:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 19:09 [PATCH] ALSA: usb-audio: Apply async workaround for Scarlett 2i4 2nd gen Alexander Tsoy
2020-04-21 19:31 ` Takashi Iwai [this message]
2020-04-22  3:57   ` Alexander Tsoy
2020-04-22 18:55     ` Gregor Pintar
2020-04-22 19:26       ` Alexander Tsoy
2020-04-22 20:19         ` Alexander Tsoy
2020-04-22 20:28         ` Takashi Iwai
2020-04-22 23:45           ` Alexander Tsoy
2020-04-23  7:22             ` Takashi Iwai
2020-04-23 11:22               ` Takashi Iwai
2020-04-23 15:10                 ` Alexander Tsoy
2020-04-23 16:57                   ` Alexander Tsoy
2020-04-23 17:29                     ` Takashi Iwai
2020-04-23 17:35                       ` Takashi Iwai
2020-04-23 18:24                         ` Alexander Tsoy
2020-04-26 17:12                           ` Alexander Tsoy
2020-04-27  7:08                             ` Takashi Iwai
2020-04-23 17:32                   ` Takashi Iwai
2020-04-23 11:46             ` Gregor Pintar
2020-04-23 14:01               ` Alexander Tsoy

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=s5hpnc01vq5.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alexander@tsoy.me \
    --cc=alsa-devel@alsa-project.org \
    /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.