From: Clemens Ladisch <clemens@ladisch.de>
To: Felix Homann <fexpop@web.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH - Fix Fast Track Ultra series: 44.1/88.1 kHz 1/Fix playback/capture issues and related chrashes at 44100 Hz and 88200 Hz for M-Audio Fast Track Ultra series.
Date: Wed, 07 Jul 2010 16:23:02 +0200 [thread overview]
Message-ID: <4C348DC6.7070602@ladisch.de> (raw)
In-Reply-To: <4C347EF7.2030401@web.de>
Felix Homann wrote:
> Am 07.07.2010 14:44, schrieb Clemens Ladisch:
>> (I have the suspicion that we don't actually need a AUDIO_FIXED_ENDPOINT
>> quirk for these devices.)
>
> Something must be in this AUDIO_FIXED_ENDPOINT quirk, since the device
> now works properly and stable @44.1/88.2 kHz. I don't know the exact
> reason, since I really don't understand all this stuff.
There must be some difference, and I'd really like to know what it is.
Please load the driver with the patch below, with and without the
AUDIO_FIXED_ENDPOINT patch, and show what it prints to the system log.
Regards,
Clemens
--- a/sound/usb/format.c
+++ b/sound/usb/format.c
@@ -196,6 +196,7 @@ static int parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audiof
hwc_debug("All rates were zero. Skipping format!\n");
return -1;
}
+ print_hex_dump_bytes("rates ", DUMP_PREFIX_OFFSET, fp->rates, sizeof(int) * nr_rates);
} else {
/* continuous rates */
fp->rates = SNDRV_PCM_RATE_CONTINUOUS;
@@ -480,6 +481,7 @@ int snd_usb_parse_audio_format(struct snd_usb_audio *chip, struct audioformat *f
fp->fmt_type = fmt->bFormatType;
if (err < 0)
return err;
+ print_hex_dump_bytes("format ", DUMP_PREFIX_OFFSET, fp, sizeof(*fp));
#if 1
/* FIXME: temporary hack for extigy/audigy 2 nx/zs */
/* extigy apparently supports sample rates other than 48k
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 9a9da09..6be2bfc 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -142,6 +142,7 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,
}
memcpy(rate_table, fp->rate_table, sizeof(int) * fp->nr_rates);
fp->rate_table = rate_table;
+ print_hex_dump_bytes("rates ", DUMP_PREFIX_OFFSET, fp->rate_table, sizeof(int) * fp->nr_rates);
}
stream = (fp->endpoint & USB_DIR_IN)
@@ -161,6 +162,7 @@ static int create_fixed_stream_quirk(struct snd_usb_audio *chip,
alts = &iface->altsetting[fp->altset_idx];
fp->datainterval = snd_usb_parse_datainterval(chip, alts);
fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize);
+ print_hex_dump_bytes("format ", DUMP_PREFIX_OFFSET, fp, sizeof(*fp));
usb_set_interface(chip->dev, fp->iface, 0);
snd_usb_init_pitch(chip, fp->iface, alts, fp);
snd_usb_init_sample_rate(chip, fp->iface, alts, fp, fp->rate_max);
next prev parent reply other threads:[~2010-07-07 14:23 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 8:05 [PATCH - Fix Fast Track Ultra series: 44.1/88.1 kHz 1/Fix playback/capture issues and related chrashes at 44100 Hz and 88200 Hz for M-Audio Fast Track Ultra series Felix Homann
2010-07-07 9:05 ` Felix Homann
2010-07-07 12:44 ` Clemens Ladisch
2010-07-07 13:19 ` Felix Homann
2010-07-07 13:59 ` Felix Homann
2010-07-07 14:23 ` Clemens Ladisch [this message]
2010-07-07 16:55 ` Felix Homann
2010-07-08 6:25 ` Clemens Ladisch
2010-07-08 8:35 ` Felix Homann
2010-07-08 13:10 ` Clemens Ladisch
2010-07-08 15:14 ` Felix Homann
2010-07-08 15:19 ` Clemens Ladisch
2010-07-08 15:54 ` Felix Homann
2010-07-16 8:27 ` Felix Homann
2010-08-31 6:39 ` Felix Homann
2010-08-31 8:24 ` [PATCH] - Fix Fast Track Ultra series: 44.1/88.1 kHz 1/Fix playback/capture issues and related crashes " Paul Menzel
2010-09-01 8:48 ` [RESENT] [PATCH - Fix Fast Track Ultra series: 44.1/88.1 kHz 1/Fix playback/capture issues and related chrashes " Felix Homann
2010-09-02 8:33 ` Takashi Iwai
2010-09-02 9:12 ` Clemens Ladisch
2010-09-02 9:16 ` Daniel Mack
2010-09-02 11:13 ` Clemens Ladisch
2010-09-03 13:34 ` Daniel Mack
2010-09-03 14:26 ` Clemens Ladisch
2010-09-02 10:12 ` Felix Homann
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=4C348DC6.7070602@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=fexpop@web.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;
as well as URLs for NNTP newsgroup(s).