Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2854467pxb; Mon, 18 Oct 2021 03:23:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqsxRNvw7aafrp3sQk3UZqmDLS0GRUE2AS7S9XeLOHQjXAGcRPDCCTPxlGKU2v8K0bIysE X-Received: by 2002:a17:902:c713:b0:13f:295d:803c with SMTP id p19-20020a170902c71300b0013f295d803cmr26640211plp.46.1634552629154; Mon, 18 Oct 2021 03:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634552629; cv=none; d=google.com; s=arc-20160816; b=U69v1pGCCeRaOYBJ23XuCoB7/XT2J5mlDOIXhN2jsnAESaCqMcLemB14HGO9lYqTxN WR0tYh2U8dTVt+yQ/0uYap6HCfRYWZj0AqmzYKEFssugztDBeGK/vhU63TuzR9q9/W6K D4l+TSUVx8AN1/4M0d0n2LHUgF9SqLqUsvqvBwXXlAvfvr1h1+YIMgnIKNHfADZ2EkD7 BES1u8x3jimJfkDlX6r1b00z+Z825PDls8Msb9057GKryVVRFEn5wLPwS3XHVU6UqxtC dA4IuXzfm/yF+OiMT0+Iy9ZnocD05M+cNfELPTXF8opTpVZKBzecf4ComOH5jFHW2ASC UT1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=7GC/r7oF7FaZ4vYYtjlckZsfjl97Nd102niiiNEyke0=; b=0s22ZQKa1BX0LBBW/etSt1cpAhFWgxOI/e1kPjU2R7BIqSshte+ZST+SFqP5paLZKF HDWE9mkgf6sI0MnyrCsJkPhfV3HFmOU1bp6NfousPyqp5Vy2QAeJ16HKmkmkEDijnRKA HMguAeOUfCq0WuNrMcKR5PBCJS1AaQ2jZ4y8OwD2sHFlI/vOAsrZyHzw2UveOuN9Cb23 tBsLFBbeDI7lqF1JYO6r2BIgtFJT+o2NJx7mwzFd7E6c8z8d4DIQmiSMw+K9q+Lpe21z DLJFn3QTsp3z//rgtzpIsapa34cOv9IUAU3lN9XJUayPkR52v3w+nULbAgn4678+jr7c 5Fcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=OghATFW5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk6si13542080pjb.0.2021.10.18.03.23.36; Mon, 18 Oct 2021 03:23:49 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=OghATFW5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231676AbhJRKXy (ORCPT + 99 others); Mon, 18 Oct 2021 06:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231855AbhJRKXU (ORCPT ); Mon, 18 Oct 2021 06:23:20 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDF5CC06161C for ; Mon, 18 Oct 2021 03:21:09 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id z77-20020a1c7e50000000b0030db7b70b6bso9829145wmc.1 for ; Mon, 18 Oct 2021 03:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=7GC/r7oF7FaZ4vYYtjlckZsfjl97Nd102niiiNEyke0=; b=OghATFW5VHSslzpfS5gkkA3/wlUiyyp1eis6npEz+q00Ysaim+UMA3aq/59CpBm3sw xsgz5lLt1yZ90HXx0+Zb99O7Dj6PQlMsZYE7CuH0bJAL8QmybrshSuijhh9Vnzl9izgC xioP+eojPe9F21OJuHl8mpZfK19IRHt0psbKuq8q38MZOGSfEnwIp0/d0duLLLhWFrjC XlhQZwF1kEsxPUuFiEtQIa6aLHq0fc8mnMtBBwFPqL6Bh0YUrIiPT2VeL9tgAVz8Aqg6 nE/phqoMR4WvNkv+U7wd4GP3cEApRXz3D4JcS5QYxcy+pSqUXvBEI20CCcuSkwMo/9ed GYow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=7GC/r7oF7FaZ4vYYtjlckZsfjl97Nd102niiiNEyke0=; b=Uaf0o+VwZrkZiucggLSJgrlSz1G9fCnlDF1lr+GseJg8obY+QxFJyetFa7XeAruguj IZcuqHvgrIVjIosLeHm5H0Q2C2mS+VvLcwtW38fQ3vaFHatdiseWHS+PUbQqfog+bSwt IpNkuK8J4UUha5kX4Xa/bbxRGWjHu7UtECvwkFeOh/OAppnkrqhv3m2BgOv+zrF5bFkd 6OkfLSkFYhYWZr9yj4tTNh2m0pSUsSivT5Gbn/YrqX6+Lh8jTzl11LbG7e3cIgmx5zR8 4QmNZkHsTDkHNBsY+yMfh8OmaEzeZSNbdF5MWp3TWmqMJ2MQPCk65FaIB9sdAiu/IgcA mkdg== X-Gm-Message-State: AOAM531oG+sHrZrasrU4p202gNfcEoQXzHkTvArEL0qSBqNAZYrlIQW7 I3eFJbu3uwPhVb299dd13Q8P7A== X-Received: by 2002:a1c:4d06:: with SMTP id o6mr42793789wmh.137.1634552468356; Mon, 18 Oct 2021 03:21:08 -0700 (PDT) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id m15sm12311398wmq.0.2021.10.18.03.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 03:21:08 -0700 (PDT) References: <20211017160028.23318-1-christianshewitt@gmail.com> User-agent: mu4e 1.6.6; emacs 27.1 From: Jerome Brunet To: Christian Hewitt , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Kevin Hilman , Neil Armstrong , Martin Blumenstingl , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Matthias Reichl Subject: Re: [PATCH] ASoC: meson: implement driver_name for snd_soc_card in meson-card-utils Date: Mon, 18 Oct 2021 12:20:03 +0200 In-reply-to: <20211017160028.23318-1-christianshewitt@gmail.com> Message-ID: <1j1r4ivdkc.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 17 Oct 2021 at 16:00, Christian Hewitt wrote: > Implement driver_name to provide an alternative to card_name for userspace > configuration of Amlogic audio cards. > > Suggested-by: Matthias Reichl > Signed-off-by: Christian Hewitt > --- > The meson AIU/AXG drivers currently require alsa confs based on the board > model name which is unique to each board. This is very flexible for audio > use-cases, but not very maintainable for distros with a single use-case > that need to support a large number of different Amlogic boards. Using a > driver name to match the card conf instead of card/model name reduces the > number of confs needed in the LibreELEC (Kodi) distro from 41 to 2. > > sound/soc/meson/meson-card-utils.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c > index 415cc0046e4b..29b0174f4b5c 100644 > --- a/sound/soc/meson/meson-card-utils.c > +++ b/sound/soc/meson/meson-card-utils.c > @@ -302,6 +302,7 @@ int meson_card_probe(struct platform_device *pdev) > > priv->card.owner = THIS_MODULE; > priv->card.dev = dev; > + priv->card.driver_name = dev->driver->name; > priv->match_data = data; I was preparing something similar to help with alsa-ucm so Acked-by: Jerome Brunet > > ret = snd_soc_of_parse_card_name(&priv->card, "model");