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=-0.8 required=3.0 tests=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 E97B3C2BAEE for ; Tue, 24 Mar 2020 14:57:07 +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 6DD6F2080C for ; Tue, 24 Mar 2020 14:57:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="YrLEbZxn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6DD6F2080C 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 C07A115F9; Tue, 24 Mar 2020 15:56:15 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C07A115F9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585061825; bh=B0wCr2saDIknIhlMx6BzYZDxV4OhQWYQBMgOfSs1Yzw=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=YrLEbZxnz9mcAqRYTTqG4XgaHR6npoCXX6X+lXoGYxI6bljWd/att0BKH4ZfDwAwY 9Lw72wqvtOqYf9WuD/vvNFuo7xTC4TPcTB65fa/23SROXg2viZDAHYXL+HR5/SPT14 X5ugYaHC8NI+IUxi69U+ZE2A0Hgn/vTC9RmQx01I= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 4B1BCF801F8; Tue, 24 Mar 2020 15:56:15 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7051FF800FE; Tue, 24 Mar 2020 15:56:14 +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 2CEC9F800FE for ; Tue, 24 Mar 2020 15:56:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2CEC9F800FE X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 64721AB6D; Tue, 24 Mar 2020 14:56:10 +0000 (UTC) Date: Tue, 24 Mar 2020 15:56:10 +0100 Message-ID: From: Takashi Iwai To: Pierre-Louis Bossart Subject: Re: [PATCH] ALSA: core: sysfs: show components string In-Reply-To: <69761ee4-463b-25ff-1d2d-635a19487663@linux.intel.com> References: <20200323193623.3587-1-pierre-louis.bossart@linux.intel.com> <20200324015331.GA3679@workstation> <20200324043336.GA8342@workstation> <20200324090152.GA14579@workstation> <69761ee4-463b-25ff-1d2d-635a19487663@linux.intel.com> 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, broonie@kernel.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, 24 Mar 2020 14:15:44 +0100, Pierre-Louis Bossart wrote: > > > > On 3/24/20 4:01 AM, Takashi Sakamoto wrote: > > On Tue, Mar 24, 2020 at 12:12:15AM -0500, Pierre-Louis Bossart wrote: > >> when people report that their microphone is not reported by PulseAudio/UCM, > >> it's very helpful to know what UCM was supposed to use in the first place. > >> We don't have a debugger or step-by-step mechanisms to figure out what the > >> configurations are. > > > > If I get your intension correctly, the addition of sysfs node is just to > > investigate which use-case configuration is applied in cases that people > > get issues. If so, it's really exaggerative in a point of the concept of > > sysfs. > > > > I have two alternatives. If it's possible to focus on ALSA SoC part only, > > addition of node to debugfs is reasonable for this purpose. > > > > Another alternative is to change output of 'cards' node of procfs. The > > latter is commonly available for all cases. For example: > > I initially wanted to use /proc but thought it was a thing from the > past so I looked at sysfs. If this is the recommendation I don't mind > using it. procfs will practically never die, and it's already there, so I'm fine with that path, too, supposing that the primary purpose is for help debugging / analyzing. If it's used by UCM or whatever configuration tool, sysfs is the better choice, OTOH. > debugsfs is not something the average user is familiar with, and it's > not available in all cases. I'd like to extend existing pieces of > information than add new things. Right, debugfs isn't available per card as default, so it's no good option. Takashi