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.8 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 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 4A32CC433DB for ; Mon, 1 Feb 2021 14:25:38 +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 1988B64DDE for ; Mon, 1 Feb 2021 14:25:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1988B64DDE 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 8AC63174A; Mon, 1 Feb 2021 15:24:45 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8AC63174A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1612189535; bh=tlfHS5kXXhxu43UcjdpUJDml16YuOUmQBQz8dRqDnpk=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=nqSTYxPpC3OEtHitjROMQVCyHm1KoMJMGMxTwpFt9AmXWSoITWpIP+G2o2awQPnAd Qd+V4HP5jOvbBgl++U1fOEwGiY/mTce7BPtIQCGhjBg2IAwjFnbJFmb6afFnkB4QXy Pejn7bhMAvqCYWmbsmxh9Evevsa2+GRc0hXPmWOg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 20DA8F80152; Mon, 1 Feb 2021 15:24:45 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6D49EF80153; Mon, 1 Feb 2021 15:24:44 +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 AEB4FF800E9 for ; Mon, 1 Feb 2021 15:24:38 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AEB4FF800E9 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 5C053AD2E; Mon, 1 Feb 2021 14:24:38 +0000 (UTC) Date: Mon, 01 Feb 2021 15:24:38 +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=US-ASCII 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 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