Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4475183imc; Mon, 25 Feb 2019 05:39:58 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaewi5gLvTJDFvwug0VgFwns2a9Tc3z3SLKObpJIjSYltg3UBhRFaeHIZ4fyR2TwEIzowBB X-Received: by 2002:a17:902:2:: with SMTP id 2mr20969546pla.228.1551101998410; Mon, 25 Feb 2019 05:39:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551101998; cv=none; d=google.com; s=arc-20160816; b=m81Hq1kAdRHC6AuXKSTrwA6AS6skoQ8xtmznYkrRO0Jy/rJWjXsvlfW6r5oLTuSpuv mnsJpjKiT87lx3eMARXV1e4Fy3FmjiHh7l1UH3JQDjpaL7G6LxrCMqD/dHxhk9EnGpqV aVsYyHYTg9dX9ghjjUotHnG7wnbH9VnSdptcPSdoXoXLS92Qi6VW733JHKe9StSXDNPy C5kghLIoDhhppR8yxEfIfBI5r7Y+id8Z77oJE38VM0ny/um7RtJqLWcuuAO1suw3fGvd iojpM4X5phX3acKaD8vubFyjlHieUHDf75jGw/VPCAoPNnGe655bI4fh5RafQpA/N9CW URvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=qQa+wgPMesiTlKTvsul58fMBX/JX9ZGKjrHuNhwWwaE=; b=gRDce9wiZ6pUYIJ24+9ZFGvEoZJ4MhOvt6xGH2xlzUUN3rQaqJMNi4AfZVcD+yJ7zF PSaUqngtQ8PCPr8ZOQlS1yw1wcxvxKk7fIfvtg9fw7NgajjOSSV8o4AGgsTmNT3zXcVS gGqwiFag1q6KsyFHI8lxR+GKPg1u6g39K6P68AHsOpEMRmwlrKJI+yzXwdEF9WkxvGIJ dTHy8DYNpUaKeamnwL3oL2Eb45mIi+aWkzeMizoBYuuwwy0Rvdt6Ph+wU4bceI/0PRjA qToU0L4/x2nWM0lVowQf5yPpvgv1CTVQ8AYyZK/ala5wIopvTGX7eGVqJ5ZkqOoByt6n 8P3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si9372518plr.227.2019.02.25.05.39.43; Mon, 25 Feb 2019 05:39:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727315AbfBYNjJ (ORCPT + 99 others); Mon, 25 Feb 2019 08:39:09 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:36961 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbfBYNjI (ORCPT ); Mon, 25 Feb 2019 08:39:08 -0500 Received: by mail-qt1-f193.google.com with SMTP id a48so10444929qtb.4; Mon, 25 Feb 2019 05:39:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qQa+wgPMesiTlKTvsul58fMBX/JX9ZGKjrHuNhwWwaE=; b=lNXtjk4swRPraYzy5kMl4Ow/5aSxcVdyAS2aTKwq2Jle81xfRh2Me9KVYNKHXxuWdT RCvBdXUbxdiq0NROahYAJp8u2+V1zbp/0ut+jpqu0BfELqL/qAU6MOVYCSqk9HkuSi15 qBmV6YYWLol2VQnMXEkq8Ilc9RM5JyFaHUZRPNwCT8AIkO3T/4T/dEBfg+kGRgwrcDDC 92oWPE3NmEKEN7shghJ4H1zRe8mA9LinaAwYSkbzEstEyopGVQ/eKPMvNcyfTR50pbZ2 V4RlzQCt5JqePpRWlUmqBr0Xl996qQtQguHNVaqowP7fjUM9X3HwXi0SJ0vCDGe3EoIn lWQA== X-Gm-Message-State: AHQUAuavgX25FJKEaoO/aG3e3OHaLaUbXKX6Hy7sx1ClMIyC0UPNEtuJ Zn908wSdK4v7N+jxbpLfTx5pFobDRNHZWx52LgI= X-Received: by 2002:ac8:445a:: with SMTP id m26mr13488848qtn.212.1551101947115; Mon, 25 Feb 2019 05:39:07 -0800 (PST) MIME-Version: 1.0 References: <20190225123615.49bce7cd@canb.auug.org.au> In-Reply-To: From: Arnd Bergmann Date: Mon, 25 Feb 2019 14:38:50 +0100 Message-ID: Subject: Re: linux-next: manual merge of the sound tree with the arm-soc tree To: Sameer Pujar Cc: Takashi Iwai , Stephen Rothwell , Olof Johansson , ARM , Linux Next Mailing List , Linux Kernel Mailing List , Thierry Reding , Mark Brown , Liam Girdwood , DTML , Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 25, 2019 at 12:24 PM Sameer Pujar wrote: > On 2/25/2019 4:44 PM, Takashi Iwai wrote: > > On Mon, 25 Feb 2019 10:19:15 +0100, Arnd Bergmann wrote: > >> On Mon, Feb 25, 2019 at 2:36 AM Stephen Rothwell wrote: > >> I see this property being used in commit c0bde003a013 ("ALSA: > >> hda/tegra: sound card name from device tree"), which removes > >> a questionable use of the root compatible property, replacing > >> it with the new 'nvidia,model' property. We don't do this for any > >> other subsystem, so why does the sound subsystem export > >> information about the board as a string here? > > The sound subsystem exports merely some understandable name string > > for the given sound card object, and that was composed from the > > compatible string in the past, which turned out to be useless on some > > configs. > > > > But this kind of addition is an extremely bad manner, I'm fine to > > revert these (at best with a better alternative). This isn't about > > any functionality but rather some readable information that isn't a > > part of API. It is not extremely bad, but it is at the minimum surprising. > The motivation for adding custom sound card name is following, > 1. When for boards, multiple HDMI/DP ports are exposed, it is sometimes > necessary to know the default port or any customization for that matter. > Audio userspace can distinguish based on the sound card names. > 2. Multiple sound cards can coexist for a platform, the indication of > particular > audio path is useful. > 3. It can help to customize audio paths. > Generally people use "*,model" property in DT to name the sound complex. > Ex: "samsung,model" [sound/soc/samsung/snow.c] > "rockchip,model" [sound/soc/rockchip/rockchip_rt5645.c] I see, I had not noticed those before. They do seem a little unusual, and inconsistent, as the samsung sames are always names the board there, but rockchip doesn't: one board names it just "I2C", the other one uses "VEYRON-I2S", and the example in the documentation lists "ROCKCHIP-I2S" and "Analog audio output", each of them following different naming systems. In Documentation/devicetree/bindings/sound/qcom,apq8096.txt, a "qcom,model" property is listeds as "Obsolete", and replaced by a "model" property. This is in turn also used on amlogic, freescale, and some samsung platforms. My impression here is that the idea of passing a model name through DT is well established, but for new stuff, we probably want to standardize on plain "model" rather than "$vendor,model". Arnd