rt5651.c (b4435130bc19cd54631588355b16326aeb760e34) | rt5651.c (f85353fdd49fe0087438ef7d7475a832d16276c4) |
---|---|
1/* 2 * rt5651.c -- RT5651 ALSA SoC audio codec driver 3 * 4 * Copyright 2014 Realtek Semiconductor Corp. 5 * Author: Bard Liao <bardliao@realtek.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 1739 unchanged lines hidden (view full) --- 1748 1749static int rt5651_quirk_cb(const struct dmi_system_id *id) 1750{ 1751 rt5651_quirk = (unsigned long) id->driver_data; 1752 return 1; 1753} 1754 1755static const struct dmi_system_id rt5651_quirk_table[] = { | 1/* 2 * rt5651.c -- RT5651 ALSA SoC audio codec driver 3 * 4 * Copyright 2014 Realtek Semiconductor Corp. 5 * Author: Bard Liao <bardliao@realtek.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 1739 unchanged lines hidden (view full) --- 1748 1749static int rt5651_quirk_cb(const struct dmi_system_id *id) 1750{ 1751 rt5651_quirk = (unsigned long) id->driver_data; 1752 return 1; 1753} 1754 1755static const struct dmi_system_id rt5651_quirk_table[] = { |
1756 { 1757 .callback = rt5651_quirk_cb, 1758 .matches = { 1759 DMI_MATCH(DMI_SYS_VENDOR, "KIANO"), 1760 DMI_MATCH(DMI_PRODUCT_NAME, "KIANO SlimNote 14.2"), 1761 }, 1762 .driver_data = (unsigned long *) RT5651_JD1_1, 1763 }, |
|
1756 {} 1757}; 1758 1759static int rt5651_parse_dt(struct rt5651_priv *rt5651, struct device_node *np) 1760{ 1761 if (of_property_read_bool(np, "realtek,in2-differential")) 1762 rt5651_quirk |= RT5651_IN2_DIFF; 1763 if (of_property_read_bool(np, "realtek,dmic-en")) --- 241 unchanged lines hidden --- | 1764 {} 1765}; 1766 1767static int rt5651_parse_dt(struct rt5651_priv *rt5651, struct device_node *np) 1768{ 1769 if (of_property_read_bool(np, "realtek,in2-differential")) 1770 rt5651_quirk |= RT5651_IN2_DIFF; 1771 if (of_property_read_bool(np, "realtek,dmic-en")) --- 241 unchanged lines hidden --- |