Changeset 47e00b83 in mainline for uspace/drv/audio/hdaudio/stream.c
- Timestamp:
- 2018-05-15T08:32:36Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8800b13, fac0ac7
- Parents:
- 3a26925
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-14 17:31:01)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-15 08:32:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/stream.c
r3a26925 r47e00b83 92 92 93 93 /* Allocate buffers */ 94 /* 94 #if 0 95 95 for (i = 0; i < bufs->nbuffers; i++) { 96 96 buffer = AS_AREA_ANY; … … 116 116 } 117 117 } 118 */ 118 #endif 119 119 /* audio_pcm_iface requires a single contiguous buffer */ 120 120 buffer = AS_AREA_ANY; … … 134 134 (long long unsigned)(uintptr_t)bufs->buf[i], 135 135 (void *)bufs->buf_phys[i]); 136 /* k = 0;137 for (j = 0; j < bufs->bufsize / 2; j++) {138 int16_t *bp = bufs->buf[i];139 bp[j] = (k > 128) ? -10000 : 10000;140 ++k;141 if (k >= 256)142 k = 0;143 }144 */145 136 } 146 137
Note:
See TracChangeset
for help on using the changeset viewer.