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,
22 #include <pulsecore/pulsecore-config.h> /* required for headers below */
23 #include <pulsecore/core-util.h> /* required for "pa_streq" */
27 agl_node_type pa_classify_guess_stream_node_type (struct userdata *u, pa_proplist *pl)
35 role = pa_proplist_gets (pl, PA_PROP_MEDIA_ROLE);
38 type = agl_node_type_unknown;
39 else if (pa_streq (role, "radio"))
41 else if (pa_streq (role, "music"))
43 else if (pa_streq (role, "navi"))
45 else if (pa_streq (role, "game"))
47 else if (pa_streq (role, "browser"))
49 else if (pa_streq (role, "camera"))
51 else if (pa_streq (role, "phone"))
53 else if (pa_streq (role, "alert"))
55 else if (pa_streq (role, "event"))
57 else if (pa_streq (role, "system"))