Changeset 2f6b916 in mainline
- Timestamp:
- 2014-08-26T21:36:07Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dda5848
- Parents:
- 9bae8b8
- Location:
- uspace/drv/audio/hdaudio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/codec.c
r9bae8b8 r2f6b916 459 459 uint32_t fmt; 460 460 /* 48 kHz, 16-bits, 1 channel */ 461 fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l) ;461 fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l) | 1; 462 462 463 463 /* Configure converter */ -
uspace/drv/audio/hdaudio/pcm_iface.c
r9bae8b8 r2f6b916 128 128 129 129 if (*channels != 1) { 130 *channels = 1;130 *channels = 2; 131 131 rc = ELIMIT; 132 132 } … … 137 137 } 138 138 139 if (*rate != 4 8000) {140 *rate = 4 8000;139 if (*rate != 44100) { 140 *rate = 44100; 141 141 rc = ELIMIT; 142 142 } … … 156 156 uint32_t fmt; 157 157 /* 48 kHz, 16-bits, 1 channel */ 158 fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l) ;158 fmt = (fmt_base_44khz << fmt_base) | (fmt_bits_16 << fmt_bits_l) | 1; 159 159 160 160 ddf_msg(LVL_NOTE, "hda_get_buffer() - create stream");
Note:
See TracChangeset
for help on using the changeset viewer.