Changeset 1433ecda in mainline for uspace/drv/audio/hdaudio
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/drv/audio/hdaudio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/codec.c
r47b2d7e3 r1433ecda 435 435 if ((pcaps & BIT_V(uint32_t, pwc_output)) != 0) { 436 436 ddf_msg(LVL_NOTE, "PIN %d will enable output", aw); 437 pctl = pctl | BIT_V(uint8_t, pctl_out_enable);437 pctl = pctl | BIT_V(uint8_t, pctl_out_enable); 438 438 } 439 439 440 440 if ((pcaps & BIT_V(uint32_t, pwc_input)) != 0) { 441 441 ddf_msg(LVL_NOTE, "PIN %d will enable input", aw); 442 pctl = pctl | BIT_V(uint8_t, pctl_in_enable);442 pctl = pctl | BIT_V(uint8_t, pctl_in_enable); 443 443 } 444 444 445 445 if ((pcaps & BIT_V(uint32_t, pwc_hpd)) != 0) { 446 446 ddf_msg(LVL_NOTE, "PIN %d will enable headphone drive", aw); 447 pctl = pctl | BIT_V(uint8_t, pctl_hpd_enable);447 pctl = pctl | BIT_V(uint8_t, pctl_hpd_enable); 448 448 } 449 449 -
uspace/drv/audio/hdaudio/hdactl.c
r47b2d7e3 r1433ecda 514 514 ddf_msg(LVL_NOTE, "reg 0x%zx STATESTS = 0x%x", 515 515 (void *)&hda->regs->statests - (void *)hda->regs, 516 hda_reg16_read(&hda->regs->statests));516 hda_reg16_read(&hda->regs->statests)); 517 517 /** 518 518 * Clear STATESTS bits so they don't generate an interrupt later … … 523 523 ddf_msg(LVL_NOTE, "after clearing reg 0x%zx STATESTS = 0x%x", 524 524 (void *)&hda->regs->statests - (void *)hda->regs, 525 hda_reg16_read(&hda->regs->statests));525 hda_reg16_read(&hda->regs->statests)); 526 526 527 527 gctl = hda_reg32_read(&hda->regs->gctl); … … 544 544 545 545 ddf_msg(LVL_NOTE, "Waiting for controller to initialize."); 546 async_usleep(100 *1000);546 async_usleep(100 * 1000); 547 547 --cnt; 548 548 } -
uspace/drv/audio/hdaudio/pcm_iface.c
r47b2d7e3 r1433ecda 356 356 357 357 if (hda->ev_sess == NULL) { 358 if (0) ddf_log_warning("No one listening for event %u", event); 358 if (0) 359 ddf_log_warning("No one listening for event %u", event); 359 360 return; 360 361 }
Note:
See TracChangeset
for help on using the changeset viewer.
