From: Johan Hovold <johan@kernel.org>
To: Jussi Laako <jussi@sonarnerd.net>
Cc: alsa-devel@alsa-project.org, Takashi Iwai <tiwai@suse.com>,
Johan Hovold <johan@kernel.org>
Subject: Re: [PATCH v2 1/3] ALSA: usb-audio: fix Amanero Combo384 quirk on big-endian hosts
Date: Tue, 30 May 2017 10:29:53 +0200 [thread overview]
Message-ID: <20170530082953.GJ18869@localhost> (raw)
In-Reply-To: <7d6e1d60-0259-8cb5-565e-0627608537a8@sonarnerd.net>
On Tue, May 30, 2017 at 02:40:09AM +0300, Jussi Laako wrote:
> On 12.05.2017 15:34, Johan Hovold wrote:
> > Add missing endianness conversion when using the USB device-descriptor
> > bcdDevice field when applying the Amanero Combo384 (endianness!) quirk.
> >
> > Fixes: 3eff682d765b ("ALSA: usb-audio: Support both DSD LE/BE Amanero firmware versions")
> > Cc: Jussi Laako <jussi@sonarnerd.net>
> > Signed-off-by: Johan Hovold <johan@kernel.org>
> > ---
> > sound/usb/quirks.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
> > index 01eff6ce6401..d7b0b0a3a2db 100644
> > --- a/sound/usb/quirks.c
> > +++ b/sound/usb/quirks.c
> > @@ -1364,7 +1364,7 @@ u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
> > /* Amanero Combo384 USB interface with native DSD support */
> > case USB_ID(0x16d0, 0x071a):
> > if (fp->altsetting == 2) {
> > - switch (chip->dev->descriptor.bcdDevice) {
> > + switch (le16_to_cpu(chip->dev->descriptor.bcdDevice)) {
> > case 0x199:
> > return SNDRV_PCM_FMTBIT_DSD_U32_LE;
> > case 0x19b:
> >
>
>
> Sorry for the delay... Looks good to me, tested to work OK.
Thanks for testing. Patch is in Linus' tree now.
Johan
next prev parent reply other threads:[~2017-05-30 8:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 12:34 [PATCH v2 0/3] ALSA: USB-descriptor endianness fixes Johan Hovold
2017-05-12 12:34 ` [PATCH v2 1/3] ALSA: usb-audio: fix Amanero Combo384 quirk on big-endian hosts Johan Hovold
2017-05-29 23:40 ` Jussi Laako
2017-05-30 8:29 ` Johan Hovold [this message]
2017-05-12 12:34 ` [PATCH v2 2/3] ALSA: us122l: clean up US144 handling Johan Hovold
2017-05-12 12:34 ` [PATCH v2 3/3] ALSA: us122l: enable compile testing Johan Hovold
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=20170530082953.GJ18869@localhost \
--to=johan@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=jussi@sonarnerd.net \
--cc=tiwai@suse.com \
/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).