Merge remote-tracking branch 'mer-hybris/master' into feature/bullseye/14.2.88
This commit is contained in:
commit
3ab49846d2
10 changed files with 10 additions and 167 deletions
|
|
@ -45,7 +45,11 @@ This contains development files for PulseAudio droid modules.
|
|||
%build
|
||||
echo "%{moduleversion}" > .tarball-version
|
||||
# Obtain the DEVICE from the same source as used in /etc/os-release
|
||||
if [ -e "%{_includedir}/droid-devel/hw-release.vars" ]; then
|
||||
. %{_includedir}/droid-devel/hw-release.vars
|
||||
else
|
||||
. %{_libdir}/droid-devel/hw-release.vars
|
||||
fi
|
||||
%reconfigure --disable-static --with-droid-device=$MER_HA_DEVICE
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ modlibexec_LTLIBRARIES = \
|
|||
module-droid-source.la \
|
||||
module-droid-card.la
|
||||
|
||||
noinst_HEADERS = module-droid-sink-symdef.h module-droid-source-symdef.h module-droid-card-symdef.h
|
||||
|
||||
libdroid_sink_la_SOURCES = droid-sink.c droid-sink.h
|
||||
libdroid_sink_la_LDFLAGS = -avoid-version -Wl,-z,noexecstack -lhybris-common
|
||||
libdroid_sink_la_LIBADD = $(top_builddir)/src/common/libdroid-util.la $(AM_LIBADD)
|
||||
|
|
@ -34,14 +32,14 @@ libdroid_source_la_CFLAGS = $(AM_CFLAGS)
|
|||
module_droid_sink_la_SOURCES = module-droid-sink.c
|
||||
module_droid_sink_la_LDFLAGS = -module -avoid-version -Wl,-z,noexecstack -lhybris-common
|
||||
module_droid_sink_la_LIBADD = -lm libdroid-sink.la $(AM_LIBADD)
|
||||
module_droid_sink_la_CFLAGS = $(AM_CFLAGS)
|
||||
module_droid_sink_la_CFLAGS = $(AM_CFLAGS) -DPA_MODULE_NAME=module_droid_sink
|
||||
|
||||
module_droid_source_la_SOURCES = module-droid-source.c
|
||||
module_droid_source_la_LDFLAGS = -module -avoid-version -Wl,-z,noexecstack -lhybris-common
|
||||
module_droid_source_la_LIBADD = -lm libdroid-source.la $(AM_LIBADD)
|
||||
module_droid_source_la_CFLAGS = $(AM_CFLAGS)
|
||||
module_droid_source_la_CFLAGS = $(AM_CFLAGS) -DPA_MODULE_NAME=module_droid_source
|
||||
|
||||
module_droid_card_la_SOURCES = module-droid-card.c droid-extcon.c droid-extevdev.c
|
||||
module_droid_card_la_LDFLAGS = -module -avoid-version -Wl,-z,noexecstack -lhybris-common -ludev
|
||||
module_droid_card_la_LIBADD = -lm libdroid-sink.la libdroid-source.la $(top_builddir)/src/common/libdroid-util.la $(AM_LIBADD) $(EVDEV_LIBS)
|
||||
module_droid_card_la_CFLAGS = $(AM_CFLAGS) $(EVDEV_CFLAGS)
|
||||
module_droid_card_la_CFLAGS = $(AM_CFLAGS) $(EVDEV_CFLAGS) -DPA_MODULE_NAME=module_droid_card
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@
|
|||
#include <pulsecore/time-smoother.h>
|
||||
#include <pulsecore/hashmap.h>
|
||||
#include <pulsecore/core-subscribe.h>
|
||||
#include <pulse/util.h>
|
||||
#include <pulse/version.h>
|
||||
|
||||
#include "droid-sink.h"
|
||||
|
|
@ -526,14 +527,6 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
|
|||
*((pa_usec_t*) data) = pa_droid_stream_get_latency(u->stream);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if PULSEAUDIO_VERSION < 12
|
||||
case PA_SINK_MESSAGE_SET_STATE: {
|
||||
int r;
|
||||
if ((r = sink_set_state_in_io_thread_cb(u->sink, PA_PTR_TO_UINT(data), 0)) < 0)
|
||||
return r;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return pa_sink_process_msg(o, code, data, offset, chunk);
|
||||
|
|
@ -1369,9 +1362,7 @@ pa_sink *pa_droid_sink_new(pa_module *m,
|
|||
u->sink->userdata = u;
|
||||
|
||||
u->sink->parent.process_msg = sink_process_msg;
|
||||
#if PULSEAUDIO_VERSION >= 12
|
||||
u->sink->set_state_in_io_thread = sink_set_state_in_io_thread_cb;
|
||||
#endif
|
||||
|
||||
u->sink->set_port = sink_set_port_cb;
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
#include <pulsecore/rtpoll.h>
|
||||
#include <pulsecore/time-smoother.h>
|
||||
#include <pulsecore/resampler.h>
|
||||
#include <pulse/util.h>
|
||||
#include <pulse/version.h>
|
||||
|
||||
#include "droid-source.h"
|
||||
|
|
@ -324,23 +325,6 @@ static int source_set_state_in_io_thread_cb(pa_source *s, pa_source_state_t new_
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* Called from IO context */
|
||||
static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t offset, pa_memchunk *chunk) {
|
||||
#if PULSEAUDIO_VERSION < 12
|
||||
struct userdata *u = PA_SOURCE(o)->userdata;
|
||||
|
||||
switch (code) {
|
||||
case PA_SOURCE_MESSAGE_SET_STATE: {
|
||||
int r;
|
||||
if ((r = source_set_state_in_io_thread_cb(u->source, PA_PTR_TO_UINT(data), 0)) < 0)
|
||||
return r;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return pa_source_process_msg(o, code, data, offset, chunk);
|
||||
}
|
||||
|
||||
static int source_set_port_cb(pa_source *s, pa_device_port *p) {
|
||||
struct userdata *u = s->userdata;
|
||||
pa_droid_port_data *data;
|
||||
|
|
@ -740,10 +724,8 @@ pa_source *pa_droid_source_new(pa_module *m,
|
|||
|
||||
u->source->userdata = u;
|
||||
|
||||
u->source->parent.process_msg = source_process_msg;
|
||||
#if PULSEAUDIO_VERSION >= 12
|
||||
u->source->parent.process_msg = pa_source_process_msg;
|
||||
u->source->set_state_in_io_thread = source_set_state_in_io_thread_cb;
|
||||
#endif
|
||||
|
||||
source_set_mute_control(u);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2018 Jolla Ltd.
|
||||
*
|
||||
* Contact: Juho Hämäläinen <juho.hamalainen@jolla.com>
|
||||
*
|
||||
* These PulseAudio Modules are free software; you can redistribute
|
||||
* it and/or modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation
|
||||
* version 2.1 of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||
* USA.
|
||||
*/
|
||||
#ifndef foomoduledroidcardsymdeffoo
|
||||
#define foomoduledroidcardsymdeffoo
|
||||
|
||||
#include <pulsecore/core.h>
|
||||
#include <pulsecore/module.h>
|
||||
|
||||
#define pa__init module_droid_card_LTX_pa__init
|
||||
#define pa__done module_droid_card_LTX_pa__done
|
||||
#define pa__get_author module_droid_card_LTX_pa__get_author
|
||||
#define pa__get_description module_droid_card_LTX_pa__get_description
|
||||
#define pa__get_usage module_droid_card_LTX_pa__get_usage
|
||||
#define pa__get_version module_droid_card_LTX_pa__get_version
|
||||
|
||||
int pa__init(struct pa_module*m);
|
||||
void pa__done(struct pa_module*m);
|
||||
|
||||
const char* pa__get_author(void);
|
||||
const char* pa__get_description(void);
|
||||
const char* pa__get_usage(void);
|
||||
const char* pa__get_version(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -66,8 +66,6 @@
|
|||
#include "droid-extcon.h"
|
||||
#include "droid-extevdev.h"
|
||||
|
||||
#include "module-droid-card-symdef.h"
|
||||
|
||||
PA_MODULE_AUTHOR("Juho Hämäläinen");
|
||||
PA_MODULE_DESCRIPTION("Droid card");
|
||||
PA_MODULE_VERSION(PACKAGE_VERSION);
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2018 Jolla Ltd.
|
||||
*
|
||||
* Contact: Juho Hämäläinen <juho.hamalainen@jolla.com>
|
||||
*
|
||||
* These PulseAudio Modules are free software; you can redistribute
|
||||
* it and/or modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation
|
||||
* version 2.1 of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||
* USA.
|
||||
*/
|
||||
#ifndef foomoduledroidsinksymdeffoo
|
||||
#define foomoduledroidsinksymdeffoo
|
||||
|
||||
#include <pulsecore/core.h>
|
||||
#include <pulsecore/module.h>
|
||||
|
||||
#define pa__init module_droid_sink_LTX_pa__init
|
||||
#define pa__done module_droid_sink_LTX_pa__done
|
||||
#define pa__get_author module_droid_sink_LTX_pa__get_author
|
||||
#define pa__get_description module_droid_sink_LTX_pa__get_description
|
||||
#define pa__get_usage module_droid_sink_LTX_pa__get_usage
|
||||
#define pa__get_version module_droid_sink_LTX_pa__get_version
|
||||
|
||||
int pa__init(struct pa_module*m);
|
||||
void pa__done(struct pa_module*m);
|
||||
|
||||
const char* pa__get_author(void);
|
||||
const char* pa__get_description(void);
|
||||
const char* pa__get_usage(void);
|
||||
const char* pa__get_version(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -41,8 +41,6 @@
|
|||
#include <droid/conversion.h>
|
||||
#include "droid-sink.h"
|
||||
|
||||
#include "module-droid-sink-symdef.h"
|
||||
|
||||
PA_MODULE_AUTHOR("Juho Hämäläinen");
|
||||
PA_MODULE_DESCRIPTION("Droid sink");
|
||||
PA_MODULE_USAGE("master_sink=<sink to connect to> "
|
||||
|
|
|
|||
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2018 Jolla Ltd.
|
||||
*
|
||||
* Contact: Juho Hämäläinen <juho.hamalainen@jolla.com>
|
||||
*
|
||||
* These PulseAudio Modules are free software; you can redistribute
|
||||
* it and/or modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation
|
||||
* version 2.1 of the License.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||
* USA.
|
||||
*/
|
||||
#ifndef foomoduledroidsourcesymdeffoo
|
||||
#define foomoduledroidsourcesymdeffoo
|
||||
|
||||
#include <pulsecore/core.h>
|
||||
#include <pulsecore/module.h>
|
||||
|
||||
#define pa__init module_droid_source_LTX_pa__init
|
||||
#define pa__done module_droid_source_LTX_pa__done
|
||||
#define pa__get_author module_droid_source_LTX_pa__get_author
|
||||
#define pa__get_description module_droid_source_LTX_pa__get_description
|
||||
#define pa__get_usage module_droid_source_LTX_pa__get_usage
|
||||
#define pa__get_version module_droid_source_LTX_pa__get_version
|
||||
|
||||
int pa__init(struct pa_module*m);
|
||||
void pa__done(struct pa_module*m);
|
||||
|
||||
const char* pa__get_author(void);
|
||||
const char* pa__get_description(void);
|
||||
const char* pa__get_usage(void);
|
||||
const char* pa__get_version(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -40,8 +40,6 @@
|
|||
#include <droid/droid-util.h>
|
||||
#include "droid-source.h"
|
||||
|
||||
#include "module-droid-source-symdef.h"
|
||||
|
||||
PA_MODULE_AUTHOR("Juho Hämäläinen");
|
||||
PA_MODULE_DESCRIPTION("Droid source");
|
||||
PA_MODULE_USAGE("master_source=<source to connect to> "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue