mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matteo Martelli <matteomartelli3@gmail.com>
To: Takashi Iwai <tiwai@suse.de>, Jaroslav Kysela <perex@perex.cz>
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
	Matteo Martelli <matteomartelli3@gmail.com>
Subject: [PATCH 0/1] ALSA: usb-audio: generic implicit fb parser fails with M-Audio FastTrack Ultra
Date: Fri, 11 Feb 2022 23:49:12 +0100	[thread overview]
Message-ID: <20220211224913.20683-1-matteomartelli3@gmail.com> (raw)

Hello, I've recently started to experience periodic XRUNs with my M-Audio
FastTrack Ultra while using JACK.
The XRUNs come systematically at precise intervals, where the period
varies from around 1 min to 6 min depending on the jackd buffer settings.
I found out that issue is reproducible since commit
83b7dcbc51c930fc2079ab6c6fc9d719768321f1.

It looks like the problem is in the add_generic_implicit_fb() function
where (fmt->ep_attr & USB_ENDPOINT_SYNCTYPE) is USB_ENDPOINT_SYNC_ADAPTIVE
instead of the expected USB_ENDPOINT_SYNC_ASYNC. This leads to the
failure of the snd_usb_parse_implicit_fb_quirk(), so I guess the
implicit feedback feature is not used at all, resulting to periodic
XRUNs. However, by retrieving the endpoint descriptor with the
get_endpoint(alts, 0) macro, the endpoint mbAttributes are correct and
match the USB_ENDPOINT_SYNC_ASYNC sync type. Also, the attributes
printed by lsusb are again correct showing the "Asynchronous" type.
In fact, the sync type is set to adaptive for the M-Audio FastTrack
Ultra in the quirks-table.h header file. This was done by the commit
65f04443c96dbda11b8fff21d6390e082846aa3c to work around a playback
issue.

I tested my 0x2080 device with the 5.17-rc1, 5.16, 5.11-rc1, 5.10.
The issue is reproducible with all of them except for the 5.10 where the
implicit feedback was still declared as "fixed".
I also had the chance to have the 0x2081 device tested with kernel
5.16, same issue there.
The following patch is to revert the implicit feedback to "fixed" for the
M-Audio FastTrack Ultra cards until the issue is not entirely covered.

Matteo Martelli (1):
  ALSA: usb-audio: revert to IMPLICIT_FB_FIXED_DEV for M-Audio FastTrack
    Ultra

 sound/usb/implicit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.35.1


             reply	other threads:[~2022-02-11 22:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-11 22:49 Matteo Martelli [this message]
2022-02-11 22:49 ` [PATCH 1/1] ALSA: usb-audio: revert to IMPLICIT_FB_FIXED_DEV for " Matteo Martelli
2022-02-14  8:45   ` Takashi Iwai

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=20220211224913.20683-1-matteomartelli3@gmail.com \
    --to=matteomartelli3@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.de \
    /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

all inboxes | Powered by JetHome®