Lines Matching refs:attr

37 typedef void (* section_process_fn)(const XML_Char **attr);
39 static void process_acdb_id(const XML_Char **attr);
40 static void process_pcm_id(const XML_Char **attr);
41 static void process_backend_name(const XML_Char **attr);
42 static void process_config_params(const XML_Char **attr);
43 static void process_root(const XML_Char **attr);
44 static void process_operator_specific(const XML_Char **attr);
98 static void process_root(const XML_Char **attr __unused) in process_root()
103 static void process_pcm_id(const XML_Char **attr) in process_pcm_id() argument
107 if (strcmp(attr[0], "name") != 0) { in process_pcm_id()
112 index = platform_get_usecase_index((char *)attr[1]); in process_pcm_id()
115 __func__, attr[1], PLATFORM_INFO_XML_PATH); in process_pcm_id()
119 if (strcmp(attr[2], "type") != 0) { in process_pcm_id()
126 if (!strcasecmp((char *)attr[3], "in")) { in process_pcm_id()
128 } else if (!strcasecmp((char *)attr[3], "out")) { in process_pcm_id()
135 if (strcmp(attr[4], "id") != 0) { in process_pcm_id()
140 int id = atoi((char *)attr[5]); in process_pcm_id()
144 __func__, attr[1], PLATFORM_INFO_XML_PATH, type, id); in process_pcm_id()
153 static void process_backend_name(const XML_Char **attr) in process_backend_name() argument
158 if (strcmp(attr[0], "name") != 0) { in process_backend_name()
163 index = platform_get_snd_device_index((char *)attr[1]); in process_backend_name()
166 __func__, attr[1], PLATFORM_INFO_XML_PATH); in process_backend_name()
170 if (strcmp(attr[2], "backend") != 0) { in process_backend_name()
172 __func__, attr[1], PLATFORM_INFO_XML_PATH); in process_backend_name()
176 if (attr[4] != NULL) { in process_backend_name()
177 if (strcmp(attr[4], "interface") != 0) { in process_backend_name()
180 hw_interface = (char *)attr[5]; in process_backend_name()
184 if (platform_set_snd_device_backend(index, attr[3], hw_interface) < 0) { in process_backend_name()
186 __func__, attr[1], PLATFORM_INFO_XML_PATH, attr[3]); in process_backend_name()
194 static void process_acdb_id(const XML_Char **attr) in process_acdb_id() argument
198 if (strcmp(attr[0], "name") != 0) { in process_acdb_id()
203 index = platform_get_snd_device_index((char *)attr[1]); in process_acdb_id()
206 __func__, attr[1], PLATFORM_INFO_XML_PATH); in process_acdb_id()
210 if (strcmp(attr[2], "acdb_id") != 0) { in process_acdb_id()
212 __func__, attr[1], PLATFORM_INFO_XML_PATH); in process_acdb_id()
216 if (platform_set_snd_device_acdb_id(index, atoi((char *)attr[3])) < 0) { in process_acdb_id()
218 __func__, attr[1], PLATFORM_INFO_XML_PATH, atoi((char *)attr[3])); in process_acdb_id()
227 static void process_operator_specific(const XML_Char **attr) in process_operator_specific() argument
231 if (strcmp(attr[0], "name") != 0) { in process_operator_specific()
236 snd_device = platform_get_snd_device_index((char *)attr[1]); in process_operator_specific()
239 __func__, (char *)attr[3], PLATFORM_INFO_XML_PATH); in process_operator_specific()
243 if (strcmp(attr[2], "operator") != 0) { in process_operator_specific()
248 if (strcmp(attr[4], "mixer_path") != 0) { in process_operator_specific()
253 if (strcmp(attr[6], "acdb_id") != 0) { in process_operator_specific()
258 …tform_add_operator_specific_device(snd_device, (char *)attr[3], (char *)attr[5], atoi((char *)attr in process_operator_specific()
265 static void process_config_params(const XML_Char **attr) in process_config_params() argument
267 if (strcmp(attr[0], "key") != 0) { in process_config_params()
272 if (strcmp(attr[2], "value") != 0) { in process_config_params()
277 str_parms_add_str(my_data.kvpairs, (char*)attr[1], (char*)attr[3]); in process_config_params()
284 const XML_Char **attr) in start_tag() argument
308 fn(attr); in start_tag()
316 fn(attr); in start_tag()
324 fn(attr); in start_tag()