Linux Sound subsystem development
 help / color / mirror / Atom feed
From: "Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>
To: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	Mark Brown <broonie@kernel.org>
Cc: "Cezary Rojewski" <cezary.rojewski@intel.com>,
	linux-sound@vger.kernel.org,
	"Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>
Subject: [PATCH 12/20] ASoC: Intel: avs: boards: Change pcm3168a card name
Date: Mon,  7 Apr 2025 14:41:46 +0200	[thread overview]
Message-ID: <20250407124154.1713039-13-amadeuszx.slawinski@linux.intel.com> (raw)
In-Reply-To: <20250407124154.1713039-1-amadeuszx.slawinski@linux.intel.com>

Rename FE from "avs_pcm3168a" to "AVS I2S PCM3168A".

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
---
 sound/soc/intel/avs/boards/pcm3168a.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/sound/soc/intel/avs/boards/pcm3168a.c b/sound/soc/intel/avs/boards/pcm3168a.c
index 5d0e7a5bdc749..1ebbc92df6b63 100644
--- a/sound/soc/intel/avs/boards/pcm3168a.c
+++ b/sound/soc/intel/avs/boards/pcm3168a.c
@@ -11,6 +11,8 @@
 #include <sound/pcm.h>
 #include <sound/pcm_params.h>
 #include <sound/soc.h>
+#include <sound/soc-acpi.h>
+#include "../utils.h"
 
 static const struct snd_soc_dapm_widget card_widgets[] = {
 	SND_SOC_DAPM_HP("CPB Stereo HP 1", NULL),
@@ -95,10 +97,15 @@ static int avs_create_dai_links(struct device *dev, struct snd_soc_dai_link **li
 
 static int avs_pcm3168a_probe(struct platform_device *pdev)
 {
+	struct snd_soc_acpi_mach *mach;
+	struct avs_mach_pdata *pdata;
 	struct device *dev = &pdev->dev;
 	struct snd_soc_card *card;
 	int ret;
 
+	mach = dev_get_platdata(dev);
+	pdata = mach->pdata;
+
 	card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL);
 	if (!card)
 		return -ENOMEM;
@@ -107,7 +114,12 @@ static int avs_pcm3168a_probe(struct platform_device *pdev)
 	if (ret)
 		return ret;
 
-	card->name = "avs_pcm3168a";
+	if (pdata->obsolete_card_names) {
+		card->name = "avs_pcm3168a";
+	} else {
+		card->driver_name = "avs_pcm3168a";
+		card->long_name = card->name = "AVS I2S PCM3168A";
+	}
 	card->dev = dev;
 	card->owner = THIS_MODULE;
 	card->dapm_widgets = card_widgets;
-- 
2.34.1


  parent reply	other threads:[~2025-04-07 12:41 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-07 12:41 [PATCH 00/20] ASoC: Intel: avs: Update machine board card names Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 01/20] ASoC: Intel: avs: boards: Add Kconfig option for obsolete " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 02/20] ASoC: Intel: avs: Use topology information for endpoint numbers Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 03/20] ASoC: Intel: avs: boards: Change da7219 card name Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 04/20] ASoC: Intel: avs: boards: Change DMIC " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 05/20] ASoC: Intel: avs: boards: Change es8336 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 06/20] ASoC: Intel: avs: boards: Change hdaudio " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 07/20] ASoC: Intel: avs: boards: Change sspX-loopback " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 08/20] ASoC: Intel: avs: boards: Change max98357a " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 09/20] ASoC: Intel: avs: boards: Change max98373 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 10/20] ASoC: Intel: avs: boards: Change max98927 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 11/20] ASoC: Intel: avs: boards: Change nau8825 " Amadeusz Sławiński
2025-04-07 12:41 ` Amadeusz Sławiński [this message]
2025-04-07 12:41 ` [PATCH 13/20] ASoC: Intel: avs: boards: Change probe " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 14/20] ASoC: Intel: avs: boards: Change rt274 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 15/20] ASoC: Intel: avs: boards: Change rt286 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 16/20] ASoC: Intel: avs: boards: Change rt298 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 17/20] ASoC: Intel: avs: boards: Change rt5514 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 18/20] ASoC: Intel: avs: boards: Change rt5663 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 19/20] ASoC: Intel: avs: boards: Change rt5682 " Amadeusz Sławiński
2025-04-07 12:41 ` [PATCH 20/20] ASoC: Intel: avs: boards: Change ssm4567 " Amadeusz Sławiński
2025-04-07 12:46 ` [PATCH 00/20] ASoC: Intel: avs: Update machine board card names Jaroslav Kysela
2025-04-07 13:42 ` Cezary Rojewski
2025-04-08 12:49 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250407124154.1713039-13-amadeuszx.slawinski@linux.intel.com \
    --to=amadeuszx.slawinski@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=cezary.rojewski@intel.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox