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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92460C433EF for ; Sun, 17 Oct 2021 16:00:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6FBF961054 for ; Sun, 17 Oct 2021 16:00:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241871AbhJQQCr (ORCPT ); Sun, 17 Oct 2021 12:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237507AbhJQQCp (ORCPT ); Sun, 17 Oct 2021 12:02:45 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A12C7C06161C for ; Sun, 17 Oct 2021 09:00:35 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id w14so60264877edv.11 for ; Sun, 17 Oct 2021 09:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=8kT8uxQmVp/XocDx24aLnGXhZi2Xo78WndzfJoxUXf4=; b=qrLR02zphJEnatJargVO7TxpS34lT74UJQ7lr8oE5lRkxlgLQ8ArQlSrMq0GflGD4D 7dsC4ii8/jjoRXXFbXupZOzWH72mJb3LlTLH51cGjaN1yZtLeYc/5IbApZp/Vef1FWLv O/AxFsGAUDTwmk8J170VCDyJIOH8E6WyzOhazTkVUwtTpQvU++ESv905EVNkdr2mXK2S 1DDGvigBCQr5Rvcn8nh1zzwlQEdsXI/GzB8f6/MOmg4Kw9q9PTawl64ev7SjmyS1jQoc YTIdRXAompcx+ZsrJvdyZdBUbv6WIDveBO4RmE7looBbHelfcJlV7jz1ubenysiOzKEZ cvxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8kT8uxQmVp/XocDx24aLnGXhZi2Xo78WndzfJoxUXf4=; b=n2Aut80nYzNy/1M4kOx6L6Jvn+LAbswG5+OsuPSF1KZ8TN9yTYAXx1yYB3ncg9+Bax sfEV8iwsxEzMpBC+mNjITQkxU0s3NtADFsxjlsG0mNffoOY0xzzs6pnBSz0VejHsP/fV C+DQgsME98hk7zAfiIK85wcOgCflSDakgoN+I0f5V+1rrlQgS1D0LbvelqmJT0BtV6Fb 5BOv9Q1ey/kzk/kAmbKqS5zXHRT/1WX86ur8D3S7CPpI/wxuD+NREtN0ocHTsFWnfBN8 Dy8A74yOSduHCOfFP9eUPZR4s8KZWLjmj0bgONF4wdVa0Zpgf9158jsutCrOZ5gxYb1e I1/w== X-Gm-Message-State: AOAM5317EngO1l25HopYMZOFkTlS2RfdodWzzdUKaJIQwgUjnCqNqn86 AvxolHUMJ4iXR/B+da/UuJY= X-Google-Smtp-Source: ABdhPJwTB0vfk1m5xsCYFd2NXY/+qkTRYqLJ8qato/ZDGtv+VE5V+xBNUFGnEFhH9R8hZ1fiItRyuA== X-Received: by 2002:a05:6402:3547:: with SMTP id f7mr36201251edd.395.1634486434122; Sun, 17 Oct 2021 09:00:34 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id yz9sm7693135ejb.51.2021.10.17.09.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 09:00:33 -0700 (PDT) From: Christian Hewitt To: Jerome Brunet , 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: Christian Hewitt , Matthias Reichl Subject: [PATCH] ASoC: meson: implement driver_name for snd_soc_card in meson-card-utils Date: Sun, 17 Oct 2021 16:00:28 +0000 Message-Id: <20211017160028.23318-1-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; ret = snd_soc_of_parse_card_name(&priv->card, "model"); -- 2.17.1 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C180BC433EF for ; Sun, 17 Oct 2021 16:00:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 77EFF61054 for ; Sun, 17 Oct 2021 16:00:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 77EFF61054 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bYqk1i2ZXQuwA4FVm5BgnV07/Mj6kFO2JEi1dWeTV9c=; b=XvaBUcEF1FT3Dg gsP4LOW9fvhdVO/QW6H2VYeDw+dKGxQxj4DQujQan2lT2crtcS6vg6nhUPSVeHROzcqP2UcyI7jUz rhDqCL0ZKWNbTj3Lwf53lFgYhC59lWF9U4y5XQcuN914NiFB/UwNr9k1Brb6up06F+IM4trKXoSzW V5MOcPNyQiXgfz8zzvjQNVtP1a/DXYIdMgPy+R+OcxIbmKDrVuTESzPLKsitQ+lV9sluhqfo6Xsmh mj60r07XAAjNzHBcOmIFhdlhbCCnHwUsBGm9X6Xcbaa6Otm8pNhEMelfq1RjL1CxhX01t5N6ae1Ti /HXwalVby12lIw0w7E+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc8ae-00CwdT-9y; Sun, 17 Oct 2021 16:00:48 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc8aS-00CwcI-Qv; Sun, 17 Oct 2021 16:00:38 +0000 Received: by mail-ed1-x52c.google.com with SMTP id d9so60266290edh.5; Sun, 17 Oct 2021 09:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=8kT8uxQmVp/XocDx24aLnGXhZi2Xo78WndzfJoxUXf4=; b=qrLR02zphJEnatJargVO7TxpS34lT74UJQ7lr8oE5lRkxlgLQ8ArQlSrMq0GflGD4D 7dsC4ii8/jjoRXXFbXupZOzWH72mJb3LlTLH51cGjaN1yZtLeYc/5IbApZp/Vef1FWLv O/AxFsGAUDTwmk8J170VCDyJIOH8E6WyzOhazTkVUwtTpQvU++ESv905EVNkdr2mXK2S 1DDGvigBCQr5Rvcn8nh1zzwlQEdsXI/GzB8f6/MOmg4Kw9q9PTawl64ev7SjmyS1jQoc YTIdRXAompcx+ZsrJvdyZdBUbv6WIDveBO4RmE7looBbHelfcJlV7jz1ubenysiOzKEZ cvxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8kT8uxQmVp/XocDx24aLnGXhZi2Xo78WndzfJoxUXf4=; b=SXiR5x612h5VXf63AubKpMUX3eCoa/qCn2e6TI20DG3mf1ykEtQYldkcofp1Kg9/dM mcgxKF0exkg0jc4+6sEdhQOQrelLgiSdiUkvjD7/jZUt+bg8ClB8wSh5/bkyu++8wuEv Ho2E125Z8jpQcJAyxDZnHpWiCgVqCiPTMq1KQZDU2ICec41M2T3jhGOK0tdUYmjIlZQK Sq0jc2cfG0wimB/0iFf/m4fj+3v7ipiSGYNKFwI6O9lTXuWjKwPMHCKg5mvBh9jBWtSb tmxdbIQ5L1nGQ1qrBs6fSYzlRfZ96AsNjX77C4xKiwFH8oZZadbd5Y4sDjgOgwkQdkI7 poqw== X-Gm-Message-State: AOAM533u8SasdT3M3s0fCZol9cr1QRNG/i2g5qiYZnPVo3Lx8o76orhH 0KQZVfVf40kX9KIQgQXujnI= X-Google-Smtp-Source: ABdhPJwTB0vfk1m5xsCYFd2NXY/+qkTRYqLJ8qato/ZDGtv+VE5V+xBNUFGnEFhH9R8hZ1fiItRyuA== X-Received: by 2002:a05:6402:3547:: with SMTP id f7mr36201251edd.395.1634486434122; Sun, 17 Oct 2021 09:00:34 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id yz9sm7693135ejb.51.2021.10.17.09.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 09:00:33 -0700 (PDT) From: Christian Hewitt To: Jerome Brunet , 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: Christian Hewitt , Matthias Reichl Subject: [PATCH] ASoC: meson: implement driver_name for snd_soc_card in meson-card-utils Date: Sun, 17 Oct 2021 16:00:28 +0000 Message-Id: <20211017160028.23318-1-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211017_090036_913464_506CBFEC X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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; ret = snd_soc_of_parse_card_name(&priv->card, "model"); -- 2.17.1 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96338C433EF for ; Sun, 17 Oct 2021 16:01:40 +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 4D96860E52 for ; Sun, 17 Oct 2021 16:01:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4D96860E52 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=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 C4CE0172D; Sun, 17 Oct 2021 18:00:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C4CE0172D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1634486496; bh=Mwnn7mF0+MZFi+nZYJTYQ222Jj9mD5UFXcSlMqtOrX0=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=nfcSW6VXvaNgk2bQUfep7nqgn6OMHZkQ0F03Ba7okov77pQS3KupB9zvt9653DzoQ mWFyKlKo6VShz0S79mJYCS/kHGY5R+25a2UXOWJvUD2YhhPQGBGuv1Fi7QoEyqD1v7 7d2/sFWCEfYHvoHPAn4R6rx/pgi3CG5XwGV3vrZ4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 463EAF80254; Sun, 17 Oct 2021 18:00:46 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 8D119F80256; Sun, 17 Oct 2021 18:00:44 +0200 (CEST) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C8C3EF800E5 for ; Sun, 17 Oct 2021 18:00:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C8C3EF800E5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qrLR02zp" Received: by mail-ed1-x52e.google.com with SMTP id g10so60657990edj.1 for ; Sun, 17 Oct 2021 09:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=8kT8uxQmVp/XocDx24aLnGXhZi2Xo78WndzfJoxUXf4=; b=qrLR02zphJEnatJargVO7TxpS34lT74UJQ7lr8oE5lRkxlgLQ8ArQlSrMq0GflGD4D 7dsC4ii8/jjoRXXFbXupZOzWH72mJb3LlTLH51cGjaN1yZtLeYc/5IbApZp/Vef1FWLv O/AxFsGAUDTwmk8J170VCDyJIOH8E6WyzOhazTkVUwtTpQvU++ESv905EVNkdr2mXK2S 1DDGvigBCQr5Rvcn8nh1zzwlQEdsXI/GzB8f6/MOmg4Kw9q9PTawl64ev7SjmyS1jQoc YTIdRXAompcx+ZsrJvdyZdBUbv6WIDveBO4RmE7looBbHelfcJlV7jz1ubenysiOzKEZ cvxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8kT8uxQmVp/XocDx24aLnGXhZi2Xo78WndzfJoxUXf4=; b=6s7JupVoWD6d5xBZ1fIrWv1M8w3muFPl07mQLG5trnhfYTVIgB0VK3JXMxeVTX39+x cAhAd4PIwlqwLCOc4/mIRdVc7pp4WtPq6nMbTDLbliZH8oVv2YjUlB7ICt01XA/PYxwt m9D26mU8apoXVuvfyYtTv8gLx4lC63qtj+Q2mOJbT9Wh6ndoVZdh7RQsBb14u5ofiQNi Yr9holF63Mea6M1HnKkocu1HubpN2wlr6vNE4hWGner+ss7CcE0d59g8QsjV7TD6lB+g RnPRWnHwnWLBbhtSeICvbq4mcUFnxN9PC2gafnxjzDGdgftNxfB8pKWk4UcTFJlHUKPg ABGw== X-Gm-Message-State: AOAM531+2BSrebd4q0B6evvP7UOxxhIb6N7yDmXO6Nm129wZKzRl02dM k3iiRL6yTxABZ98IjV1T2aI= X-Google-Smtp-Source: ABdhPJwTB0vfk1m5xsCYFd2NXY/+qkTRYqLJ8qato/ZDGtv+VE5V+xBNUFGnEFhH9R8hZ1fiItRyuA== X-Received: by 2002:a05:6402:3547:: with SMTP id f7mr36201251edd.395.1634486434122; Sun, 17 Oct 2021 09:00:34 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id yz9sm7693135ejb.51.2021.10.17.09.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 09:00:33 -0700 (PDT) From: Christian Hewitt To: Jerome Brunet , 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 Subject: [PATCH] ASoC: meson: implement driver_name for snd_soc_card in meson-card-utils Date: Sun, 17 Oct 2021 16:00:28 +0000 Message-Id: <20211017160028.23318-1-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 Cc: Matthias Reichl , Christian Hewitt 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" 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; ret = snd_soc_of_parse_card_name(&priv->card, "model"); -- 2.17.1 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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25768C433F5 for ; Sun, 17 Oct 2021 16:02:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D6F046023B for ; Sun, 17 Oct 2021 16:02:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D6F046023B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dotJ3eXannUUpxONIkFvdwAPWz0le8CLQhJf/m5Pf/E=; b=iYN37ULpN9HoH6 pARLF2kiyhQRVg20h/NShDwEAwfmFWXesV6x1j3+LAu2oOOh3l57j2j+VoDMfpY4d6OO/AStZig8X HzX1HDetIl3RzsQ6SrFGgjPfbD30MigZ/MEoEUeRcQeYttlZqBDH3HwChMXwsdCjgWZFVhLCzdbUZ +JezEvYTa/2fJh9/Km37rZBU3slNcohiOLk8WBTfAfVwDg/H0nT9pznWurzxeo0waE/Cm4ZXFGBg0 2IAGdxEHb2IHkpdUYTi3oR801z9HqHHabTVa4nJiG2cIs2M3/hznhjNh9V400h4ijk2bwWxu9D6SF GRrb1NoF76j341ExQaBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc8aW-00Cwch-29; Sun, 17 Oct 2021 16:00:40 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc8aS-00CwcI-Qv; Sun, 17 Oct 2021 16:00:38 +0000 Received: by mail-ed1-x52c.google.com with SMTP id d9so60266290edh.5; Sun, 17 Oct 2021 09:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=8kT8uxQmVp/XocDx24aLnGXhZi2Xo78WndzfJoxUXf4=; b=qrLR02zphJEnatJargVO7TxpS34lT74UJQ7lr8oE5lRkxlgLQ8ArQlSrMq0GflGD4D 7dsC4ii8/jjoRXXFbXupZOzWH72mJb3LlTLH51cGjaN1yZtLeYc/5IbApZp/Vef1FWLv O/AxFsGAUDTwmk8J170VCDyJIOH8E6WyzOhazTkVUwtTpQvU++ESv905EVNkdr2mXK2S 1DDGvigBCQr5Rvcn8nh1zzwlQEdsXI/GzB8f6/MOmg4Kw9q9PTawl64ev7SjmyS1jQoc YTIdRXAompcx+ZsrJvdyZdBUbv6WIDveBO4RmE7looBbHelfcJlV7jz1ubenysiOzKEZ cvxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8kT8uxQmVp/XocDx24aLnGXhZi2Xo78WndzfJoxUXf4=; b=SXiR5x612h5VXf63AubKpMUX3eCoa/qCn2e6TI20DG3mf1ykEtQYldkcofp1Kg9/dM mcgxKF0exkg0jc4+6sEdhQOQrelLgiSdiUkvjD7/jZUt+bg8ClB8wSh5/bkyu++8wuEv Ho2E125Z8jpQcJAyxDZnHpWiCgVqCiPTMq1KQZDU2ICec41M2T3jhGOK0tdUYmjIlZQK Sq0jc2cfG0wimB/0iFf/m4fj+3v7ipiSGYNKFwI6O9lTXuWjKwPMHCKg5mvBh9jBWtSb tmxdbIQ5L1nGQ1qrBs6fSYzlRfZ96AsNjX77C4xKiwFH8oZZadbd5Y4sDjgOgwkQdkI7 poqw== X-Gm-Message-State: AOAM533u8SasdT3M3s0fCZol9cr1QRNG/i2g5qiYZnPVo3Lx8o76orhH 0KQZVfVf40kX9KIQgQXujnI= X-Google-Smtp-Source: ABdhPJwTB0vfk1m5xsCYFd2NXY/+qkTRYqLJ8qato/ZDGtv+VE5V+xBNUFGnEFhH9R8hZ1fiItRyuA== X-Received: by 2002:a05:6402:3547:: with SMTP id f7mr36201251edd.395.1634486434122; Sun, 17 Oct 2021 09:00:34 -0700 (PDT) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id yz9sm7693135ejb.51.2021.10.17.09.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Oct 2021 09:00:33 -0700 (PDT) From: Christian Hewitt To: Jerome Brunet , 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: Christian Hewitt , Matthias Reichl Subject: [PATCH] ASoC: meson: implement driver_name for snd_soc_card in meson-card-utils Date: Sun, 17 Oct 2021 16:00:28 +0000 Message-Id: <20211017160028.23318-1-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211017_090036_913464_506CBFEC X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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; ret = snd_soc_of_parse_card_name(&priv->card, "model"); -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel