Lines Matching defs:codec

23 /* codec node id */
50 * HD-audio codec base device
56 unsigned int addr; /* codec address */
73 const char *vendor_name; /* codec vendor name */
74 const char *chip_name; /* codec chip name */
98 unsigned int registered:1; /* codec was registered */
124 int snd_hdac_device_register(struct hdac_device *codec);
125 void snd_hdac_device_unregister(struct hdac_device *codec);
126 int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name);
129 int snd_hdac_refresh_widgets(struct hdac_device *codec);
131 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid,
133 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm,
135 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid,
137 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid,
139 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid,
141 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid,
148 int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid,
150 bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid,
162 * snd_hdac_read_parm - read a codec parameter
163 * @codec: the codec object
170 static inline int snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid,
175 return _snd_hdac_read_parm(codec, nid, parm, &val) < 0 ? -1 : val;
179 int snd_hdac_power_up(struct hdac_device *codec);
180 int snd_hdac_power_down(struct hdac_device *codec);
181 int snd_hdac_power_up_pm(struct hdac_device *codec);
182 int snd_hdac_power_down_pm(struct hdac_device *codec);
183 int snd_hdac_keep_power_up(struct hdac_device *codec);
185 /* call this at entering into suspend/resume callbacks in codec driver */
186 static inline void snd_hdac_enter_pm(struct hdac_device *codec)
188 atomic_inc(&codec->in_pm);
191 /* call this at leaving from suspend/resume callbacks in codec driver */
192 static inline void snd_hdac_leave_pm(struct hdac_device *codec)
194 atomic_dec(&codec->in_pm);
197 static inline bool snd_hdac_is_in_pm(struct hdac_device *codec)
199 return atomic_read(&codec->in_pm);
202 static inline bool snd_hdac_is_power_on(struct hdac_device *codec)
204 return !pm_runtime_suspended(&codec->dev);
207 static inline int snd_hdac_power_up(struct hdac_device *codec) { return 0; }
208 static inline int snd_hdac_power_down(struct hdac_device *codec) { return 0; }
209 static inline int snd_hdac_power_up_pm(struct hdac_device *codec) { return 0; }
210 static inline int snd_hdac_power_down_pm(struct hdac_device *codec) { return 0; }
211 static inline int snd_hdac_keep_power_up(struct hdac_device *codec) { return 0; }
212 static inline void snd_hdac_enter_pm(struct hdac_device *codec) {}
213 static inline void snd_hdac_leave_pm(struct hdac_device *codec) {}
214 static inline bool snd_hdac_is_in_pm(struct hdac_device *codec) { return false; }
215 static inline bool snd_hdac_is_power_on(struct hdac_device *codec) { return true; }
219 * HD-audio codec base driver
248 /* notify of codec link power-up/down */
253 * ops used for ASoC HDA codec drivers
306 /* codec linked list */
310 /* link caddr -> codec */
389 void snd_hdac_codec_link_up(struct hdac_device *codec);
390 void snd_hdac_codec_link_down(struct hdac_device *codec);
539 * controller and the codec