Revision 72cf2d4f audio/audio_template.h
b/audio/audio_template.h | ||
---|---|---|
184 | 184 |
|
185 | 185 |
static void glue (audio_pcm_hw_add_sw_, TYPE) (HW *hw, SW *sw) |
186 | 186 |
{ |
187 |
LIST_INSERT_HEAD (&hw->sw_head, sw, entries); |
|
187 |
QLIST_INSERT_HEAD (&hw->sw_head, sw, entries);
|
|
188 | 188 |
} |
189 | 189 |
|
190 | 190 |
static void glue (audio_pcm_hw_del_sw_, TYPE) (SW *sw) |
191 | 191 |
{ |
192 |
LIST_REMOVE (sw, entries); |
|
192 |
QLIST_REMOVE (sw, entries);
|
|
193 | 193 |
} |
194 | 194 |
|
195 | 195 |
static void glue (audio_pcm_hw_gc_, TYPE) (HW **hwp) |
... | ... | |
201 | 201 |
#ifdef DAC |
202 | 202 |
audio_detach_capture (hw); |
203 | 203 |
#endif |
204 |
LIST_REMOVE (hw, entries); |
|
204 |
QLIST_REMOVE (hw, entries);
|
|
205 | 205 |
glue (s->nb_hw_voices_, TYPE) += 1; |
206 | 206 |
glue (audio_pcm_hw_free_resources_ ,TYPE) (hw); |
207 | 207 |
glue (hw->pcm_ops->fini_, TYPE) (hw); |
... | ... | |
267 | 267 |
} |
268 | 268 |
|
269 | 269 |
hw->pcm_ops = drv->pcm_ops; |
270 |
LIST_INIT (&hw->sw_head); |
|
270 |
QLIST_INIT (&hw->sw_head);
|
|
271 | 271 |
#ifdef DAC |
272 |
LIST_INIT (&hw->cap_head); |
|
272 |
QLIST_INIT (&hw->cap_head);
|
|
273 | 273 |
#endif |
274 | 274 |
if (glue (hw->pcm_ops->init_, TYPE) (hw, as)) { |
275 | 275 |
goto err0; |
... | ... | |
294 | 294 |
goto err1; |
295 | 295 |
} |
296 | 296 |
|
297 |
LIST_INSERT_HEAD (&s->glue (hw_head_, TYPE), hw, entries); |
|
297 |
QLIST_INSERT_HEAD (&s->glue (hw_head_, TYPE), hw, entries);
|
|
298 | 298 |
glue (s->nb_hw_voices_, TYPE) -= 1; |
299 | 299 |
#ifdef DAC |
300 | 300 |
audio_attach_capture (hw); |
Also available in: Unified diff