mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
ALSA: hda: cs35l56: Add ACPI device match tables
[ Upstream commit 2d0401ee38d43ab0e4cdd02dfc9d402befb2b5c8 ]
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 <simont@opensource.cirrus.com>
Fixes: 73cfbfa9ca
("ALSA: hda/cs35l56: Add driver for Cirrus Logic CS35L56 amplifier")
Message-ID: <20240328121355.18972-1-simont@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3af6c5ac72
commit
4930d7a414
2 changed files with 22 additions and 4 deletions
|
@ -49,9 +49,18 @@ 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 = {
|
static struct i2c_driver cs35l56_hda_i2c_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "cs35l56-hda",
|
.name = "cs35l56-hda",
|
||||||
|
.acpi_match_table = cs35l56_acpi_hda_match,
|
||||||
.pm = &cs35l56_hda_pm_ops,
|
.pm = &cs35l56_hda_pm_ops,
|
||||||
},
|
},
|
||||||
.id_table = cs35l56_hda_i2c_id,
|
.id_table = cs35l56_hda_i2c_id,
|
||||||
|
|
|
@ -49,9 +49,18 @@ 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 = {
|
static struct spi_driver cs35l56_hda_spi_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "cs35l56-hda",
|
.name = "cs35l56-hda",
|
||||||
|
.acpi_match_table = cs35l56_acpi_hda_match,
|
||||||
.pm = &cs35l56_hda_pm_ops,
|
.pm = &cs35l56_hda_pm_ops,
|
||||||
},
|
},
|
||||||
.id_table = cs35l56_hda_spi_id,
|
.id_table = cs35l56_hda_spi_id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue