2 * module-agl-audio -- PulseAudio module for providing audio routing support
3 * (forked from "module-murphy-ivi" - https://github.com/otcshare )
4 * Copyright (c) 2012, Intel Corporation.
5 * Copyright (c) 2016, IoT.bzh
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU Lesser General Public License,
9 * version 2.1, as published by the Free Software Foundation.
11 * This program is distributed in the hope it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin St - Fifth Floor, Boston,
25 #include <pulsecore/core.h>
31 struct pa_null_sink *pa_utils_create_null_sink (struct userdata *, const char *);
32 void pa_utils_destroy_null_sink (struct userdata *, struct pa_null_sink *);
33 pa_sink *pa_utils_get_null_sink (struct userdata *, struct pa_null_sink *);
34 pa_source *pa_utils_get_null_source (struct userdata *, struct pa_null_sink *);
36 /* general helper functions */
37 const char *pa_utils_get_card_name (pa_card *);
38 const char *pa_utils_get_card_bus (pa_card *);
39 const char *pa_utils_get_sink_name (pa_sink *);
40 const char *pa_utils_get_source_name (pa_source *);
41 const char *pa_utils_get_sink_input_name (pa_sink_input *);
42 const char *pa_utils_get_source_output_name (pa_source_output *);
43 pa_sink *pa_utils_get_primary_alsa_sink (struct userdata *);
44 void pa_utils_init_stamp (void);
45 uint32_t pa_utils_new_stamp (void);
46 uint32_t pa_utils_get_stamp (void);
48 /* AM-oriented helper functions */
49 char *pa_utils_get_zone (pa_proplist *, pa_proplist *);
50 bool pa_utils_set_stream_routing_properties (pa_proplist *, int, void *);
51 bool pa_utils_unset_stream_routing_properties (pa_proplist *);