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=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 73734C41604 for ; Wed, 7 Oct 2020 16:00:54 +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 99F972176B for ; Wed, 7 Oct 2020 16:00:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="m5KBY8xc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99F972176B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootes.sytes.net 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 E23AA16EF; Wed, 7 Oct 2020 18:00:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E23AA16EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1602086452; bh=INX8BVWpvonybkvQRHRxNfZ3TvXEEd/6JoVg+v2yxQo=; h=From:To:Subject:Date:In-Reply-To:Cc:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=m5KBY8xcFbBDXFfQrhcgPu/6af5WZKmQ5K3Z7/SkTuYPlcaSPOJyIy2dOS3U7UqsT xMDPRpA9lMMzpWC2hYBj/lg19T+5FbwsZ9LW6gAiWjpnpu033weD5NFPKEk338LMuQ jT8tISCrtMsF/9t2sqgrEZOZXV4iPvYQlwwc/pOo= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 21AA8F802F8; Wed, 7 Oct 2020 17:55:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 70F2DF80090; Wed, 7 Oct 2020 15:35:57 +0200 (CEST) Received: from bootes.sytes.net (unknown [IPv6:2a02:2698:182a:c64:96de:80ff:fe6b:1e50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E8599F80090; Wed, 7 Oct 2020 15:35:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E8599F80090 Received: from localhost.lan ([127.0.0.1] helo=bootes.localnet) by bootes.sytes.net with esmtp (Exim 4.92) (envelope-from ) id 1kQ9ba-0001TH-Pu; Wed, 07 Oct 2020 18:35:42 +0500 From: Alex Volkov To: tom.ty89@gmail.com Subject: Re: [PATCH] ALSA: usb-audio: ignore broken processing/extension unit Date: Wed, 07 Oct 2020 18:35:42 +0500 Message-ID: <7104424.S74eq5PtAd@bootes> In-Reply-To: <5f3abc52.1c69fb81.9cf2.fe91@mx.google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Mailman-Approved-At: Wed, 07 Oct 2020 17:54:46 +0200 Cc: alsa-devel@alsa-project.org, patch@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" This patch breaks the creation of the "Clock rate Selector" mixer unit in E-MU Tracker Pre USB audio interface. If the 'snd-usb-audio' module still has not been loaded when the device gets switched on, the module autoloads and everything works: $ cat /proc/asound/USB/usbmixer USB Mixer: usb_id=0x041e3f0a, ctrlif=0, ctlerr=0 Card: E-MU Systems, Inc. E-MU Tracker Pre | USB at usb-0000:00:14.0-13, high speed Unit: 4 Control: name="PCM Playback Volume", index=0 Info: id=4, control=2, cmask=0x3, channels=2, type="S16" Volume: min=-25600, max=0, dBmin=-10000, dBmax=0 Unit: 4 Control: name="PCM Playback Switch", index=0 Info: id=4, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Unit: 12 Control: name="Clock rate Selector", index=0 Info: id=12, control=3, cmask=0x0, channels=1, type="U8" Volume: min=0, max=5, dBmin=0, dBmax=0 BUT! If the device gets switched off and back on when the module is still loaded, the control never gets created: (after I power cycled the device) $ cat /proc/asound/USB/usbmixer USB Mixer: usb_id=0x041e3f0a, ctrlif=0, ctlerr=0 Card: E-MU Systems, Inc. E-MU Tracker Pre | USB at usb-0000:00:14.0-13, high speed Unit: 4 Control: name="PCM Playback Volume", index=0 Info: id=4, control=2, cmask=0x3, channels=2, type="S16" Volume: min=-25600, max=0, dBmin=-10000, dBmax=0 Unit: 4 Control: name="PCM Playback Switch", index=0 Info: id=4, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Accordingly, the device stays at the default Clock rate with no way to change it. Probably, there's some timing issue in the initialization of the device / the loading of the module, but I honestly couldn't care less as long as this patch breaks my setup.