Commit graph

465 commits

Author SHA1 Message Date
Juho Hämäläinen
13b3ed1a75 build: Generate entry macros as well. 2019-05-13 10:11:46 +03:00
Juho Hämäläinen
0fdfef668d build: Use correct channel input channel names. 2019-05-13 10:11:46 +03:00
Juho Hämäläinen
ab883c792b module-droid-source: Add config as valid module argument. 2019-05-13 10:11:46 +03:00
Juho Hämäläinen
a9566c26b3 module-droid-sink: Add config as valid module argument. 2019-05-13 10:11:46 +03:00
Juho Hämäläinen
73bf39a07a droid-sink: Don't free config twice. 2019-05-13 10:11:46 +03:00
Juho Hämäläinen
07df5e6953 xml-parser: Avoid segfault if root node is not defined.
[xml-parser] Behave better with badly formatted input.
2019-05-13 10:11:29 +03:00
Juho Hämäläinen
b4414fb5a1 Bump packaging version. 2019-04-04 11:54:38 +03:00
Juho Hämäläinen
4a558ba35f
Merge pull request #87 from jusa/jb44329
droid-sink droid-source: Return from process_msg only on error.
2019-04-04 11:53:30 +03:00
Juho Hämäläinen
f652f1f52a droid-sink droid-source: Return from process_msg only on error.
When updating the implementation to support PulseAudio 12.2 the handling
of sink/source process msg function with older PulseAudio versions
incorrectly returns always, when that should only be done in case of
error.

[modules-droid] Update sink/source state correctly with PulseAudio 11.1. JB#44329
2019-04-04 11:11:52 +03:00
Juho Hämäläinen
b1ce02b3d6
Merge pull request #86 from jusa/pa12.2
Update to support PulseAudio 12.2.
2019-03-22 13:23:24 +02:00
Juho Hämäläinen
8ff57cbc0d packaging: Bump module version.
[modules-droid] Update to support PulseAudio 12.2. JB#42201
2019-03-22 10:41:50 +02:00
Juho Hämäläinen
c3c456db8b droid-source: Update state setting to PulseAudio 12.2 style. 2019-03-22 10:41:50 +02:00
Juho Hämäläinen
3210023c94 droid-sink: Update state setting to PulseAudio 12.2 style. 2019-03-22 10:41:48 +02:00
Juho Hämäläinen
b00bc7c3ea Bump packaging version. 2018-11-15 16:15:51 +02:00
Juho Hämäläinen
2e3e5c8977
Merge pull request #85 from jusa/jb43836
Fix voicecall recording on Jolla1.
2018-11-15 16:15:00 +02:00
Juho Hämäläinen
aa28d5935d [sbj] Add missing define to fix voicecall recording. Fixes JB#43836
When refactoring code for XML configuration parsing QCOM_HARDWARE define
was lost on Jolla1. This broke at least voicecall recording.
2018-11-15 15:34:20 +02:00
Juho Hämäläinen
781d8fa842 Bump packaging version. 2018-11-01 14:51:19 +02:00
Juho Hämäläinen
281c000b04
Merge pull request #84 from jusa/xml_parser
Be less strict about module element parsing.
2018-11-01 14:49:16 +02:00
Juho Hämäläinen
9f5da93e9c [xml-parser] Be less strict in parsing module attributes. JB#42564
We are not yet using any of the information in module element anywhere
anyway.
2018-11-01 14:41:39 +02:00
Juho Hämäläinen
c60108b799
Merge pull request #83 from jusa/jb43235
Add unload_call_exit quirk.
2018-10-05 11:26:49 +03:00
Juho Hämäläinen
d8a3c42f06 [README] Add description for unload_call_exit quirk. 2018-10-05 11:05:08 +03:00
Juho Hämäläinen
c502e04d6f [source] Free config after use. 2018-10-05 11:05:08 +03:00
Juho Hämäläinen
ee53393fff [sink] Free config after use. 2018-10-05 11:05:08 +03:00
Juho Hämäläinen
e486eeaaee [card] Free config after use. 2018-10-05 11:05:08 +03:00
Juho Hämäläinen
0ac35e1246 [common] Duplicate config for hw module.
Instead of transferring ownership just duplicate the
configuration.
2018-10-05 11:05:08 +03:00
Juho Hämäläinen
81a43e7b5e [common] Add function to duplicate configuration. 2018-10-05 11:05:08 +03:00
Juho Hämäläinen
8e1db64cd9 [card] Use common pattern of getting hw module.
Try to get module first without configuration and
if the module doesn't exist yet load config and
try again.
2018-10-05 11:05:08 +03:00
Juho Hämäläinen
1d4ebe363f [common] Be less verbose about missing config.
This was probably a call to pa_droid_hw_module_get()
with NULL config intentionally.
2018-10-05 11:05:08 +03:00
Juho Hämäläinen
c0a609aa7d [common] Add quirk unload_call_exit. JB#43235
Instead of closing the hw device call exit(0). This way
we can prevent possible strange segfaults from trying
to close the device and get rid of false crashes.
2018-10-05 11:05:05 +03:00
Juho Hämäläinen
929c3fdd6c [keepalive] Update state properly.
If keepalive is started after sinks or sources are
already created make sure the bookkeeping is correct.
2018-10-05 08:36:37 +03:00
Juho Hämäläinen
7c7caed93b Bump packaging version. 2018-08-28 14:30:41 +03:00
Juho Hämäläinen
aeae77a3d0
Merge pull request #81 from jusa/xml_audio_policy
Make sure QCOM_HARDWARE is defined when needed.
2018-08-28 14:29:43 +03:00
Juho Hämäläinen
4486d27741 [common] Make sure QCOM_HARDWARE is defined when needed. JB#42564
Droid headers define different things sometimes if QCOM_HARDWARE is
defined. Make sure that before including hardware/audio.h either
version.h or android-config.h is included so that the define is
correctly set if needed.
2018-08-28 14:02:02 +03:00
Juho Hämäläinen
b0af01b59b Bump packaging version. 2018-08-23 13:02:42 +03:00
Juho Hämäläinen
59b44fd22c
Merge pull request #80 from jusa/xml_audio_policy
Fixes to primary output handling and some refactoring.
2018-08-23 12:59:49 +03:00
Juho Hämäläinen
ba435cd02e [packaging] Remove obsolete header and pc file installs. 2018-08-23 12:36:38 +03:00
Juho Hämäläinen
6847b165b6 [build] Install common headers and pc file properly. 2018-08-23 12:36:38 +03:00
Juho Hämäläinen
4ba7a2b4bf [modules] Update includes. 2018-08-23 12:36:38 +03:00
Juho Hämäläinen
4aab3b946b [common] Move public headers to include/droid 2018-08-23 12:36:38 +03:00
Juho Hämäläinen
f9839f608c [common] Use global include with public headers. 2018-08-23 12:36:38 +03:00
Juho Hämäläinen
4fb2ce754d [common] Remove sllist implementation to own header. 2018-08-23 11:09:13 +03:00
Juho Hämäläinen
d13b417421 [config] Refactor hw module creation. 2018-08-23 11:00:52 +03:00
Juho Hämäläinen
cf69ae6eee [xml-parser] More generic channel mask direction workaround. JB#42564
Seems that channel mask direction errors are more frequent than initially
thought, so just switch the direction for all errors before parsing the
mask value.
2018-08-22 14:19:07 +03:00
Juho Hämäläinen
a4c549ea9b [config] Reorder configuration file search locations. JB#42564 2018-08-22 14:19:07 +03:00
Juho Hämäläinen
7617f1927f [README] Add note about xml parsing. 2018-08-22 14:19:05 +03:00
Juho Hämäläinen
f9d1eaf6f9 [common] Remove unused config functions. 2018-08-22 14:09:54 +03:00
Juho Hämäläinen
c42b572dd5 [common] Combine output and input configurations. 2018-08-22 14:09:51 +03:00
Juho Hämäläinen
226758abca [common] Check for primary flag instead of string. JB#42564
Use flags for determining if output is primary instead of
matching a string. For inputs there really isn't a primary
input flag in HAL side but for our needs just looking for
prefix is enough.
2018-08-20 11:28:52 +03:00
Juho Hämäläinen
be5bdbd0c6 [common] Check for SPEAKER_DRC_ENABLED_TAG directly. JB#42564
No need to have separate define, just check for the needed macro
directly.
2018-08-20 11:19:50 +03:00
Juho Hämäläinen
46bac3e0b0 Merge branch 'input_flags' 2018-08-15 16:02:06 +03:00