Changeset 94e46c9 in mainline for uspace/app
- Timestamp:
- 2015-05-23T04:09:11Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b5143bd
- Parents:
- a25d893 (diff), 0683992 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/app
- Files:
-
- 2 added
- 12 edited
-
bdsh/cmds/modules/cat/cat.c (modified) (1 diff)
-
bdsh/cmds/modules/cmp/cmp.c (modified) (1 diff)
-
bdsh/cmds/modules/cp/cp.c (modified) (1 diff)
-
bdsh/cmds/modules/ls/ls.c (modified) (1 diff)
-
bdsh/cmds/modules/mkdir/mkdir.c (modified) (1 diff)
-
bdsh/cmds/modules/mkfile/mkfile.c (modified) (1 diff)
-
bdsh/cmds/modules/mount/mount.c (modified) (1 diff)
-
bdsh/cmds/modules/rm/rm.c (modified) (1 diff)
-
bdsh/cmds/modules/touch/touch.c (modified) (1 diff)
-
wavplay/drec.c (modified) (4 diffs)
-
wavplay/main.c (modified) (1 diff)
-
wavplay/wave.c (modified) (2 diffs)
-
wifi_supplicant/Makefile (added)
-
wifi_supplicant/wifi_supplicant.c (added)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cat/cat.c
ra25d893 r94e46c9 324 324 argc = cli_count_args(argv); 325 325 326 for (c = 0, opt ind = 0, opt_ind = 0; c != -1;) {326 for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { 327 327 c = getopt_long(argc, argv, "xhvmH:t:b:s:n", long_options, &opt_ind); 328 328 switch (c) { -
uspace/app/bdsh/cmds/modules/cmp/cmp.c
ra25d893 r94e46c9 130 130 argc = cli_count_args(argv); 131 131 132 for (c = 0, opt ind = 0, opt_ind = 0; c != -1;) {132 for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { 133 133 c = getopt_long(argc, argv, "hv", long_options, &opt_ind); 134 134 switch (c) { -
uspace/app/bdsh/cmds/modules/cp/cp.c
ra25d893 r94e46c9 457 457 argc = cli_count_args(argv); 458 458 459 for (c = 0, opt ind = 0, opt_ind = 0; c != -1;) {459 for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { 460 460 c = getopt_long(argc, argv, "hvVfirb:", long_options, &opt_ind); 461 461 switch (c) { -
uspace/app/bdsh/cmds/modules/ls/ls.c
ra25d893 r94e46c9 362 362 argc = cli_count_args(argv); 363 363 364 for (c = 0, opt ind = 0, opt_ind = 0; c != -1;) {364 for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { 365 365 c = getopt_long(argc, argv, "hur", long_options, &opt_ind); 366 366 switch (c) { -
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
ra25d893 r94e46c9 173 173 argc = cli_count_args(argv); 174 174 175 for (c = 0, opt ind = 0, opt_ind = 0; c != -1;) {175 for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { 176 176 c = getopt_long(argc, argv, "pvhVfm:", long_options, &opt_ind); 177 177 switch (c) { -
uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
ra25d893 r94e46c9 126 126 argc = cli_count_args(argv); 127 127 128 for (c = 0, opt ind = 0, opt_ind = 0; c != -1;) {128 for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { 129 129 c = getopt_long(argc, argv, "ps:h", long_options, &opt_ind); 130 130 switch (c) { -
uspace/app/bdsh/cmds/modules/mount/mount.c
ra25d893 r94e46c9 118 118 argc = cli_count_args(argv); 119 119 120 for (c = 0, opt ind = 0, opt_ind = 0; c != -1;) {120 for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { 121 121 c = getopt_long(argc, argv, "i:h", long_options, &opt_ind); 122 122 switch (c) { -
uspace/app/bdsh/cmds/modules/rm/rm.c
ra25d893 r94e46c9 261 261 } 262 262 263 for (c = 0, opt ind = 0, opt_ind = 0; c != -1;) {263 for (c = 0, optreset = 1, optind = 0, opt_ind = 0; c != -1;) { 264 264 c = getopt_long(argc, argv, "hvrfs", long_options, &opt_ind); 265 265 switch (c) { -
uspace/app/bdsh/cmds/modules/touch/touch.c
ra25d893 r94e46c9 90 90 DIR *dirp; 91 91 92 for (c = 0, opt ind = 0, longind = 0; c != -1; ) {92 for (c = 0, optreset = 1, optind = 0, longind = 0; c != -1; ) { 93 93 c = getopt_long(argc, argv, "c", long_options, &longind); 94 94 switch (c) { -
uspace/app/wavplay/drec.c
ra25d893 r94e46c9 47 47 48 48 49 #define BUFFER_PARTS 249 #define BUFFER_PARTS 16 50 50 51 51 /** Recording format */ … … 103 103 printf("Recording terminated\n"); 104 104 record = false; 105 break; 105 106 case PCM_EVENT_FRAMES_CAPTURED: 106 107 printf("%" PRIun " frames\n", IPC_GET_ARG1(call)); 107 async_answer_0(callid, EOK);108 108 break; 109 109 default: … … 111 111 async_answer_0(callid, ENOTSUP); 112 112 continue; 113 113 } 114 115 if (!record) { 116 async_answer_0(callid, EOK); 117 break; 114 118 } 115 119 … … 156 160 printf("\n"); 157 161 audio_pcm_stop_capture(rec->device); 162 /* XXX Control returns even before we can be sure callbacks finished */ 163 printf("Delay before playback termination\n"); 164 async_usleep(1000000); 165 printf("Terminate playback\n"); 158 166 } 159 167 -
uspace/app/wavplay/main.c
ra25d893 r94e46c9 308 308 if (direct) { 309 309 drecord(device, file); 310 continue; 310 311 } else { 311 312 printf("Indirect recording is not supported " -
uspace/app/wavplay/wave.c
ra25d893 r94e46c9 116 116 *channels = uint16_t_le2host(header->channels); 117 117 if (format) { 118 const unsigned size = uint 32_t_le2host(header->sample_size);118 const unsigned size = uint16_t_le2host(header->sample_size); 119 119 switch (size) { 120 120 case 8: *format = PCM_SAMPLE_UINT8; break; … … 157 157 header->channels = host2uint32_t_le(format.channels); 158 158 header->sample_size = 159 host2uint 32_t_le(pcm_sample_format_size(format.sample_format));159 host2uint16_t_le(pcm_sample_format_size(format.sample_format) * 8); 160 160 } 161 161 /**
Note:
See TracChangeset
for help on using the changeset viewer.
