On Mon, Mar 01, 2010 at 12:27:54PM +0100, Clemens Ladisch wrote: > Change the parser to correctly handle v2 descriptors with multiple > format bits set. > > Signed-off-by: Clemens Ladisch <clemens@xxxxxxxxxx> I got compile errors with that one, and needed the patch below to fix them. Want to squash that into your commit and resend? Daniel >From 56ee3facfc825e68ed49c6cefac644d33b82dd71 Mon Sep 17 00:00:00 2001 From: Daniel Mack <daniel@xxxxxxxx> Date: Mon, 1 Mar 2010 15:22:54 +0100 Subject: [PATCH] ALSA: usb-audio: fix quirk formats 'struct audioformat' takes a bit field of supported rates now rather than one fixed value. Adopt that change at two more places. Signed-off-by: Daniel Mack <daniel@xxxxxxxx> --- sound/usb/quirks-table.h | 2 +- sound/usb/quirks.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index ff2df4e..2107d00 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -2233,7 +2233,7 @@ YAMAHA_DEVICE(0x7010, "UB99"), .ifnum = 1, .type = QUIRK_AUDIO_FIXED_ENDPOINT, .data = &(const struct audioformat) { - .format = SNDRV_PCM_FORMAT_S24_3BE, + .formats = SNDRV_PCM_FMTBIT_S24_3BE, .channels = 2, .iface = 1, .altsetting = 1, diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 00e8a97..0119fa0 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -89,7 +89,7 @@ static int create_ua1000_quirk(struct snd_usb_audio *chip, const struct snd_usb_audio_quirk *quirk) { static const struct audioformat ua1000_format = { - .format = SNDRV_PCM_FORMAT_S32_LE, + .formats = SNDRV_PCM_FMTBIT_S32_LE, .fmt_type = UAC_FORMAT_TYPE_I, .altsetting = 1, .altset_idx = 1, -- 1.6.6.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel