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
9extern const struct attribute_group *hdac_dev_attr_groups[];
10int hda_widget_sysfs_init(struct hdac_device *codec);
11int hda_widget_sysfs_reinit(struct hdac_device *codec, hda_nid_t start_nid,
12 int num_nodes);
13void hda_widget_sysfs_exit(struct hdac_device *codec);
14
15int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec);
16void snd_hdac_bus_remove_device(struct hdac_bus *bus,
17 struct hdac_device *codec);
18void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex);
19int snd_hdac_bus_exec_verb(struct hdac_bus *bus, unsigned int addr,
20 unsigned int cmd, unsigned int *res);
21
22int 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