Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'fix/rt5645' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-rt5645

+12 -1
+12 -1
sound/soc/codecs/rt5645.c
··· 18 18 #include <linux/platform_device.h> 19 19 #include <linux/spi/spi.h> 20 20 #include <linux/gpio.h> 21 + #include <linux/acpi.h> 21 22 #include <sound/core.h> 22 23 #include <sound/pcm.h> 23 24 #include <sound/pcm_params.h> ··· 2657 2656 }; 2658 2657 MODULE_DEVICE_TABLE(i2c, rt5645_i2c_id); 2659 2658 2659 + #ifdef CONFIG_ACPI 2660 + static struct acpi_device_id rt5645_acpi_match[] = { 2661 + { "10EC5645", 0 }, 2662 + { "10EC5650", 0 }, 2663 + {}, 2664 + }; 2665 + MODULE_DEVICE_TABLE(acpi, rt5645_acpi_match); 2666 + #endif 2667 + 2660 2668 static int rt5645_i2c_probe(struct i2c_client *i2c, 2661 2669 const struct i2c_device_id *id) 2662 2670 { ··· 2780 2770 2781 2771 case RT5645_DMIC_DATA_GPIO12: 2782 2772 regmap_update_bits(rt5645->regmap, RT5645_DMIC_CTRL1, 2783 - RT5645_DMIC_1_DP_MASK, RT5645_DMIC_2_DP_GPIO12); 2773 + RT5645_DMIC_2_DP_MASK, RT5645_DMIC_2_DP_GPIO12); 2784 2774 regmap_update_bits(rt5645->regmap, RT5645_GPIO_CTRL1, 2785 2775 RT5645_GP12_PIN_MASK, 2786 2776 RT5645_GP12_PIN_DMIC2_SDA); ··· 2882 2872 .driver = { 2883 2873 .name = "rt5645", 2884 2874 .owner = THIS_MODULE, 2875 + .acpi_match_table = ACPI_PTR(rt5645_acpi_match), 2885 2876 }, 2886 2877 .probe = rt5645_i2c_probe, 2887 2878 .remove = rt5645_i2c_remove,