Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp545034ybz; Wed, 29 Apr 2020 05:07:52 -0700 (PDT) X-Google-Smtp-Source: APiQypJS0ScrJSKLZh596eGB03nnuvdQByt2AnQfNyocFzpyAPnF97Jyl8pSmWGtwPqpZ0FIFUnE X-Received: by 2002:a17:906:8282:: with SMTP id h2mr2396344ejx.250.1588162072473; Wed, 29 Apr 2020 05:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588162072; cv=none; d=google.com; s=arc-20160816; b=jE9zhJvjgZiDfjE9KKS5kx8p+qvt03Wg2kQhDfE/H9vc9aufc8XfTRo+PMjelTMLEd rflwXrPTwWG+h/MBXKXzjsom/n5hohMupnJ1woeM0Fd5mpjUciOsmfoZzey4kIS8zZNZ Txhg0tqx/MrHv7Ae3Zsi2xJ8UBXknGYqJo85ljcDTzLLcL0AkAyvgsbXG30lw4jlSnCe ytM3G4BgzzVHahoby8A0AtzIIf0gVU5az0FXDRSePK2l5RUICqjxah06Ke9eDfNlixva 9SKV+D7nG2dPWVeOhzq3Xk+76vwIGkbbWFvG12MmaQkOHoy9IxykoB//dvdiubQEUnup 57Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tfEhpsVCi4fZih/JTp4ReGZoHg4BIePBAmbyBR/otkI=; b=DVTha7683Qr9LspECZ1ZkVUlykIx/ioXyGPRtAUoOFa1w6+WditNoWCiXWOa9dqHTm 1FigVTVw0tZ+Wo8zU/doAG5EJTbSiEUsXWKbB2k7VICHQYHCiFpSZif0el+F/2mwSGE2 Mo10m5Ib5y/jfIYZhMjowsVwPpNYRt8TZMgTO1ZAnV/22CocaroXCBp1WRwEwIjUlPA0 nuZe2FArE5wMjypW38JJOFJ02+vLu5ACXOB3tfIUDtxbAeQwFAtYBHlCi63KsvAF4cAC GNyK7+gk0lGrp56UnnPtMv0VlJLVmspI+gxV1+Gx3Ryz4ew0Zz9UsDIlV0BZ8p0T23r6 ylKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=StwkJngH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx18si3207513edb.73.2020.04.29.05.07.27; Wed, 29 Apr 2020 05:07:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=StwkJngH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726950AbgD2MFP (ORCPT + 99 others); Wed, 29 Apr 2020 08:05:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:42868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726773AbgD2MFP (ORCPT ); Wed, 29 Apr 2020 08:05:15 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 27F8B208FE; Wed, 29 Apr 2020 12:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588161914; bh=BHx6Adc582HX/EI7gEWPQT8miSuzlW266b32vPCYeME=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=StwkJngH70s5roDZrk0Vd0cSxaoWgkq9/v/SdRm0VsfveIt/PScZ4eGrr0cCqV5Yi bgXyOwH5HMG8tiQL2kbbdS1mALhVuxn6iUOzJd9DzIKPw4LwXeyZ8XdAOiDFocEt5O rfDMpk4aRr6mied40vjSshkkuH1tA5VSghN9ckWA= Date: Wed, 29 Apr 2020 13:05:11 +0100 From: Mark Brown To: Robin Murphy Cc: Maxime Ripard , Chen-Yu Tsai , =?iso-8859-1?Q?Cl=E9ment_P=E9ron?= , devicetree , Linux-ALSA , Liam Girdwood , linux-kernel , linux-sunxi , Jernej Skrabec , Takashi Iwai , Jaroslav Kysela , Marcus Cooper , Rob Herring , linux-arm-kernel Subject: Re: [linux-sunxi] Re: Audio sound card name [was [PATCH 4/7] arm64: dts: allwinner: a64: Add HDMI audio] Message-ID: <20200429120511.GG4201@sirena.org.uk> References: <20200426120442.11560-1-peron.clem@gmail.com> <20200426120442.11560-5-peron.clem@gmail.com> <20200428080020.35qcuylwq2ylmubu@gilmour.lan> <20200428160417.6q5oab2guaumhhwi@gilmour.lan> <031ee5d3-8a30-82ee-76db-c0e8a1073046@arm.com> <20200429081729.qa3gqtl5sof2jhem@gilmour.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RMedoP2+Pr6Rq0N2" Content-Disposition: inline In-Reply-To: X-Cookie: I know how to do SPECIAL EFFECTS!! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RMedoP2+Pr6Rq0N2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 29, 2020 at 11:43:06AM +0100, Robin Murphy wrote: > On 2020-04-29 9:17 am, Maxime Ripard wrote: > > On Wed, Apr 29, 2020 at 02:24:00PM +0800, Chen-Yu Tsai wrote: Please delete unneeded context from mails when replying. Doing this makes it much easier to find your reply in the message, helping ensure it won't be missed by people scrolling through the irrelevant quoted material. > > If we also end up with "HDMI" as our card name, then the userspace has no way to > > tell anymore if it's running from an rk3328 or an allwinner SoC, or something > > else entirely. And therefore it cannot really configure anything to work out of > > the box anymore. > OK, you're a userspace audio application - enlighten me as to what exact > chip you're running on here, and why you need to know: > card 0: HDMI [HDA ATI HDMI] > or how about here? > card 0: Intel [HDA Intel] In the case of HDMI for embedded platforms since there is generally no control in the audio path it is unlikely to make a *huge* difference, though if there are expansion buses or multiple HDMI ports it can be useful to help people identify which particular HDMI port it is. For other cards the names are part of userspace working out which config file to apply to the card so deduplication can help, and also the plastics tend to matter. > With simple-audio-card we're talking about trivial interfaces that often > don't expose any controls at all, so there's unlikely to be much > 'configuration' for userspace to do beyond choosing which card to output to. This is a reasonable assumption for HDMI but it is not at all a reasonable assumption for simple-audio-card in general - just because the links between the SoC and the external components are simple that doesn't mean that any of those components are simple, and even if the hardware is simple that does not mean that configuration is unimportant - the difference between full scale output and appropriate headphone volumes is for example *extremely* important. --RMedoP2+Pr6Rq0N2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl6pbXcACgkQJNaLcl1U h9Bzugf/c28iLtVw25sffS7FxnwHu5kFpEMA6AESU/nbib3pIGkMPZg+yn69tK3S bdnoVTnaJl2n84nFz/STXBtafZ0xebeAN+eZu0Gd7vtygVQlVGBP0QqPBo04u2Ko xSfYbaycfHROmTbbL5xIoJ0XaxNOgnZd0epZRpcvNDkDZJ8YvlwoR5Ooi8C/SR9E xqmpX9gmh59QtZf3NS5mQ+4PIHwxw35rxIgA1P6mIFRaseuz6njlFAlpKpCfWHy8 ZOYQ79RmdZDUSkqlOtUToBxkOrVCPHHmr5YoblVd3P3olP4ZBcmpnRuB4+QkxifA 7T5xU5H+PZPzUMBmDu6Mtx6P+4INhA== =xohR -----END PGP SIGNATURE----- --RMedoP2+Pr6Rq0N2--