| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Local helper macros and functions for HD-audio core drivers |
| 4 | */ |
| 5 | |
| 6 | #ifndef __HDAC_LOCAL_H |
| 7 | #define __HDAC_LOCAL_H |
| 8 | |
| 9 | extern const struct attribute_group *hdac_dev_attr_groups[]; |
| 10 | int hda_widget_sysfs_init(struct hdac_device *codec); |
| 11 | int hda_widget_sysfs_reinit(struct hdac_device *codec, hda_nid_t start_nid, |
| 12 | int num_nodes); |
| 13 | void hda_widget_sysfs_exit(struct hdac_device *codec); |
| 14 | |
| 15 | int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec); |
| 16 | void snd_hdac_bus_remove_device(struct hdac_bus *bus, |
| 17 | struct hdac_device *codec); |
| 18 | void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex); |
| 19 | int snd_hdac_bus_exec_verb(struct hdac_bus *bus, unsigned int addr, |
| 20 | unsigned int cmd, unsigned int *res); |
| 21 | |
| 22 | int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd, |
| 23 | unsigned int flags, unsigned int *res); |
| 24 | |
| 25 | #endif /* __HDAC_LOCAL_H */ |
| 26 | |