* [PATCH v1] ALSA: hda: cs35l41: Print amp configuration after bind
@ 2023-08-02 12:12 Stefan Binding
2023-08-02 13:43 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Binding @ 2023-08-02 12:12 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai
Cc: alsa-devel, linux-kernel, patches, Stefan Binding
Print amp configuration information to be able to confirm ACPI
_DSD information (and other useful info) for each amp on each
system using CS35L41, without having to get the acpidump.
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
---
sound/pci/hda/cs35l41_hda.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c
index 98feb5ccd5866..825e551be9bb8 100644
--- a/sound/pci/hda/cs35l41_hda.c
+++ b/sound/pci/hda/cs35l41_hda.c
@@ -1124,6 +1124,13 @@ static int cs35l41_hda_bind(struct device *dev, struct device *master, void *mas
pm_runtime_mark_last_busy(dev);
pm_runtime_put_autosuspend(dev);
+ dev_info(cs35l41->dev,
+ "CS35L41 Bound - SSID: %s, BST: %d, VSPK: %d, CH: %c, FW EN: %d, SPKID: %d\n",
+ cs35l41->acpi_subsystem_id, cs35l41->hw_cfg.bst_type,
+ cs35l41->hw_cfg.gpio1.func == CS35l41_VSPK_SWITCH,
+ cs35l41->hw_cfg.spk_pos ? 'R' : 'L',
+ cs35l41->firmware_running, cs35l41->speaker_id);
+
return ret;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] ALSA: hda: cs35l41: Print amp configuration after bind
2023-08-02 12:12 [PATCH v1] ALSA: hda: cs35l41: Print amp configuration after bind Stefan Binding
@ 2023-08-02 13:43 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2023-08-02 13:43 UTC (permalink / raw)
To: Stefan Binding
Cc: Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-kernel, patches
On Wed, 02 Aug 2023 14:12:35 +0200,
Stefan Binding wrote:
>
> Print amp configuration information to be able to confirm ACPI
> _DSD information (and other useful info) for each amp on each
> system using CS35L41, without having to get the acpidump.
>
> Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Thanks, applied now to for-next branch.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-02 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-02 12:12 [PATCH v1] ALSA: hda: cs35l41: Print amp configuration after bind Stefan Binding
2023-08-02 13:43 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox