Commit Graph

5 Commits

Author SHA1 Message Date
Patrick Gaskin
3a36080b2b pulseaudio: Implement all sample/map options, > 2 ch output for sles modules
* Make both modules support format, channels, rate, and
  channel_map.
* Add support for > 2 channels to the sink. This needs to be
  manually enabled by increasing the number of channels in the
  default.pa script or by loading an additional module-sles-sink
  manually.
2021-02-09 23:49:09 +02:00
Patrick Gaskin
fc007e73f4
PulseAudio SLES module improvements (#6290)
* pulseaudio: Improve error msg when module-sles-source is missing the RECORD_AUDIO permission

* pulseaudio: Refactor and improve module-sles-{source,sink}

* More readable and consistent code style.
* Fix subtle bugs and typos (e.g. duplicate or ineffectual assignments,
  mishandled enums, etc).
* Fix stereo input channel mask.
* Fix wrong self object being passed to SLES functions.
* Handle more sample formats.
* Better logging.
* Fix potential freeing of undefined pointers.
* Fixed module usage (channel_map was on source instead of sink,
  some items were missing the trailing space).
* Other minor fixes.

* pulseaudio: Implement PA_SINK_MESSAGE_GET_LATENCY message

Every built-in module implements this and without it, PA will crash
in some cases (e.g. when opening pavucontrol).

* pulseaudio: Increment TERMUX_PKG_REVISION
2021-01-24 22:21:02 +05:30
dickreckard
43dcd2cb3b modifying recording preset value to allow headset in
The current SL_ANDROID_RECORDING_PRESET_CAMCORDER value forced to use the internal mic.
By using SL_ANDROID_RECORDING_PRESET_VOICE_RECOGNITION, instead, the pulseaudio module will follow the general behavior of the operating system ( if external headset is plugged in, audio source will be the headset, otherwise it will be the internal mic. ) 
(The value names are not really indicative, this behavior has been found out by trial  and error following OpenSLES_AndroidConfiguration.h)
2020-04-26 12:50:08 +03:00
Tom Yan
a755ff37ec fix sles source 2019-10-08 14:32:50 +08:00
Tom Yan
2f8ad960c0 pulseaudio: unsplit package
With commit 63dc34f being accepted, there isn't exactly a reason that pulseaudio should be splited into two packages anymore.
2019-10-07 21:27:31 +08:00