Changeset dda5848 in mainline for uspace/drv/audio/hdaudio/codec.c
- Timestamp:
- 2014-08-26T23:07:47Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9034876
- Parents:
- 2f6b916
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/codec.c
r2f6b916 rdda5848 56 56 verb = (codec->address << 28) | (node << 20) | (vid << 8) | payload; 57 57 int rc = hda_cmd(codec->hda, verb, resp); 58 /* 58 59 if (resp != NULL) { 59 60 ddf_msg(LVL_NOTE, "verb 0x%" PRIx32 " -> 0x%" PRIx32, verb, … … 62 63 ddf_msg(LVL_NOTE, "verb 0x%" PRIx32, verb); 63 64 } 65 */ 64 66 return rc; 65 67 } … … 409 411 410 412 } else if (awtype == awt_audio_output) { 411 codec->out_aw = aw;412 413 codec->out_aw_list[codec->out_aw_num++] = aw; 414 415 rc = hda_get_supp_rates(codec, aw, &rates); 416 if (rc != EOK) 417 goto error; 418 419 rc = hda_get_supp_formats(codec, aw, &formats); 420 if (rc != EOK) 421 goto error; 422 423 ddf_msg(LVL_NOTE, "Output widget %d: rates=0x%x formats=0x%x", 424 aw, rates, formats); 413 425 } 414 426 415 if (0) {416 427 if ((awcaps & BIT_V(uint32_t, awc_out_amp_present)) != 0) 417 428 hda_set_out_amp_max(codec, aw); … … 419 430 if ((awcaps & BIT_V(uint32_t, awc_in_amp_present)) != 0) 420 431 hda_set_in_amp_max(codec, aw); 421 }422 432 } 423 433 } 424 434 425 rc = hda_get_supp_rates(codec, codec->out_aw, &rates); 426 if (rc != EOK) 427 goto error; 428 429 rc = hda_get_supp_formats(codec, codec->out_aw, &formats); 430 if (rc != EOK) 431 goto error; 432 433 ddf_msg(LVL_NOTE, "Output widget %d: rates=0x%x formats=0x%x", 434 codec->out_aw, rates, formats); 435 hda_ctl_dump_info(hda->ctl); 435 436 436 437 ddf_msg(LVL_NOTE, "Codec OK");
Note:
See TracChangeset
for help on using the changeset viewer.