Commit graph

449 commits

Author SHA1 Message Date
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
Juho Hämäläinen
624fe0c163 [parser-xml] No need to idfef input flags. 2018-08-15 15:58:10 +03:00
Juho Hämäläinen
ee37da7b17 [common] Use uint32_t for input flags. JB#42564 2018-08-15 15:57:47 +03:00
Juho Hämäläinen
75239fdf83 [sbj] Add empty input flag struct.
Add missing struct so that we don't need to ifdef around the
structure usage elsewhere.
2018-08-15 15:57:02 +03:00
Juho Hämäläinen
9541b1e23e
Merge pull request #79 from jusa/sbj_build_fix
Fix build for Jolla1
2018-08-15 15:13:55 +03:00
Juho Hämäläinen
8ed98f9884 Bump packaging version. 2018-08-15 14:52:53 +03:00
Juho Hämäläinen
461dc48651 [sbj] Disable xml explicitly. 2018-08-15 14:52:01 +03:00
Juho Hämäläinen
317791c166 [build] Add workaround for SBJ HAL headers. JB#42564
Workaround for multiple definitions of variables from SBJ HAL headers.
2018-08-15 14:50:18 +03:00
Juho Hämäläinen
09085a8d38 [sbj] Add missing include. 2018-08-15 14:49:28 +03:00
Juho Hämäläinen
27c78eccb2 [conversion] Disable input flags for API 1 and 2. JB#42564 2018-08-15 14:49:01 +03:00
Juho Hämäläinen
5e73225f30 Bump packaging version. 2018-08-15 12:58:07 +03:00
Juho Hämäläinen
ff10cc7c62
Merge pull request #78 from jusa/xml_audio_policy
Implement parser for xml style audio policy configuration.
2018-08-15 12:56:19 +03:00
Juho Hämäläinen
7c3e431cb9 [module-droid-sink] Include conversion header. 2018-08-15 12:50:52 +03:00
Juho Hämäläinen
84a6e0a1e3 [modules] Update contact information. 2018-08-15 12:50:52 +03:00
Juho Hämäläinen
5881fe466e [packaging] Build requires expat. JB#42564 2018-08-15 12:50:52 +03:00
Juho Hämäläinen
58415a51a4 [build] Use expat. 2018-08-15 12:50:52 +03:00
Juho Hämäläinen
a6beecbbda [xml-parser] Add workaround for certain config error. JB#42564 2018-08-15 12:50:52 +03:00