From patchwork Fri May 22 09:10:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antonio Ospite X-Patchwork-Id: 6462491 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1E5AE9F401 for ; Fri, 22 May 2015 09:11:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 293192045B for ; Fri, 22 May 2015 09:11:12 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id E8A0A203B7 for ; Fri, 22 May 2015 09:11:09 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3427E2606D1; Fri, 22 May 2015 11:11:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 6DC66261484; Fri, 22 May 2015 11:11:00 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id DA3CF2614DD; Fri, 22 May 2015 11:10:57 +0200 (CEST) Received: from smtp205.alice.it (smtp205.alice.it [82.57.200.101]) by alsa0.perex.cz (Postfix) with ESMTP id B871E2606D1 for ; Fri, 22 May 2015 11:10:52 +0200 (CEST) Received: from jcn (79.2.138.136) by smtp205.alice.it (8.6.060.28) id 555621530271B78E; Fri, 22 May 2015 11:10:50 +0200 Date: Fri, 22 May 2015 11:10:40 +0200 From: Antonio Ospite To: =?ISO-8859-1?Q?jean-no=EBl?= chardron Message-Id: <20150522111040.e517d4743fb51514762f1e61@ao2.it> In-Reply-To: References: X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-Face: z*RaLf`X<@C75u6Ig9}{oW$H; 1_\2t5)({*|jhM/Vb; ]yA5\I~93>J<_`<4)A{':UrE Mime-Version: 1.0 Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] how to ask you to write a new ALSA driver X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" 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 X-Virus-Scanned: ClamAV using ClamSMTP On Thu, 21 May 2015 12:28:00 +0200 jean-noël chardron wrote: > hello, > > Last week I got a Komplet Audio 6 from Native intruments. > The driver exist in ALSA driver for this king of interface audio > (snd-usb-audio) (thanks for the team who write this) but for the model > where Id Vendor is 0x17cc and Id product is 0x1000. > > The KA6 that I got has not the same ID product (0x1001) therefore I don't > have any device capture even with the driver snd-usb-audio. > > The challenge is to write the modification for this new model. > Who could do that ? You can try yourself. If you know or suspect that your device is similar to the supported ones look where the 0x17cc vendor id is used and try to follow the existing code, and try to come up with the _minimum_ amount of changes required to make the device work. For instance, after a "git grep 0x17cc -- sound/" I came up with this diff: However without knowing the device I am not sure if the second change is strictly necessary, or if the two are even enough. So please try to apply one of them at the time, recompile, test, and let us know. > If necessary I could send log, compile kernel source and so on. > thanks, Keep logs before and after changes you make so that you can compare the result of the changes. Ciao, Antonio diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h index 2f6d3e9..d254b14 100644 --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -2740,6 +2740,12 @@ YAMAHA_DEVICE(0x7010, "UB99"), .idProduct = 0x1000, }, { + /* Komplete Audio 6 */ + .match_flags = USB_DEVICE_ID_MATCH_DEVICE, + .idVendor = 0x17cc, + .idProduct = 0x1001, +}, +{ /* Traktor Audio 6 */ .match_flags = USB_DEVICE_ID_MATCH_DEVICE, .idVendor = 0x17cc, diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c index 7c5a701..2f9ee824 100644 --- a/sound/usb/quirks.c +++ b/sound/usb/quirks.c @@ -1007,6 +1007,7 @@ int snd_usb_apply_boot_quirk(struct usb_device *dev, return snd_usb_accessmusic_boot_quirk(dev); case USB_ID(0x17cc, 0x1000): /* Komplete Audio 6 */ + case USB_ID(0x17cc, 0x1001): /* Komplete Audio 6 */ case USB_ID(0x17cc, 0x1010): /* Traktor Audio 6 */ case USB_ID(0x17cc, 0x1020): /* Traktor Audio 10 */ return snd_usb_nativeinstruments_boot_quirk(dev);