Lines Matching refs:hdac_device

27 struct hdac_device;
51 struct hdac_device { struct
76 int (*exec_verb)(struct hdac_device *dev, unsigned int cmd, argument
118 #define dev_to_hdac_dev(_dev) container_of(_dev, struct hdac_device, dev) argument
120 int snd_hdac_device_init(struct hdac_device *dev, struct hdac_bus *bus,
122 void snd_hdac_device_exit(struct hdac_device *dev);
123 int snd_hdac_device_register(struct hdac_device *codec);
124 void snd_hdac_device_unregister(struct hdac_device *codec);
125 int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name);
126 int snd_hdac_codec_modalias(const struct hdac_device *hdac, char *buf, size_t size);
128 int snd_hdac_refresh_widgets(struct hdac_device *codec);
130 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid,
132 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm,
134 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid,
136 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid,
138 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid,
140 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid,
147 int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid,
149 bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid,
152 int snd_hdac_codec_read(struct hdac_device *hdac, hda_nid_t nid,
154 int snd_hdac_codec_write(struct hdac_device *hdac, hda_nid_t nid,
156 bool snd_hdac_check_power_state(struct hdac_device *hdac,
158 unsigned int snd_hdac_sync_power_state(struct hdac_device *hdac,
169 static inline int snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm()
178 int snd_hdac_power_up(struct hdac_device *codec);
179 int snd_hdac_power_down(struct hdac_device *codec);
180 int snd_hdac_power_up_pm(struct hdac_device *codec);
181 int snd_hdac_power_down_pm(struct hdac_device *codec);
182 int snd_hdac_keep_power_up(struct hdac_device *codec);
185 static inline void snd_hdac_enter_pm(struct hdac_device *codec) in snd_hdac_enter_pm()
191 static inline void snd_hdac_leave_pm(struct hdac_device *codec) in snd_hdac_leave_pm()
196 static inline bool snd_hdac_is_in_pm(struct hdac_device *codec) in snd_hdac_is_in_pm()
201 static inline bool snd_hdac_is_power_on(struct hdac_device *codec) in snd_hdac_is_power_on()
206 static inline int snd_hdac_power_up(struct hdac_device *codec) { return 0; } in snd_hdac_power_up()
207 static inline int snd_hdac_power_down(struct hdac_device *codec) { return 0; } in snd_hdac_power_down()
208 static inline int snd_hdac_power_up_pm(struct hdac_device *codec) { return 0; } in snd_hdac_power_up_pm()
209 static inline int snd_hdac_power_down_pm(struct hdac_device *codec) { return 0; } in snd_hdac_power_down_pm()
210 static inline int snd_hdac_keep_power_up(struct hdac_device *codec) { return 0; } in snd_hdac_keep_power_up()
211 static inline void snd_hdac_enter_pm(struct hdac_device *codec) {} in snd_hdac_enter_pm()
212 static inline void snd_hdac_leave_pm(struct hdac_device *codec) {} in snd_hdac_leave_pm()
213 static inline bool snd_hdac_is_in_pm(struct hdac_device *codec) { return false; } in snd_hdac_is_in_pm()
214 static inline bool snd_hdac_is_power_on(struct hdac_device *codec) { return true; } in snd_hdac_is_power_on()
224 int (*match)(struct hdac_device *dev, struct hdac_driver *drv);
225 void (*unsol_event)(struct hdac_device *dev, unsigned int event);
228 int (*probe)(struct hdac_device *dev);
229 int (*remove)(struct hdac_device *dev);
230 void (*shutdown)(struct hdac_device *dev);
236 hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv);
248 void (*link_power)(struct hdac_device *hdev, bool enable);
255 int (*hdev_attach)(struct hdac_device *hdev);
256 int (*hdev_detach)(struct hdac_device *hdev);
310 struct hdac_device *caddr_tbl[HDA_MAX_CODEC_ADDRESS + 1];
386 void snd_hdac_codec_link_up(struct hdac_device *codec);
387 void snd_hdac_codec_link_down(struct hdac_device *codec);
401 void snd_hdac_bus_link_power(struct hdac_device *hdev, bool enable);