Lines Matching refs:attr
52 typedef void (* section_process_fn)(const XML_Char **attr);
54 static void process_acdb_id(const XML_Char **attr);
55 static void process_bit_width(const XML_Char **attr);
56 static void process_pcm_id(const XML_Char **attr);
57 static void process_backend_name(const XML_Char **attr);
58 static void process_interface_name(const XML_Char **attr);
59 static void process_root(const XML_Char **attr);
97 static void process_root(const XML_Char **attr __unused) in process_root()
102 static void process_pcm_id(const XML_Char **attr) in process_pcm_id() argument
106 if (strcmp(attr[0], "name") != 0) { in process_pcm_id()
111 index = platform_get_usecase_index((char *)attr[1]); in process_pcm_id()
114 __func__, attr[1]); in process_pcm_id()
118 if (strcmp(attr[2], "type") != 0) { in process_pcm_id()
125 if (!strcasecmp((char *)attr[3], "in")) { in process_pcm_id()
127 } else if (!strcasecmp((char *)attr[3], "out")) { in process_pcm_id()
134 if (strcmp(attr[4], "id") != 0) { in process_pcm_id()
139 int id = atoi((char *)attr[5]); in process_pcm_id()
143 __func__, attr[1], type, id); in process_pcm_id()
152 static void process_backend_name(const XML_Char **attr) in process_backend_name() argument
156 if (strcmp(attr[0], "name") != 0) { in process_backend_name()
161 index = platform_get_snd_device_index((char *)attr[1]); in process_backend_name()
164 __func__, attr[1]); in process_backend_name()
168 if (strcmp(attr[2], "backend") != 0) { in process_backend_name()
170 __func__, attr[1]); in process_backend_name()
174 if (platform_set_snd_device_backend(index, attr[3]) < 0) { in process_backend_name()
176 __func__, attr[1], attr[3]); in process_backend_name()
184 static void process_acdb_id(const XML_Char **attr) in process_acdb_id() argument
188 if (strcmp(attr[0], "name") != 0) { in process_acdb_id()
193 index = platform_get_snd_device_index((char *)attr[1]); in process_acdb_id()
196 __func__, attr[1]); in process_acdb_id()
200 if (strcmp(attr[2], "acdb_id") != 0) { in process_acdb_id()
202 __func__, attr[1]); in process_acdb_id()
206 if (platform_set_snd_device_acdb_id(index, atoi((char *)attr[3])) < 0) { in process_acdb_id()
208 __func__, attr[1], atoi((char *)attr[3])); in process_acdb_id()
216 static void process_bit_width(const XML_Char **attr) in process_bit_width() argument
220 if (strcmp(attr[0], "name") != 0) { in process_bit_width()
225 index = platform_get_snd_device_index((char *)attr[1]); in process_bit_width()
228 __func__, attr[1]); in process_bit_width()
232 if (strcmp(attr[2], "bit_width") != 0) { in process_bit_width()
234 __func__, attr[1]); in process_bit_width()
238 if (platform_set_snd_device_bit_width(index, atoi((char *)attr[3])) < 0) { in process_bit_width()
240 __func__, attr[1], atoi((char *)attr[3])); in process_bit_width()
248 static void process_interface_name(const XML_Char **attr) in process_interface_name() argument
252 if (strcmp(attr[0], "name") != 0) { in process_interface_name()
258 if (strcmp(attr[2], "interface") != 0) { in process_interface_name()
260 __func__, attr[1]); in process_interface_name()
265 if (strcmp(attr[4], "codec_type") != 0) { in process_interface_name()
267 __func__, attr[1]); in process_interface_name()
272 ret = platform_set_audio_device_interface((char *)attr[1], (char *)attr[3], in process_interface_name()
273 (char *)attr[5]); in process_interface_name()
285 const XML_Char **attr) in start_tag() argument
310 fn(attr); in start_tag()
318 fn(attr); in start_tag()