From: Takashi Iwai Subject: Re: [PATCH v2 0/7] ALSA: USB-audio: Support Zoom R16 playback Date: Mon, 19 Oct 2015 16:18:05 +0200 Message-ID: References: <1444906657-16791-1-git-send-email-ricardw@axis.com> <1445237575-396-1-git-send-email-ricardw@axis.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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 42438265AA0 for ; Mon, 19 Oct 2015 16:18:06 +0200 (CEST) In-Reply-To: <1445237575-396-1-git-send-email-ricardw@axis.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Ricard Wanderlof Cc: alsa-devel , Ricard Wanderlof , Ricard Wanderlof List-Id: alsa-devel@alsa-project.org On Mon, 19 Oct 2015 08:52:48 +0200, Ricard Wanderlof wrote: > > V2: Change u32 to __le32 (kbuild test robot warning). > Since Zoom R24 most likely behaves as R16 when used as an audio > interface, refer to "R16/24" throughout in all comments (no code > change). > Tested both in Linux 3.16.7 (with appropriate backports) and 4.3.0 . > Made changelogs more descriptive. > > The Zoom R16 has a nonstandard playback format where each isochronous packet > contains a length descriptor in the first four bytes. > > This patch series implements a quirk which involves adding the extra length > descriptor whenever outgoing isochronous packets are generated. > > The first four patches refactor some code in pcm.c and endpoint.c before > the actual quirk implementation. A final commit cleans up the entry in > the quirks table. > > Big thanks to Panu for testing this patch. > > Signed-off-by: Ricard Wanderlof > Tested-by: Panu Matilainen > > Ricard Wanderlof (7): > Break out copying to urb from prepare_playback_urb() > Also move out hwptr_done wrap from prepare_playback_urb() > Break out creation of silent urbs from prepare_outbound_urb() > Add offset parameter to copy_to_urb() > Add quirk for Zoom R16/24 playback > Adjust max packet size calculation for tx_length_quirk > Remove mixer entry from Zoom R16/24 quirk Applied all patches now. Thanks. Takashi > > sound/usb/card.h | 1 + > sound/usb/endpoint.c | 73 +++++++++++++++++++++++++++++++++-------------- > sound/usb/pcm.c | 74 +++++++++++++++++++++++++++++++++++++----------- > sound/usb/quirks-table.h | 14 +++------ > sound/usb/quirks.c | 3 ++ > sound/usb/stream.c | 1 + > sound/usb/usbaudio.h | 1 + > 7 files changed, 119 insertions(+), 48 deletions(-) > > -- > 2.1.4 >