From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEAD1C433E0 for ; Tue, 2 Feb 2021 20:34:58 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC2D764E45 for ; Tue, 2 Feb 2021 20:34:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC2D764E45 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7C8621728; Tue, 2 Feb 2021 21:34:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7C8621728 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1612298094; bh=I3JYaN7uIHJMZuDgph/fyBT5vaUzmwXNxt2sinzi6uI=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JbywzNuhZB2jovC1ytOMfyENs4ISd6ha1mLWwlNDZydWAhS45fckdK59WyT4qb3bC +Xshl8ZLNzVb51ainHDQnohkiibUwwsTLhRXxbBn2KWUNNTn3T6vla3Zsvaj1kXpiQ 6zfP19R5jmrwy4nKxTESH2H37jiiHB/ITwmiC7S8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C931EF8013C; Tue, 2 Feb 2021 21:34:03 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B727AF80171; Tue, 2 Feb 2021 21:34:01 +0100 (CET) Received: from mx2.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 04EC8F8013C for ; Tue, 2 Feb 2021 21:33:53 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 04EC8F8013C X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 44B55AC55; Tue, 2 Feb 2021 20:33:53 +0000 (UTC) Date: Tue, 02 Feb 2021 21:33:53 +0100 Message-ID: From: Takashi Iwai To: Peter Allen Subject: Re: Nux Mighty Plug USB - no clock source In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: alsa-devel@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" On Tue, 02 Feb 2021 19:52:57 +0100, Peter Allen wrote: > > Thank you for taking the time to look at this. > I've tried your latest 5.12 branch, and sure enough it works perfectly without > any problems.  > So I'm really happy. Thank you! Good to hear! Takashi > > Pete > > On Mon, 1 Feb 2021, 14:24 Takashi Iwai, wrote: > > On Sat, 30 Jan 2021 09:30:50 +0100, > Peter Allen wrote: > > > > I have a NUX Mighty Plug guitar effects which has a USB Audio interface. > > Unfortunately it doesn't work in Linux, and I'd love to fix it. > > It gets registered with Alsa, except it ends up without any valid sample > > rates (by the look of it due to a buggy clock source descriptor). > > > > This is on Ubuntu-Studio 20.04 LTS _Focal Fossa with kernel > > 5.4.0-62-lowlatency > > on a HP Omen 15 with i5-7300HQ > > > > I don't know what I'm doing (but did a little module development rather > a > > long time ago in the 2.2 days :-)) Help is  greatly appreciated. > > > > When plugged in I get: > > [12476.413792] usb 1-1: New USB device found, idVendor=1fc9, > > idProduct=8260, bcdDevice= 1.00 > > [12476.413797] usb 1-1: New USB device strings: Mfr=1, Product=2, > > SerialNumber=3 > > [12476.413800] usb 1-1: Product: MIGHTY PLUG USB > > [12476.413804] usb 1-1: Manufacturer: NUX > > [12476.413807] usb 1-1: SerialNumber: 2007151403 > > [12476.444988] usb 1-1: __uac_clock_find_source(): selector reported > > illegal value, id 40, ret 0 > > [12476.444992] usb 1-1: parse_audio_format_rates_v2v3(): unable to find > > clock source (clock -22) > > [12476.445413] usb 1-1: __uac_clock_find_source(): selector reported > > illegal value, id 40, ret 0 > > [12476.445479] usb 1-1: __uac_clock_find_source(): selector reported > > illegal value, id 40, ret 0 > > [12476.447095] usb 1-1: __uac_clock_find_source(): selector reported > > illegal value, id 40, ret 0 > > [12476.447098] usb 1-1: parse_audio_format_rates_v2v3(): unable to find > > clock source (clock -22) > > [12476.447459] usb 1-1: __uac_clock_find_source(): selector reported > > illegal value, id 40, ret 0 > > [12476.447684] usb 1-1: __uac_clock_find_source(): selector reported > > illegal value, id 40, ret 0 > > [12476.450397] usbcore: registered new interface driver snd-usb-audio > > This might be covered by the recent fixes for 5.12 kernel, found in > for-next branch of my sound git tree. >   git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > > Also, as both playback and capture streams are ASYNC, those might be > supposed to be running in the implicit feedback.  With the very latest > kernel, this can be enabled via implicit_fb=1 module option.  If this > works better, we can set up a static quirk table entry for the device, > too. > > Takashi > >