Commit graph

757 commits

Author SHA1 Message Date
Juho Hämäläinen
5f6ad544e8 [source] Fix typo in log message. 2015-09-29 10:15:43 +03:00
Juho Hämäläinen
46bf9094e0 [sink] Fix typo in log message. 2015-09-29 10:15:43 +03:00
Juho Hämäläinen
feee030ca7 [card] Fix typo in log message. 2015-09-29 10:15:43 +03:00
Juho Hämäläinen
f8c922058f [util] Include android-config.h.
Include android-config.h as it includes android-version.h and
possibly other platform specific defines.
2015-09-29 10:15:43 +03:00
Juho Hämäläinen
65129833fb [source] Add missing modargs to module. 2015-09-29 10:15:43 +03:00
Juho Hämäläinen
60aa87331a [sink] Add missing modargs to module. 2015-09-29 10:15:43 +03:00
Juho Hämäläinen
a5d8675a6f [card] Add missing general module arguments. 2015-09-29 10:15:43 +03:00
Juho Hämäläinen
3c879d27ae [sink] Add overriding modargs for sink. 2015-09-29 10:15:40 +03:00
Juho Hämäläinen
db96c064ef [source] Add overriding modargs for source.
Add source specific module arguments so that source can be configured
with different parameters than sink.
2015-09-29 10:15:36 +03:00
Juho Hämäläinen
2fa1d356f8 [source] Pass device as integer if needed. Fixes MER#1343
Due to some android implementations' broken (unsigned) integer use,
add possibility to pass input source device as integer. Routing
parameters are passed using the set_parameters() as strings, so the
HAL implementation needs to convert them back to unsigned integers.
As the input devices are specified as unsigned integers > INT_MAX,
trying to do operations like atoi() with the values creates bogus
values, as glibc atoi() truncates values > INT_MAX (as does latest
bionic variant as well).

Hackish solution to overcome this is to pass the unsigned values
as integers, so that the string-formatted value range stays inside
INT_MIN and INT_MAX.
2015-09-25 15:54:27 +03:00
Juho Hämäläinen
6cec6b7c3a Merge pull request #36 from jusa/dev
Fixes to playback, record routing, and updates for 5.1 devices.
2015-09-11 15:45:30 +03:00
Juho Hämäläinen
bb8b83c374 [util-51] Add missing formats. 2015-09-11 15:30:39 +03:00
Juho Hämäläinen
a75fa10ad2 [util-51] Add qcom specific entries. 2015-09-11 15:30:39 +03:00
Juho Hämäläinen
8e8d78989f [util] Use default audio source if nothing specific is defined. 2015-09-11 15:30:39 +03:00
Juho Hämäläinen
e38d050690 [util] Correct comparison for default audio source. Fixes MER#1286 2015-09-11 15:30:39 +03:00
Juho Hämäläinen
9384008836 [sink] Set initial latency correctly.
Latency would be set correctly after first suspend anyway, but fix
initial latency setting. PulseAudio uses microseconds, HAL milliseconds.
2015-09-11 15:28:54 +03:00
Juho Hämäläinen
89e29ead84 [sink] Sleep after stream writing blocks. Fixes MER#1212
After HAL buffer is full and stream writing starts to block close to the
buffer length, sleep for one buffer length time. When io thread is
sleeping the thread can be waken up for different reasons, and if we
constantly block in the write function io thread is unable to react
immediately.
2015-09-11 15:26:46 +03:00
Juho Hämäläinen
22e1fbbada [sink] Remove mention of buffer count. 2015-09-11 15:13:48 +03:00
Juho Hämäläinen
510209493e Merge pull request #35 from jusa/mer1265
Make attached devices parsing more tolerant of unknown devices.
2015-08-26 08:33:16 +03:00
Juho Hämäläinen
33911d8606 [util] Make attached devices parsing more tolerant of unknown devices. Fixes MER#1265
Previously no unknown devices in attached sections were allowed.
Output and input sections already allow for unknown devices as long as
at least one known device is found per section. This changes attached
devices parsing to behave the same way, as long as at least one device
in attached_input_devices or attached_output_devices is known allow
module loading.
2015-08-25 16:15:40 +03:00
Juho Hämäläinen
3fb96ea58f Merge pull request #33 from jusa/mer1188
Add basic support for Android 5.1.
2015-07-22 14:46:47 +03:00
Juho Hämäläinen
50bdc79fde [README] Update supported versions. 2015-07-22 14:29:42 +03:00
Juho Hämäläinen
b304f2df13 [util] Support parsing of dynamic formats.
Only parse the value, but no actual implementation for the format
probing.
2015-07-22 11:53:43 +03:00
Juho Hämäläinen
0d3f0286a8 [util] Support parsing of dynamic sample rate.
Only parse the value, but no actual implementation for the sample rate
probing.
2015-07-22 11:47:25 +03:00
Juho Hämäläinen
e487b550b0 [source] Preliminary 5.1 support. Contributes to MER#1188 2015-07-22 11:35:45 +03:00
Juho Hämäläinen
00593581f0 [sink] Preliminary 5.1 support. Contributes to MER#1188 2015-07-22 11:35:24 +03:00
Juho Hämäläinen
30b2042252 [util-51] Add headers for 5.1. Contributes to MER#1188 2015-07-22 11:35:10 +03:00
Juho Hämäläinen
4542540c8e [util] Parse input flags with Audio HAL v3. 2015-07-22 11:00:31 +03:00
Juho Hämäläinen
01d8ea1352 [util-4x] Add or rename HAL version define. 2015-07-22 11:00:31 +03:00
Juho Hämäläinen
0f7ef7a60e [util-4x] Rename output flag conversion table. 2015-07-22 11:00:31 +03:00
Juho Hämäläinen
4182ff57ed [util] Audio HAL version 3. 2015-07-22 11:00:31 +03:00
Juho Hämäläinen
c6248e9b72 [util] Update flag parsing to distinguish input and output flags. 2015-07-22 11:00:31 +03:00
Juho Hämäläinen
c63c9f8e3f Revert "[util-44] Add additional string conversion table entries."
This reverts commit f2d780cecf.

