From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] ALSA: usb-audio: Add quirk for MOTU MicroBook II Date: Thu, 28 Feb 2019 22:24:05 +0100 Message-ID: References: <889a53811e44961f8df1c1815c5154dba68fd536.camel@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 288E7F896C0 for ; Thu, 28 Feb 2019 22:24:06 +0100 (CET) In-Reply-To: <889a53811e44961f8df1c1815c5154dba68fd536.camel@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Manuel Reinhardt Cc: "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org On Thu, 28 Feb 2019 20:34:04 +0100, Manuel Reinhardt wrote: > > Add an entry to the quirks-table to for usb-audio to recognize the > Microbook II (although it only exposes vendor interfaces). A simple boot > quirk is also implemented to set up the sample rate and make sure that > no audio urbs are sent before the device is ready. > > This patch only provides audio playback and capture at 96kHz sample > rate. Notice the following shortcomings: > > - The sample rate is currently hardcoded to 96k although the device also > supports 48k and 44.1k. > > - The various mixer controls of the MicroBook are not made available. > > - The keep-iface control should be on by default because the device > shuts down whenever the altsetting is reset which is usually unwanted. > (I don't know the best way to do this) > > - The communication format used by the MicroBook for sample rate setting > and also other setup has been reverse engineered by looking at the > usbmon output while running the windows driver through virtualbox. In > this patch the first byte of every message is set to \0 while in the > observed communications the first byte acts as a "message-counter" > increasing its value with every message sent. Leaving it at \0 does > not seem to affect the device. > > Signed-off-by: Manuel Reinhardt Applied, thanks. Takashi