Changeset 149dd52d in mainline
- Timestamp:
- 2014-08-27T15:52:16Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3fec817
- Parents:
- a9be4d2
- Location:
- uspace/drv/audio/hdaudio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/codec.c
ra9be4d2 r149dd52d 67 67 int rc = hda_cmd(codec->hda, verb, resp); 68 68 69 if (resp != NULL) {69 /* if (resp != NULL) { 70 70 ddf_msg(LVL_NOTE, "verb 0x%" PRIx32 " -> 0x%" PRIx32, verb, 71 71 *resp); … … 73 73 ddf_msg(LVL_NOTE, "verb 0x%" PRIx32, verb); 74 74 } 75 75 */ 76 76 return rc; 77 77 } … … 250 250 ampcaps, offset); 251 251 252 rc = hda_set_amp_gain_mute(codec, aw, 0xb000 + offset /2);252 rc = hda_set_amp_gain_mute(codec, aw, 0xb000 + offset); 253 253 if (rc != EOK) 254 254 goto error; … … 286 286 287 287 for (i = 0; i < 15; i++) { 288 rc = hda_set_amp_gain_mute(codec, aw, 0x7000 + (i << 8) + offset /2);288 rc = hda_set_amp_gain_mute(codec, aw, 0x7000 + (i << 8) + offset); 289 289 if (rc != EOK) 290 290 goto error; … … 466 466 ddf_msg(LVL_NOTE, "hda_get_fgrp_type -> %d", rc); 467 467 ddf_msg(LVL_NOTE, "unsol: %d, grptype: %d", unsol, grptype); 468 469 rc = hda_power_ctl_init(codec, fg); 470 if (rc != EOK) 471 goto error; 468 472 469 473 rc = hda_get_subnc(codec, fg, &saw, &naw); -
uspace/drv/audio/hdaudio/hdactl.c
ra9be4d2 r149dd52d 311 311 static void hda_set_corbwp(hda_t *hda, size_t wp) 312 312 { 313 ddf_msg(LVL_DEBUG2, "Set CORBWP = % d", wp);313 ddf_msg(LVL_DEBUG2, "Set CORBWP = %zu", wp); 314 314 hda_reg16_write(&hda->regs->corbwp, wp); 315 315 } … … 391 391 392 392 wp = hda_get_rirbwp(hda); 393 ddf_msg(LVL_DEBUG2, "hda_rirb_read: wp=% d", wp);393 ddf_msg(LVL_DEBUG2, "hda_rirb_read: wp=%zu", wp); 394 394 if (hda->ctl->rirb_rp == wp) 395 395 return ENOENT; … … 637 637 hda_reg8_read(&ctl->hda->regs->corbctl), 638 638 hda_reg8_read(&ctl->hda->regs->corbsts)); 639 ddf_msg(LVL_NOTE, "rirbwp=0x%x, soft-rirbrp=0x% x",639 ddf_msg(LVL_NOTE, "rirbwp=0x%x, soft-rirbrp=0x%zx", 640 640 hda_reg16_read(&ctl->hda->regs->rirbwp), 641 641 ctl->rirb_rp); 642 ddf_msg(LVL_NOTE, "solrb_wp=0x% x, solrb_rp=0x%x",642 ddf_msg(LVL_NOTE, "solrb_wp=0x%zx, solrb_rp=0x%zx", 643 643 ctl->solrb_wp, ctl->solrb_wp); 644 644 } -
uspace/drv/audio/hdaudio/hdaudio.c
ra9be4d2 r149dd52d 215 215 hda->regs = (hda_regs_t *)regs; 216 216 217 ddf_msg(LVL_NOTE, "IRQs: % d", res.irqs.count);217 ddf_msg(LVL_NOTE, "IRQs: %zu", res.irqs.count); 218 218 if (res.irqs.count != 1) { 219 ddf_msg(LVL_ERROR, "Unexpected IRQ count % d(!= 1)",219 ddf_msg(LVL_ERROR, "Unexpected IRQ count %zu (!= 1)", 220 220 res.irqs.count); 221 221 goto error; … … 254 254 } 255 255 256 ddf_msg(LVL_NOTE, "range0.base=% x", hdaudio_irq_pio_ranges[0].base);256 ddf_msg(LVL_NOTE, "range0.base=%zu", hdaudio_irq_pio_ranges[0].base); 257 257 258 258 rc = irc_enable_interrupt(res.irqs.irqs[0]);
Note:
See TracChangeset
for help on using the changeset viewer.