Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp382283lqh; Thu, 28 Mar 2024 05:14:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBdVLPzd43K1GZ4gLvSqLPVPEN1OtM/f4uk+Zbo2K704bey4lnARH71ZbxxVo697g9tmeEk+d1uwaPLSIZFy8vZZAISmzafoV85NORWQ== X-Google-Smtp-Source: AGHT+IEK7HHDIgHTUpcmn3KGXt6t5h+Rx6FKj/Jz8+4ntZ4Pq0QD6m41cNIiF3UNOH/gZyoULu/k X-Received: by 2002:a50:ab14:0:b0:56b:e089:56ed with SMTP id s20-20020a50ab14000000b0056be08956edmr2020576edc.39.1711628072130; Thu, 28 Mar 2024 05:14:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711628072; cv=pass; d=google.com; s=arc-20160816; b=OYDPa5aJNWyvsQH94LGctKPm0Hk0h/6Xqqb2psQBUNXAlTBTiyAsttChbTwKl+2e/V jg2wxRcLEbHMfUEbOd09jujeq7t7mvvvlgq/ssj6+kDBZk4cBGWu2718f/s+kLoiUuoN BMDO6+s6hcAq36LCbSV1lcskmMa9FXiuQwehwFhUgnN1XHyqqHtx2eKezWhwe07nA8ti 8h0rLWzAXSjWxFmiyoI8Okx0FkBhkZ6yf1lJHgbPSMzOt+Ey5lzAWFVBqLfKRFR0Zl9j LrkU7yGQr83Ok7YbWwSE1ur+Vo7nUviBiDYwhtckB5SBnaWCoyOl8XCPtd7o80I+gG+v cqEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=/YcgOhBnjkdBqrLgF/BoqdsdMXoJw5NAe63KAucPw24=; fh=z7rId80B5i8icwLN4amYRAcHgJDKcj48lemekrTKtzM=; b=kNbryaCceYOV6UdTNXzQ60O+mpYnUq5wl5/94D2yZ5jLs5ciUFbH63oGFPDUo/HxKM rPhs1HULKPOjIiu7pfaBpQwBf4hAp0k2NDUDrcWEfmmpBUgqwtfnhNGnFypkD5g13iGa ws3M0eNavBp7/e0uH90/TJpbk2ahoT8dmW+fAOmiZsvCs3W/oC8knraNBdL+pjqSsdg6 ILmn1tsOtfrnUm1PtvWpWqA5f+//HF0VqrAePQoGQWzGvexXAAaq61YH8MZailrl0zx6 P7znEKqCP1VurUk4JF/t+b7TyfQCudggQ3cl/ZY1G7vcxh586fH1Q8ZZAMQ59RJ2Ij7P +Zww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=K+2h2g3O; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-122878-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122878-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w10-20020a50d78a000000b0056beb68294asi701023edi.565.2024.03.28.05.14.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 05:14:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122878-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=K+2h2g3O; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-122878-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122878-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D71071F2A62D for ; Thu, 28 Mar 2024 12:14:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56B177EF0D; Thu, 28 Mar 2024 12:14:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="K+2h2g3O" Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B89917EEEA; Thu, 28 Mar 2024 12:14:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711628060; cv=none; b=CuzNnI0Zlc0JYNX4eoifDdBC73mUONZ9uBuRL/HKK+QRvA3x+Emd62rgo2BerT6jbb3WniG370+Q6dTQqGEzVpdKseWc8WJGTprI2ACwcrDs9doV/fh5+PVVr1u/HqNGc75pC2UmIwqP5xB7/PlxCOkaMpAgeYOtq29ETGpo9WI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711628060; c=relaxed/simple; bh=qfJIVtEGnV5PBDcNxLtv8PQ04/VnkAd3XqvIE+epqb4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=h4eN4cJC18PQxvmcT7NlMzzQ78sgi7p+LnHJHNrPXPFg+AjC8lR0gUhSJIW7SaERimkNxjuefiWI8S0VdRAkKt5R7LkWiN+w//wrnM7Pd+xU2zgRhdb8N3MH/9RbWw6Qko+pQJvPQPBCHJeZWDDfgAKoQDV9kpB+N95P/vxmzmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=K+2h2g3O; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42S80qwZ031605; Thu, 28 Mar 2024 07:14:06 -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=/ YcgOhBnjkdBqrLgF/BoqdsdMXoJw5NAe63KAucPw24=; b=K+2h2g3OHbggsdkiS JyRxNyxDovd/rAg6P/5KnH2l4p2rEmEpKHJJD0tMys3gL3rkiRtMDCNIFSf8mSXr NavMOLZYEDG1dV5W0EtwpGKLm/mVlo3qUTYx9azKkVjm87yLZaTA86SlppgAKd4Q Od3R1CdlGDSwsUWKPR6MVpXBxwcPxqtrQys+VIhKb8PI1bJmR3H2TQS0n4pOf0Sp qQMEKFEeJkfP6YIM4UsL8yfMWkAJv0CHZyaSI6kLOzm6gQHxQhZzYhXgpPjWFt+X opiJym64Lzyg8WgPoODE0xXrUxbUyO3AmP/Nv8WD1rFCRoSxgWzS1QvHSR5EpfaL IrqjQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3x4k7k2ngu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Mar 2024 07:14:06 -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.1544.4; Thu, 28 Mar 2024 12:14:04 +0000 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Thu, 28 Mar 2024 12:14:04 +0000 Received: from EDIN6ZZ2FY3.ad.cirrus.com (EDIN6ZZ2FY3.ad.cirrus.com [198.61.64.19]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 1D93D820243; Thu, 28 Mar 2024 12:14:04 +0000 (UTC) From: Simon Trimmer To: CC: , , , , "Simon Trimmer" Subject: [PATCH] ALSA: hda: cs35l56: Add ACPI device match tables Date: Thu, 28 Mar 2024 12:13:55 +0000 Message-ID: <20240328121355.18972-1-simont@opensource.cirrus.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: BzIDj9hR-Rk9Q3hSWONBHy2LpF0DPg7R X-Proofpoint-ORIG-GUID: BzIDj9hR-Rk9Q3hSWONBHy2LpF0DPg7R X-Proofpoint-Spam-Reason: safe Adding the ACPI HIDs to the match table triggers the cs35l56-hda modules to be loaded on boot so that Serial Multi Instantiate can add the devices to the bus and begin the driver init sequence. Signed-off-by: Simon Trimmer Fixes: 73cfbfa9caea ("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier") --- sound/pci/hda/cs35l56_hda_i2c.c | 13 +++++++++++-- sound/pci/hda/cs35l56_hda_spi.c | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/sound/pci/hda/cs35l56_hda_i2c.c b/sound/pci/hda/cs35l56_hda_i2c.c index 13beee807308..40f2f97944d5 100644 --- a/sound/pci/hda/cs35l56_hda_i2c.c +++ b/sound/pci/hda/cs35l56_hda_i2c.c @@ -56,10 +56,19 @@ static const struct i2c_device_id cs35l56_hda_i2c_id[] = { {} }; +static const struct acpi_device_id cs35l56_acpi_hda_match[] = { + { "CSC3554", 0 }, + { "CSC3556", 0 }, + { "CSC3557", 0 }, + {} +}; +MODULE_DEVICE_TABLE(acpi, cs35l56_acpi_hda_match); + static struct i2c_driver cs35l56_hda_i2c_driver = { .driver = { - .name = "cs35l56-hda", - .pm = &cs35l56_hda_pm_ops, + .name = "cs35l56-hda", + .acpi_match_table = cs35l56_acpi_hda_match, + .pm = &cs35l56_hda_pm_ops, }, .id_table = cs35l56_hda_i2c_id, .probe = cs35l56_hda_i2c_probe, diff --git a/sound/pci/hda/cs35l56_hda_spi.c b/sound/pci/hda/cs35l56_hda_spi.c index a3b2fa76663d..7f02155fe61e 100644 --- a/sound/pci/hda/cs35l56_hda_spi.c +++ b/sound/pci/hda/cs35l56_hda_spi.c @@ -56,10 +56,19 @@ static const struct spi_device_id cs35l56_hda_spi_id[] = { {} }; +static const struct acpi_device_id cs35l56_acpi_hda_match[] = { + { "CSC3554", 0 }, + { "CSC3556", 0 }, + { "CSC3557", 0 }, + {} +}; +MODULE_DEVICE_TABLE(acpi, cs35l56_acpi_hda_match); + static struct spi_driver cs35l56_hda_spi_driver = { .driver = { - .name = "cs35l56-hda", - .pm = &cs35l56_hda_pm_ops, + .name = "cs35l56-hda", + .acpi_match_table = cs35l56_acpi_hda_match, + .pm = &cs35l56_hda_pm_ops, }, .id_table = cs35l56_hda_spi_id, .probe = cs35l56_hda_spi_probe, -- 2.34.1