Lines Matching refs:hdac_device
21 struct hdac_device;
45 struct hdac_device { struct
70 int (*exec_verb)(struct hdac_device *dev, unsigned int cmd, argument
104 #define dev_to_hdac_dev(_dev) container_of(_dev, struct hdac_device, dev) argument
106 int snd_hdac_device_init(struct hdac_device *dev, struct hdac_bus *bus,
108 void snd_hdac_device_exit(struct hdac_device *dev);
109 int snd_hdac_device_register(struct hdac_device *codec);
110 void snd_hdac_device_unregister(struct hdac_device *codec);
111 int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name);
112 int snd_hdac_codec_modalias(struct hdac_device *hdac, char *buf, size_t size);
114 int snd_hdac_refresh_widgets(struct hdac_device *codec);
115 int snd_hdac_refresh_widget_sysfs(struct hdac_device *codec);
117 unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid,
119 int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd,
121 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid,
123 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm,
125 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid,
127 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid,
129 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid,
131 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid,
138 int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid,
140 bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid,
143 int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
145 int snd_hdac_codec_write(struct hdac_device *hdac, hda_nid_t nid,
147 bool snd_hdac_check_power_state(struct hdac_device *hdac,
158 static inline int snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm()
167 int snd_hdac_power_up(struct hdac_device *codec);
168 int snd_hdac_power_down(struct hdac_device *codec);
169 int snd_hdac_power_up_pm(struct hdac_device *codec);
170 int snd_hdac_power_down_pm(struct hdac_device *codec);
172 static inline int snd_hdac_power_up(struct hdac_device *codec) { return 0; } in snd_hdac_power_up()
173 static inline int snd_hdac_power_down(struct hdac_device *codec) { return 0; } in snd_hdac_power_down()
174 static inline int snd_hdac_power_up_pm(struct hdac_device *codec) { return 0; } in snd_hdac_power_up_pm()
175 static inline int snd_hdac_power_down_pm(struct hdac_device *codec) { return 0; } in snd_hdac_power_down_pm()
185 int (*match)(struct hdac_device *dev, struct hdac_driver *drv);
186 void (*unsol_event)(struct hdac_device *dev, unsigned int event);
192 hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv);
262 struct hdac_device *caddr_tbl[HDA_MAX_CODEC_ADDRESS + 1];
319 int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec);
321 struct hdac_device *codec);
323 static inline void snd_hdac_codec_link_up(struct hdac_device *codec) in snd_hdac_codec_link_up()
328 static inline void snd_hdac_codec_link_down(struct hdac_device *codec) in snd_hdac_codec_link_down()
336 int snd_hdac_link_power(struct hdac_device *codec, bool enable);