Changeset 84d6c39 in mainline for uspace/drv/audio/sb16/dsp.c
- Timestamp:
- 2011-11-30T23:13:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 57cf3b3
- Parents:
- ac07a13
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.c
rac07a13 r84d6c39 148 148 static inline size_t sample_count(uint8_t mode, size_t byte_count) 149 149 { 150 if (mode & DSP_MODE_16BIT) { 150 // FIXME we only support 16 bit playback for now. 151 return byte_count / 2; 152 153 if (mode & DSP_MODE_SIGNED) { 151 154 return byte_count / 2; 152 155 } … … 256 259 257 260 /* Check supported parameters */ 258 if (sample_size != 8 && sample_size != 16)261 if (sample_size != 16) // FIXME We only support 16 bit playback 259 262 return ENOTSUP; 260 263 if (channels != 1 && channels != 2) … … 275 278 dsp->playing.mode = 0; 276 279 277 if (sample_size == 16) 278 dsp->playing.mode |= DSP_MODE_16BIT; 280 dsp->playing.mode |= DSP_MODE_SIGNED; 279 281 if (channels == 2) 280 282 dsp->playing.mode |= DSP_MODE_STEREO;
Note:
See TracChangeset
for help on using the changeset viewer.