Lines Matching defs:codec
20 /* codec node id */
47 * HD-audio codec base device
53 unsigned int addr; /* codec address */
70 const char *vendor_name; /* codec vendor name */
71 const char *chip_name; /* codec chip name */
120 int snd_hdac_device_register(struct hdac_device *codec);
121 void snd_hdac_device_unregister(struct hdac_device *codec);
122 int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name);
125 int snd_hdac_refresh_widgets(struct hdac_device *codec);
127 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid,
129 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm,
131 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid,
133 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid,
135 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid,
137 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid,
144 int snd_hdac_query_supported_pcm(struct hdac_device *codec, hda_nid_t nid,
146 bool snd_hdac_is_supported_format(struct hdac_device *codec, hda_nid_t nid,
158 * snd_hdac_read_parm - read a codec parameter
159 * @codec: the codec object
166 static inline int snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid,
171 return _snd_hdac_read_parm(codec, nid, parm, &val) < 0 ? -1 : val;
175 int snd_hdac_power_up(struct hdac_device *codec);
176 int snd_hdac_power_down(struct hdac_device *codec);
177 int snd_hdac_power_up_pm(struct hdac_device *codec);
178 int snd_hdac_power_down_pm(struct hdac_device *codec);
179 int snd_hdac_keep_power_up(struct hdac_device *codec);
181 /* call this at entering into suspend/resume callbacks in codec driver */
182 static inline void snd_hdac_enter_pm(struct hdac_device *codec)
184 atomic_inc(&codec->in_pm);
187 /* call this at leaving from suspend/resume callbacks in codec driver */
188 static inline void snd_hdac_leave_pm(struct hdac_device *codec)
190 atomic_dec(&codec->in_pm);
193 static inline bool snd_hdac_is_in_pm(struct hdac_device *codec)
195 return atomic_read(&codec->in_pm);
198 static inline bool snd_hdac_is_power_on(struct hdac_device *codec)
200 return !pm_runtime_suspended(&codec->dev);
203 static inline int snd_hdac_power_up(struct hdac_device *codec) { return 0; }
204 static inline int snd_hdac_power_down(struct hdac_device *codec) { return 0; }
205 static inline int snd_hdac_power_up_pm(struct hdac_device *codec) { return 0; }
206 static inline int snd_hdac_power_down_pm(struct hdac_device *codec) { return 0; }
207 static inline int snd_hdac_keep_power_up(struct hdac_device *codec) { return 0; }
208 static inline void snd_hdac_enter_pm(struct hdac_device *codec) {}
209 static inline void snd_hdac_leave_pm(struct hdac_device *codec) {}
210 static inline bool snd_hdac_is_in_pm(struct hdac_device *codec) { return false; }
211 static inline bool snd_hdac_is_power_on(struct hdac_device *codec) { return true; }
215 * HD-audio codec base driver
247 * ops used for ASoC HDA codec drivers
300 /* codec linked list */
304 /* link caddr -> codec */
381 static inline void snd_hdac_codec_link_up(struct hdac_device *codec)
383 set_bit(codec->addr, &codec->bus->codec_powered);
386 static inline void snd_hdac_codec_link_down(struct hdac_device *codec)
388 clear_bit(codec->addr, &codec->bus->codec_powered);
521 * controller and the codec