Lines Matching defs:dmic
41 * Dump dmic parameters in json
98 static int nhlt_dmic_config(FILE *out, uint8_t *dmic, uint8_t mic)
106 fprintf(out, "\t\t\t\"type\":\"%s\",\n", microphone_type(get_u8(dmic, 0)));
107 fprintf(out, "\t\t\t\"location\":\"%s\"", microphone_location(get_u8(dmic, 1)));
108 if (get_s16le(dmic, 2) != 0)
109 fprintf(out, ",\n\t\t\t\"speaker-distance\":%i", get_s16le(dmic, 2));
110 if (get_s16le(dmic, 4) != 0)
111 fprintf(out, ",\n\t\t\t\"horizontal-offset\":%i", get_s16le(dmic, 4));
112 if (get_s16le(dmic, 6) != 0)
113 fprintf(out, ",\n\t\t\t\"vertical-offset\":%i", get_s16le(dmic, 6));
114 if (get_u8(dmic, 8) != 0)
115 fprintf(out, ",\n\t\t\t\"freq-low-band\":%i", get_u8(dmic, 8) * 5);
116 if (get_u8(dmic, 9) != 0)
117 fprintf(out, ",\n\t\t\t\"freq-high-band\":%i", get_u8(dmic, 9) * 500);
118 if (get_s16le(dmic, 10) != 0)
119 fprintf(out, ",\n\t\t\t\"direction-angle\":%i", get_s16le(dmic, 10));
120 if (get_s16le(dmic, 12) != 0)
121 fprintf(out, ",\n\t\t\t\"elevation-angle\":%i", get_s16le(dmic, 12));
122 angle_begin = get_s16le(dmic, 14);
123 angle_end = get_s16le(dmic, 16);
129 angle_begin = get_s16le(dmic, 18);
130 angle_end = get_s16le(dmic, 20);
222 fprintf(stderr, "No dmic endpoint found\n");
275 #define PROG "nhlt-dmic-info"
293 { TITLE, NULL, "Usage: nhtl-dmic-json <options>" },