Need to check more carefully which devices support these.
2015-06-06 12:31:14 +03:00
Juho Hämäläinen
cfd51f561a Merge pull request #32 from mlehtima/master
Fix audio on iyokan.
2015-06-06 12:16:27 +03:00
Olaf Leidinger
f2d780cecf [util-44] Add additional string conversion table entries.
This is mal's patch for additional string conversion table entries.
2015-06-06 11:30:05 +03:00
Matti Lehtimaki
a6e4c95152 [source] Set input stream to standby before starting the loop.
Fixes a hang on some devices which do the necessary initialization in read(...).
2015-06-06 10:23:32 +02:00
Matti Lehtimaki
ec1cf59f09 [source] Use mako set_parameters hack also on iyokan. 2015-06-06 10:21:46 +02:00
Juho Hämäläinen
e30295a92e [packaging] Sbj build depends on PulseAudio major.minor version. 2015-05-04 13:04:24 +03:00
Juho Hämäläinen
debec1efb9 [packaging] Build depends on PulseAudio major.minor version. 2015-05-04 12:56:44 +03:00
Juho Hämäläinen
966ab674a8 Merge pull request #30 from jusa/pa60
Update to PulseAudio 6.0
2015-05-04 12:18:19 +03:00
Juho Hämäläinen
0143c1b6a8 [packaging] Bump version and update build for dynamic versioning. 2015-04-15 15:52:40 +03:00
Juho Hämäläinen
6be21bd697 [sink,source] Use updated pa_rtpoll_run(). Contributes to JB#26620
Support both PulseAudio 5.0 and 6.0 API.
2015-04-15 15:05:23 +03:00
Juho Hämäläinen
bd75fb9f92 [build] Use dynamic versioning same way as PulseAudio. 2015-04-15 15:05:16 +03:00
Juho Hämäläinen
4bc2ad8ab5 Merge pull request #29 from jusa/dev
Conversion header fixes
2015-04-03 14:51:33 +03:00
Juho Hämäläinen
6288f208d4 [util-44] Add missing device fancy names. 2015-04-03 08:59:47 +03:00
Juho Hämäläinen
4db7997e55 [util-44] Fix fancy audio source name typo. 2015-02-27 14:44:03 +02:00
Juho Hämäläinen
5e8d92a121 [util-42] Fix fancy audio source name typo. 2015-02-27 14:44:00 +02:00
Juho Hämäläinen
02e3f04365 [util-41qc] Fix fancy audio source name typo. 2015-02-27 14:43:55 +02:00
Juho Hämäläinen
8ea034153a Merge pull request #28 from jusa/dev
Fix build with Mako.
2015-02-24 16:38:25 +02:00
Juho Hämäläinen
88e8b6d924 [build] Bump version. 2015-02-24 16:32:12 +02:00