Changeset b7fd2a0 in mainline for uspace/drv/audio/hdaudio/hdactl.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/hdactl.c
r36f0738 rb7fd2a0 64 64 * to read as 0. 65 65 */ 66 static int hda_ctl_reg16_set_reset(uint16_t *reg, uint16_t mask)66 static errno_t hda_ctl_reg16_set_reset(uint16_t *reg, uint16_t mask) 67 67 { 68 68 uint16_t val; … … 116 116 * 117 117 */ 118 static int hda_rb_size_select(uint8_t sizecap, uint8_t *selsz)118 static errno_t hda_rb_size_select(uint8_t sizecap, uint8_t *selsz) 119 119 { 120 120 int i; … … 146 146 147 147 /** Initialize the CORB */ 148 static int hda_corb_init(hda_t *hda)148 static errno_t hda_corb_init(hda_t *hda) 149 149 { 150 150 uint8_t ctl; … … 152 152 uint8_t sizecap; 153 153 uint8_t selsz; 154 int rc;154 errno_t rc; 155 155 156 156 ddf_msg(LVL_NOTE, "hda_corb_init()"); … … 237 237 238 238 /** Initialize the RIRB */ 239 static int hda_rirb_init(hda_t *hda)239 static errno_t hda_rirb_init(hda_t *hda) 240 240 { 241 241 uint8_t ctl; … … 243 243 uint8_t sizecap; 244 244 uint8_t selsz; 245 int rc;245 errno_t rc; 246 246 247 247 ddf_msg(LVL_NOTE, "hda_rirb_init()"); … … 372 372 373 373 /** Write to CORB */ 374 static int hda_corb_write(hda_t *hda, uint32_t *data, size_t count)374 static errno_t hda_corb_write(hda_t *hda, uint32_t *data, size_t count) 375 375 { 376 376 size_t avail; … … 414 414 } 415 415 416 static int hda_rirb_read(hda_t *hda, hda_rirb_entry_t *data)416 static errno_t hda_rirb_read(hda_t *hda, hda_rirb_entry_t *data) 417 417 { 418 418 size_t wp; … … 436 436 } 437 437 438 static int hda_solrb_read(hda_t *hda, hda_rirb_entry_t *data, size_t count)438 static errno_t hda_solrb_read(hda_t *hda, hda_rirb_entry_t *data, size_t count) 439 439 { 440 440 hda_rirb_entry_t resp; … … 490 490 uint32_t intctl; 491 491 int cnt; 492 int rc;492 errno_t rc; 493 493 494 494 ctl = calloc(1, sizeof(hda_ctl_t)); … … 615 615 } 616 616 617 int hda_cmd(hda_t *hda, uint32_t verb, uint32_t *resp)618 { 619 int rc;617 errno_t hda_cmd(hda_t *hda, uint32_t verb, uint32_t *resp) 618 { 619 errno_t rc; 620 620 hda_rirb_entry_t rentry; 621 621 … … 639 639 { 640 640 hda_rirb_entry_t resp; 641 int rc;641 errno_t rc; 642 642 643 643 while (true) {
Note:
See TracChangeset
for help on using the changeset viewer.