From nobody Thu Sep 11 10:15:11 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69F9DC001DF for ; Wed, 2 Aug 2023 12:13:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233683AbjHBMNh (ORCPT ); Wed, 2 Aug 2023 08:13:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233000AbjHBMNb (ORCPT ); Wed, 2 Aug 2023 08:13:31 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 655D82D70 for ; Wed, 2 Aug 2023 05:13:09 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 372AfO5i009394; Wed, 2 Aug 2023 07:12:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=8 rBFF1JOEa2gQYBCopxKQOjevDVf2/rhuHmRPELguQI=; b=IJkEkMCZ5iseNP5OK aU/VSrAKi/w8tIinONgl9K2AARoLDPAs/bdZddf1zQlPGFKdBamC/VdI16kKazek eraGMvZ3GRRS5GDPYfm1d3DtTC8MqICb1jju0s3mI/bBN6gY3g2TO02vcPAZCUa4 ByswCblnRk+AithPxdPKyzzD+1rEV0gijj4jf+kxNXxkmoIGKBKtdSaKyD3gu4jU YRBjFZ/8W1EXthOECHk0N3IjDQio1Xn7FwEhsUY+4jmwDpS3Bu1gUaLV1bitgvoC F/zBu3Wo9xBnJjslrheyDvl1LDQw8TbRjnT6DqxhdC6rWLZyEzoqLO7P1c4Y1n8X +sbUg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3s4y6juqs5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Aug 2023 07:12:44 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 2 Aug 2023 13:12:43 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.30 via Frontend Transport; Wed, 2 Aug 2023 13:12:43 +0100 Received: from sbinding-cirrus-dsktp2.ad.cirrus.com (unknown [198.90.238.244]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 1F89A15B4; Wed, 2 Aug 2023 12:12:43 +0000 (UTC) From: Stefan Binding To: Jaroslav Kysela , Takashi Iwai CC: , , , Stefan Binding Subject: [PATCH v1] ALSA: hda: cs35l41: Print amp configuration after bind Date: Wed, 2 Aug 2023 13:12:35 +0100 Message-ID: <20230802121235.467358-1-sbinding@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: NEwOoSa2ppwufrcOLRYWrooU3qswq85R X-Proofpoint-ORIG-GUID: NEwOoSa2ppwufrcOLRYWrooU3qswq85R X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- 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, stru= ct device *master, void *mas pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 + 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 =3D=3D CS35l41_VSPK_SWITCH, + cs35l41->hw_cfg.spk_pos ? 'R' : 'L', + cs35l41->firmware_running, cs35l41->speaker_id); + return ret; } =20 --=20 2.34.1