Changeset 3fec817 in mainline for uspace/drv/audio/hdaudio/codec.c
- Timestamp:
- 2014-09-04T15:51:56Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- de16f89
- Parents:
- 149dd52d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/codec.c
r149dd52d r3fec817 547 547 } 548 548 549 int hda_out_converter_setup(hda_codec_t *codec, uint8_t sid)549 int hda_out_converter_setup(hda_codec_t *codec, hda_stream_t *stream) 550 550 { 551 551 int rc; … … 556 556 out_aw = codec->out_aw_list[i]; 557 557 558 /* XXX Choose appropriate parameters */559 uint32_t fmt;560 /* 48 kHz, 16-bits, 1 channel */561 fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l) | 1;562 563 558 /* Configure converter */ 564 559 565 560 ddf_msg(LVL_NOTE, "Configure converter format"); 566 rc = hda_set_converter_fmt(codec, out_aw, fmt);561 rc = hda_set_converter_fmt(codec, out_aw, stream->fmt); 567 562 if (rc != EOK) 568 563 goto error; 569 564 570 565 ddf_msg(LVL_NOTE, "Configure converter stream, channel"); 571 rc = hda_set_converter_ctl(codec, out_aw, s id, 0);566 rc = hda_set_converter_ctl(codec, out_aw, stream->sid, 0); 572 567 if (rc != EOK) 573 568 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.