Home
last modified time | relevance | path

Searched refs:out_fp (Results 1 – 5 of 5) sorted by relevance

/hardware/knowles/athletico/sound_trigger_hal/tests/
Dcrash_event_logger.c94 FILE *out_fp = NULL; in dump_crash_reason() local
111 out_fp = fopen(file_name, "w"); in dump_crash_reason()
112 if (out_fp == NULL) { in dump_crash_reason()
119 if (fwrite(crash_reason_buf, 1, len, out_fp) != len) { in dump_crash_reason()
128 fwrite(crash_dump_title, 1, strlen(crash_dump_title), out_fp); in dump_crash_reason()
130 strlen(crash_dump_analyzer_str), out_fp); in dump_crash_reason()
134 if (out_fp != NULL) { in dump_crash_reason()
135 fclose(out_fp); in dump_crash_reason()
241 int inp_fp = -1, out_fp = -1; in dump_crash_log() local
270 out_fp = open(file_name, O_WRONLY | O_CREAT, 0644); in dump_crash_log()
[all …]
Dtunnel_test.c67 void parse_audio_tunnel_data(FILE *out_fp, unsigned char *buf_itr, int frame_sz_in_bytes) { in parse_audio_tunnel_data() argument
71 if (NULL == buf_itr || NULL == out_fp) { in parse_audio_tunnel_data()
78 fwrite(q16_buf, (frameSizeInWords * 2), 1, out_fp); in parse_audio_tunnel_data()
79 fflush(out_fp); in parse_audio_tunnel_data()
85 FILE *out_fp[MAX_TUNNELS] = { NULL }; local
319 if (NULL == out_fp[tunnel_id]) {
332 out_fp[tunnel_id] = fopen(filename, "wb");
333 if (NULL == out_fp[tunnel_id]) {
357 … parse_audio_tunnel_data(out_fp[tunnel_id], buf_itr, rft.format.frameSizeInBytes);
359 fwrite(buf_itr, rft.format.frameSizeInBytes, 1, out_fp[tunnel_id]);
[all …]
Ddump_debug_info.c255 FILE *out_fp = NULL; in dump_all_regs() local
260 out_fp = stdout; in dump_all_regs()
262 out_fp = fopen(REG_OUT_FILE, "w"); in dump_all_regs()
263 if (NULL == out_fp) { in dump_all_regs()
274 fprintf(out_fp, "%s\n", SRB_REG); in dump_all_regs()
275 fprintf(out_fp, "%s\t%s\n", REG_ADDR, REG_VAL); in dump_all_regs()
284 fprintf(out_fp, "0x%X\t\t\t0x%08X\n", addr, val); in dump_all_regs()
302 fprintf(out_fp, "0x%X\t\t\t0x%08X\n", addr, arb_phy_addr); in dump_all_regs()
303 fprintf(out_fp, "0x%X\t\t\t0x%08X\n", (addr + sizeof(uint32_t)), arb_sz); in dump_all_regs()
322 fprintf(out_fp, "%s %d\n", ARB_REG, j); in dump_all_regs()
[all …]
Dtunnel_test_sensor.c71 FILE *out_fp[MAX_TUNNELS] = { NULL }; in main() local
230 if (NULL == out_fp[tunnel_id]) { in main()
237 out_fp[tunnel_id] = fopen(filename, "wb"); in main()
238 if (NULL == out_fp[tunnel_id]) { in main()
263 fwrite(buf_itr, rft.format.frameSizeInBytes, 1, out_fp[tunnel_id]); in main()
298 if (out_fp[i]) { in main()
299 fflush(out_fp[i]); in main()
300 fclose(out_fp[i]); in main()
/hardware/knowles/athletico/sound_trigger_hal/
Dadnc_strm.c156 out_fp = fopen("/data/data/pcm_dump", "ab"); in parse_audio_tunnel_data()
157 if (out_fp) { in parse_audio_tunnel_data()
159 fwrite(pcm_buf_itr, (frameSizeInWords * 2), 1, out_fp); in parse_audio_tunnel_data()
160 fflush(out_fp); in parse_audio_tunnel_data()
161 fclose(out_fp); in parse_audio_tunnel_data()
345 FILE *out_fp = fopen("/data/data/pcm_dump2", "ab"); in adnc_strm_read() local
346 if (out_fp) { in adnc_strm_read()
350 adnc_strm_dev->pcm_avail_size, 1, out_fp); in adnc_strm_read()
351 fflush(out_fp); in adnc_strm_read()
352 fclose(out_fp); in adnc_strm_read()
[all …]