Changeset 149dd52d in mainline for uspace/drv/audio/hdaudio/codec.c
- 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
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.