Skip to content

Commit 11f9192

Browse files
hadessbroonie
authored andcommitted
ASoC: tlv320aix31xx: Add ACPI match for Lenovo 100S
The Lenovo 100S netbook has a codec controller for which there is a driver, but doesn't know how to access the device. This adds the necessary ACPI table for the driver to find the device. Device (TTLV) { Name (_ADR, Zero) // _ADR: Address Name (_HID, "10TI3100") // _HID: Hardware ID Name (_CID, "10TI3100") // _CID: Compatible ID Name (_DDN, "TI TLV320AIC3100 Codec Controller ") // _DDN: DOS Device Name Name (_UID, One) // _UID: Unique ID Signed-off-by: Bastien Nocera <[email protected]> Tested-by: Jan Schmidt <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent bafcbfe commit 11f9192

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sound/soc/codecs/tlv320aic31xx.c

+10
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/i2c.h>
2929
#include <linux/gpio.h>
3030
#include <linux/regulator/consumer.h>
31+
#include <linux/acpi.h>
3132
#include <linux/of.h>
3233
#include <linux/of_gpio.h>
3334
#include <linux/slab.h>
@@ -1280,10 +1281,19 @@ static const struct i2c_device_id aic31xx_i2c_id[] = {
12801281
};
12811282
MODULE_DEVICE_TABLE(i2c, aic31xx_i2c_id);
12821283

1284+
#ifdef CONFIG_ACPI
1285+
static const struct acpi_device_id aic31xx_acpi_match[] = {
1286+
{ "10TI3100", 0 },
1287+
{ }
1288+
};
1289+
MODULE_DEVICE_TABLE(acpi, aic31xx_acpi_match);
1290+
#endif
1291+
12831292
static struct i2c_driver aic31xx_i2c_driver = {
12841293
.driver = {
12851294
.name = "tlv320aic31xx-codec",
12861295
.of_match_table = of_match_ptr(tlv320aic31xx_of_match),
1296+
.acpi_match_table = ACPI_PTR(aic31xx_acpi_match),
12871297
},
12881298
.probe = aic31xx_i2c_probe,
12891299
.remove = aic31xx_i2c_remove,

0 commit comments

Comments
 (0)