Changeset b7fd2a0 in mainline for uspace/drv/audio/hdaudio/hdaudio.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdaudio.c
r36f0738 rb7fd2a0 52 52 #define NAME "hdaudio" 53 53 54 static int hda_dev_add(ddf_dev_t *dev);55 static int hda_dev_remove(ddf_dev_t *dev);56 static int hda_dev_gone(ddf_dev_t *dev);57 static int hda_fun_online(ddf_fun_t *fun);58 static int hda_fun_offline(ddf_fun_t *fun);54 static errno_t hda_dev_add(ddf_dev_t *dev); 55 static errno_t hda_dev_remove(ddf_dev_t *dev); 56 static errno_t hda_dev_gone(ddf_dev_t *dev); 57 static errno_t hda_fun_online(ddf_fun_t *fun); 58 static errno_t hda_fun_offline(ddf_fun_t *fun); 59 59 60 60 static void hdaudio_interrupt(ipc_call_t *, ddf_dev_t *); … … 148 148 }; 149 149 150 static int hda_dev_add(ddf_dev_t *dev)150 static errno_t hda_dev_add(ddf_dev_t *dev) 151 151 { 152 152 ddf_fun_t *fun_pcm = NULL; … … 160 160 int i; 161 161 void *regs = NULL; 162 int rc;162 errno_t rc; 163 163 164 164 ddf_msg(LVL_NOTE, "hda_dev_add()"); … … 318 318 } 319 319 320 static int hda_dev_remove(ddf_dev_t *dev)320 static errno_t hda_dev_remove(ddf_dev_t *dev) 321 321 { 322 322 hda_t *hda = (hda_t *)ddf_dev_data_get(dev); 323 int rc;323 errno_t rc; 324 324 325 325 ddf_msg(LVL_DEBUG, "hda_dev_remove(%p)", dev); … … 340 340 } 341 341 342 static int hda_dev_gone(ddf_dev_t *dev)342 static errno_t hda_dev_gone(ddf_dev_t *dev) 343 343 { 344 344 hda_t *hda = (hda_t *)ddf_dev_data_get(dev); 345 int rc;345 errno_t rc; 346 346 347 347 ddf_msg(LVL_DEBUG, "hda_dev_remove(%p)", dev); … … 356 356 } 357 357 358 static int hda_fun_online(ddf_fun_t *fun)358 static errno_t hda_fun_online(ddf_fun_t *fun) 359 359 { 360 360 ddf_msg(LVL_DEBUG, "hda_fun_online()"); … … 362 362 } 363 363 364 static int hda_fun_offline(ddf_fun_t *fun)364 static errno_t hda_fun_offline(ddf_fun_t *fun) 365 365 { 366 366 ddf_msg(LVL_DEBUG, "hda_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.