Commit graph

647 commits

Author SHA1 Message Date
Juho Hämäläinen
04b14b8aac
Merge pull request #114 from jusa/cal_wait
Enable audio_cal_wait properly.
2022-02-25 13:10:20 +02:00
Juho Hämäläinen
0adc96eb56 common: Whitespace fix. 2022-02-25 13:05:27 +02:00
Juho Hämäläinen
47a043d8dc common: Enable audio_cal_wait properly.
Actual call to the function was missing.

[common] Enable audio_cal_wait properly. JB#55832
2022-02-25 13:05:10 +02:00
Juho Hämäläinen
a995948689 Bump packaging version. 2022-02-24 15:36:40 +02:00
Juho Hämäläinen
c4be583fbf
Merge pull request #113 from jusa/droid11
Update implementation for Android 11, drop old support.
2022-02-24 15:35:18 +02:00
Juho Hämäläinen
51d85423d5 common: Force mono 16kHz with AUDIO_OUTPUT_FLAG_VOIP_RX. 2022-02-24 15:05:08 +02:00
Juho Hämäläinen
ffe02f26b1 packaging: Update spec.
[pulseaudio-modules-droid] Update implementation for Android 11. Fixes JB#55832
2022-02-24 15:05:08 +02:00
Juho Hämäläinen
8b1bc6cbce packaging: Remove old sbj spec. 2022-02-24 15:05:08 +02:00
Juho Hämäläinen
1c1d82dfb9 README: Update content. 2022-02-24 15:05:06 +02:00
Juho Hämäläinen
5c53ef736f build: Update build flags. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
77b1e60df0 common: Always flag voip rx if enabled. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
385ccb8e4c options: voip rx is always enabled 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
a37363a46c card: Create voip_rx sink in communication profile. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
e0d66cf4ad card: Update card with new common. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
2d1a50d450 card: Use VSID profiles only for debugging. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
c895311db5 source: Update source with new common. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
5238bfd192 sink: Update sink with new common. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
d4a8167c11 common: Update version requirements. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
b08cc4d219 common: Implement stream handling using device and mix ports. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
0b1221a047 card: Remove set_parameters callback. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
9ffca4ecd5 common: Remove set_parameters callback from card data. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
c359126658 common: Remove unused enums. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
73f93f1967 common: Remove _VSID define. 2022-02-24 14:48:12 +02:00
Juho Hämäläinen
5d4a5af1f5 common: Rename quirks to options and use normal modargs for parsing. 2022-02-24 14:48:10 +02:00
Juho Hämäläinen
532f6c55bf common: Update audio enum header.
Use current droid version 11 as base.
2022-02-24 09:08:28 +02:00
Juho Hämäläinen
1ac75ed3b0 common: Remove legacy from converter, parse channels as values. 2022-02-24 09:08:26 +02:00
Juho Hämäläinen
c02f917ebb common: Parser uses new config structures. 2022-02-24 09:08:21 +02:00
Juho Hämäläinen
4ca8716bd1 common: Use replace in place from utils in parser. 2022-02-24 09:08:21 +02:00
Juho Hämäläinen
67eeb83105 common: Parser supports new xml attributes. 2022-02-24 09:08:21 +02:00
Juho Hämäläinen
9e4c6fa8f1 common: Update config structures.
Match xml format style.
2022-02-24 09:08:17 +02:00
Juho Hämäläinen
40c320bc07 common: Add two string utility functions. 2022-02-24 09:08:14 +02:00
Juho Hämäläinen
eefdb31f57 common: Simple list implementation. 2022-02-24 09:08:11 +02:00
Juho Hämäläinen
b4fb20eafe common: Always use expat implementation for parser. 2022-02-23 10:27:49 +02:00
Juho Hämäläinen
fdd22b6949 common: Remove legacy conversion header. 2022-02-23 10:22:22 +02:00
Juho Hämäläinen
17fcb9e074 common: Remove legacy parser. 2022-02-23 10:21:03 +02:00
Juho Hämäläinen
1e992b6954 build: Update flag checks for current version. 2022-02-23 09:23:27 +02:00
Juho Hämäläinen
1daab94724 build: Expat is mandatory. 2022-02-23 09:23:03 +02:00
Juho Hämäläinen
0898217179 Bump packaging version. 2022-02-21 09:34:20 +02:00
Juho Hämäläinen
dbc7d678bb
Merge pull request #112 from jusa/new-api
New API for calling HAL functions.
2022-02-21 09:31:03 +02:00
Juho Hämäläinen
ef56dd4964 README: Add section about pa_shared based API. 2022-02-18 15:45:32 +02:00
Juho Hämäläinen
1cc2a0822e common: New API for calling HAL functions.
New pa_shared based API for calling HAL functions so that other modules
needing these functions don't need to link with libdroid.

[common] New API for calling HAL functions. JB#55832
2022-02-18 15:45:32 +02:00
Juho Hämäläinen
8df3961333
Merge pull request #111 from g7/for-upstream/mer-hybris/no-channels
common: Handle profiles with no supported channels
2022-02-18 15:10:19 +02:00
Eugenio Paolantonio (g7)
b23e20db5c common: Handle profiles with no supported channels
When a profile doesn't have any supported channels, pa_conversion_parse_*_channels
returns false even though the parsing itself succeeded.
This in turn makes the parsing to be aborted altogether.

Handle this case by properly ignoring the profile.

This commit changes the pa_conversion_parse_*_channels functions so that
they return the channel count, or -1 if the parsing has been unsuccessful.

[common] Handle profiles with no supported channels

Signed-off-by: Eugenio Paolantonio (g7) <me@medesimo.eu>
2022-02-18 13:15:21 +01:00
Juho Hämäläinen
9c6842e7d9 Bump packaging version. 2021-10-08 15:43:09 +03:00
Juho Hämäläinen
0d739ca587
Merge pull request #109 from jusa/jb55711
Use more generic stream property for audio source.
2021-10-08 15:42:31 +03:00
Juho Hämäläinen
1781dab3b8 common: Use more generic stream property for audio source.
[common] Use more generic stream property for audio source. JB#55711
2021-10-08 15:20:58 +03:00
Juho Hämäläinen
98d2c7358a Bump packaging version. 2021-10-08 08:32:35 +03:00
Juho Hämäläinen
11a09b005d
Merge pull request #108 from jusa/jb55711
Enable custom audio sources with input streams.
2021-10-08 08:31:12 +03:00
Juho Hämäläinen
d9e2ddfd72 common: Fix segfault with adaptations which assume empty adress is not NULL.
Some adaptations don't check for NULL before using the address which
leads to a crash. Let's just use empty string for address.

[common] Fix segfault with adaptations which assume empty adress is not NULL. Fixes JB#55831
2021-10-08 08:30:12 +03:00
Juho Hämäläinen
baecfc7cdd source: Use source-output proplist when reconfiguring input stream.
Use updated functions from common which utilize proplist when reconfiguring
input stream.

[source] Use source-output proplist when reconfiguring input stream. JB#55711
2021-10-07 12:06:31 +03:00