Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Nicolas MURE <nicolas.mure2019@gmail.com>
Cc: alsa-devel@alsa-project.org, livvy@base.nu
Subject: Re: [PATCH 3/4] ALSA: usb-audio: Configure Pioneer DJM-850 samplerate
Date: Mon, 01 Mar 2021 14:58:15 +0100	[thread overview]
Message-ID: <s5hv9abht6w.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210226133429.20081-4-nicolas.mure2019@gmail.com>

On Fri, 26 Feb 2021 14:34:28 +0100,
Nicolas MURE wrote:
> 
> Send an `URB_CONTROL out` USB frame to the device to configure its
> samplerate. This should be done before using the device for audio
> streaming (capture or playback).
> 
> About the change of `usb_rcvctrlpipe` to `usb_sndctrlpipe`, I reached
> the author of this line and she agrees about this change. Control frames
> to set device options should have the `out` direction instead of the `in`
> direction.

This specific fix should be applied separately for 5.12.
Could you split this one and submit as an individual fix?

I'm currently thinking of merging the rest for 5.13, as 5.12 merge
window was already closed.


thanks,

Takashi

> 
> See https://github.com/nm2107/Pioneer-DJM-850-driver-reverse-engineering
>     /blob/172fb9a61055960c88c67b7c416fe5bf3609807b
>     /doc/windows-dvs/framerate-setting/README.md
> 
> Signed-off-by: Nicolas MURE <nicolas.mure2019@gmail.com>
> ---
>  sound/usb/quirks.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
> index 9ba4682ebc48..d02dac5fcd40 100644
> --- a/sound/usb/quirks.c
> +++ b/sound/usb/quirks.c
> @@ -1482,7 +1482,7 @@ static int pioneer_djm_set_format_quirk(struct snd_usb_substream *subs,
>  	usb_set_interface(subs->dev, 0, 1);
>  	// we should derive windex from fmt-sync_ep but it's not set
>  	snd_usb_ctl_msg(subs->stream->chip->dev,
> -		usb_rcvctrlpipe(subs->stream->chip->dev, 0),
> +		usb_sndctrlpipe(subs->stream->chip->dev, 0),
>  		0x01, 0x22, 0x0100, windex, &sr, 0x0003);
>  	return 0;
>  }
> @@ -1503,6 +1503,9 @@ void snd_usb_set_format_quirk(struct snd_usb_substream *subs,
>  	case USB_ID(0x2b73, 0x0013): /* Pioneer DJM-450 */
>  		pioneer_djm_set_format_quirk(subs, 0x0082);
>  		break;
> +	case USB_ID(0x08e4, 0x0163): /* Pioneer DJM-850 */
> +		pioneer_djm_set_format_quirk(subs, 0x0086);
> +		break;
>  	}
>  }
>  
> -- 
> 2.29.2
> 

  reply	other threads:[~2021-03-01 13:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-26 13:34 [PATCH 0/4]: ALSA: usb-audio: Add Pioneer DJM-850 support Nicolas MURE
2021-02-26 13:34 ` [PATCH 1/4] ALSA: usb-audio: Add Pioneer DJM-850 to quirks-table Nicolas MURE
2021-02-26 13:34 ` [PATCH 2/4] ASLA: usb-audio: Declare Pioneer DJM-850 mixer controls Nicolas MURE
2021-02-26 13:34 ` [PATCH 3/4] ALSA: usb-audio: Configure Pioneer DJM-850 samplerate Nicolas MURE
2021-03-01 13:58   ` Takashi Iwai [this message]
2021-03-01 15:27     ` [PATCH v2 0/4] ALSA: usb-audio: Add Pioneer DJM-850 support Nicolas MURE
2021-03-01 15:27       ` [PATCH v2 1/4] ALSA: usb-audio: Add Pioneer DJM-850 to quirks-table Nicolas MURE
2021-03-01 15:27       ` [PATCH v2 2/4] ASLA: usb-audio: Declare Pioneer DJM-850 mixer controls Nicolas MURE
2021-03-01 15:27       ` [PATCH v2 3/4] ALSA: usb-audio: Configure Pioneer DJM-850 samplerate Nicolas MURE
2021-03-01 15:27       ` [PATCH v2 4/4] ASLA: usb-audio: fix Pioneer DJM-850 control label info Nicolas MURE
2021-03-02  9:20       ` [PATCH v2 0/4] ALSA: usb-audio: Add Pioneer DJM-850 support Takashi Iwai
2021-02-26 13:34 ` [PATCH 4/4] ASLA: usb-audio: fix Pioneer DJM-850 control label info Nicolas MURE

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=s5hv9abht6w.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=livvy@base.nu \
    --cc=nicolas.mure2019@gmail.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