Lines Matching defs:srcs
53 static void clear_source_list(struct list_head *srcs)
57 list_for_each_entry_safe(entry, tmp, srcs, list)
61 static int insert_source_entry(struct list_head *srcs, snd_ctl_t *handle,
91 list_add_tail(&entry->list, srcs);
119 static inline bool seek_entry_by_name(struct list_head *srcs, const char *name)
123 list_for_each_entry(entry, srcs, list) {
131 static int prepare_source_entry(struct list_head *srcs, const char *name)
142 if (seek_entry_by_name(srcs, cardname))
147 err = insert_source_entry(srcs, handle, cardname);
152 if (seek_entry_by_name(srcs, name))
157 err = insert_source_entry(srcs, handle, name);
275 struct list_head *srcs)
291 list_for_each_entry(entry, srcs, list) {
302 static int run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs,
311 list_for_each_entry(entry, srcs, list)
360 struct list_head *srcs)
364 list_for_each_entry(entry, srcs, list)
394 LIST_HEAD(srcs);
424 err = prepare_source_entry(&srcs, name);
428 err = prepare_dispatcher(epfd, sigfd, infd, &srcs);
430 err = run_dispatcher(epfd, sigfd, infd, &srcs, &retry);
431 clear_dispatcher(epfd, sigfd, infd, &srcs);
441 clear_source_list(&srcs);