summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* context: pa_context_rttime_restart: constify context pointernextLyndon Brown2018-06-152-2/+2
|
* context: pa_context_rttime_new: constify context pointerLyndon Brown2018-06-152-2/+2
|
* context: pa_context_errno: constifyLyndon Brown2018-06-152-2/+2
|
* context: hide error attr behind pointerLyndon Brown2018-06-152-4/+11
| | | | | | | | | | Paves the way towards more of the API using const pointers. Some pa_context_* functions return their errors by setting the context error, even when there's no other change in the context state. This prevented constifying the pa_context arguments of such functions. This patch puts the error in its own struct behind a pointer, so that setting the error doesn't any more count as modifying the pa_context object.
* stream: constify internal functionsLyndon Brown2018-06-141-2/+2
|
* alsa-mixer: Don't move LFE in 2.1 and 4.1 modes on SB Omni Surround 5.1Nazar Mokrynskyi2018-06-121-2/+2
| | | | | | | A bit hacky approach, but it allows to preserve LFE output position even in reduced output modes 2.1 and 4.1. Signed-off-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
* cli-command: Report error in pa_play_file.Tomaz Solc2018-06-121-1/+6
| | | | | | Current code does not check whether pa_play_file call failed. Hence no error is reported in the cli interface if playback failed because e.g. file isn't readable by the daemon.
* stream: pa_stream_get_monitor_stream: constifyLyndon Brown2018-06-122-2/+2
|
* stream: pa_stream_get_format_info: constifyLyndon Brown2018-06-122-2/+2
|
* stream: pa_stream_get_underflow_index: constifyLyndon Brown2018-06-122-2/+2
|
* stream: pa_stream_[writable|readable]_size: constifyLyndon Brown2018-06-122-4/+4
|
* stream: pa_stream_is_[suspended|corked]: constifyLyndon Brown2018-06-122-4/+4
|
* stream: pa_stream_get_device_[index|name]: constifyLyndon Brown2018-06-122-4/+4
|
* stream: pa_stream_get_index: constifyLyndon Brown2018-06-122-2/+2
|
* stream: pa_stream_get_context: constifyLyndon Brown2018-06-122-2/+2
|
* stream: pa_stream_get_state: constifyLyndon Brown2018-06-122-2/+2
|
* operation: pa_operation_get_state: constifyLyndon Brown2018-06-122-2/+2
|
* mainloop: constify get_retval functionsLyndon Brown2018-06-124-4/+4
|
* context: pa_context_get_state: constifyLyndon Brown2018-06-122-2/+2
|
* context: pa_context_get_protocol_version: constifyLyndon Brown2018-06-122-2/+2
|
* context: pa_context_new_with_proplist: constify proplist paramLyndon Brown2018-06-122-2/+2
|
* volume: pa_cvolume_get_position: constifyLyndon Brown2018-06-122-2/+2
|
* alsa-mixer: make the mono mapping a fallback onlyTanu Kaskinen2018-06-112-8/+11
| | | | | | | | | | | | | | | | | | | | | If a sound card doesn't have the "front" device defined for it, we have to use the "hw" device for stereo. Not so long ago, the analog-stereo mapping had "hw:%f" in its device-strings and everything worked great, except that it caused trouble with the Intel HDMI LPE driver that uses the first "hw" device for HDMI, and we were incorrectly detecting it as an analog device. That problem was fixed in commit ea3ebd09, which removed "hw:%f" from analog-stereo and added a new stereo fallback mapping for "hw". Now the problem is that if a sound card doesn't have the "front" device defined for it, and it supports both mono and stereo, only the mono mapping is used, because the stereo mapping is only a fallback. This patch makes the mono mapping a fallback too, so the mono mapping is used only if there's absolutely nothing else that works. This can cause trouble at least in theory. Maybe someone actually wants to use mono output on a card that supports both mono and stereo. But that seems quite unlikely.
* scache: pa_context_play_sample_with_proplist: constify proplist paramLyndon Brown2018-06-042-5/+5
| | | | | | If the given proplist is NULL, the function creates a new (empty) proplist. That caused a compiler warning after the constification, which is why the new proplist is now created using a separate variable.
* scache: pa_context_play_sample_with_proplist: clarify proplist paramLyndon Brown2018-06-041-1/+1
| | | | | | | | Existing documentation was unclear about which property list would be the one changed (merged into), making it seem (along with the non-const proplist pointer param, which needs changing seperately), that the proplist object for which a pointer is given will be the one merged into, instead of the internal cached entry's proplist.
* proplist: pa_proplist_equal: constify proplist pointersLyndon Brown2018-06-042-2/+2
|
* proplist: pa_proplist_[size|isempty]: constify proplist pointerLyndon Brown2018-06-042-4/+4
|
* proplist: pa_proplist_contains: constify proplist pointerLyndon Brown2018-06-042-2/+2
|
* proplist: pa_proplist_to_string[_sep]: constify proplist pointerLyndon Brown2018-06-042-4/+4
|
* context: pa_context_proplist_update: constify proplist pointerLyndon Brown2018-06-042-2/+2
|
* tagstruct: pa_tagstruct_put_format_info: constify format pointerLyndon Brown2018-06-042-2/+2
|
* tagstruct: pa_tagstruct_put_proplist: constify proplist pointerLyndon Brown2018-06-042-2/+2
|
* proplist: pa_proplist_gets: constify proplist pointerLyndon Brown2018-06-042-2/+2
|
* proplist: pa_proplist_get: constify proplist pointerLyndon Brown2018-06-042-2/+2
|
* proplist: pa_proplist_iterate: constify proplist pointerLyndon Brown2018-06-042-2/+2
|
* proplist: add and use const version of MAKE_HASHMAP macroLyndon Brown2018-06-041-16/+15
|
* hashmap: constify pointer of pa_hashmap_getLyndon Brown2018-06-042-2/+2
| | | | | relies upon the same having just been done for the private hash_scan function
* hashmap: constify pointer of private hash_scan functionLyndon Brown2018-06-041-1/+1
| | | | paves the way for doing the same for pa_hashmap_get and users of it
* hashmap: constify hashmap ptr for various functionsLyndon Brown2018-06-042-12/+12
|
* build-sys: Update meson.build based on recent changesArun Raghavan2018-05-312-3/+1
| | | | | Bump the protocol version, and drop (commented out) references to BlueZ 4.
* udev-detect, alsa-card: Adopt avoid resampling option from daemon.confSangchul Lee2018-05-318-8/+64
| | | | | | | | | | | | | | | | | Previously, the "avoid-resampling" option of daemon.conf is to make the daemon try to use the stream sample rate if possible for all sinks or sources. This patch applies this option to module-udev-detect and module-alsa-card as a module argument in order to override the default value of daemon.conf. As a result, user can use this argument for more fine-grained control. e.g.) set it false in daemon.conf and set it true for module-udev-detect or a particular module-alsa-card in default.pa.(or vice versa) To set it, use "avoid_resampling=true or false" as the module argument. Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
* alsa-sink/source: always set reconfiguration callbackSangchul Lee2018-05-314-18/+6
| | | | | | | | | Reconfiguration callback should also be set in case of avoiding resampling option. This patch set the callback for every case because the callback has already conditions to leave if it is not needed. Also unnecessary codes of setting alternate sample rate to 0 are removed. Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
* alsa-mixer: More output modes for SB Omni Surround 5.1 and cleanupNazar Mokrynskyi2018-05-191-18/+72
| | | | | | | | | | | | | There are only stereo and 5.1 output modes supported natively on this sound card, but with this config more modes like 2.1, 4.0, 4.1 and 5.0 are now exposed. Also profiles list is cleaner now with all profiles explicitly specified. Last thing is removed support for microphone on Linux kernels older than 4.3-rc1, which shouldn't be an issue with future version of PulseAudio likely be installed on newer kernels anyway. Signed-off-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
* map-file: Fix typo while adding pa_thread_make_realtimeArun Raghavan2018-05-101-1/+1
|
* null-sink,null-source: Use realtime scheduling if possibleArun Raghavan2018-05-102-0/+8
| | | | | We do this on other sink/source modules, and in general it makes sense to do so here as well.
* core-format: fix TrueHD and DTS-HD channel mapsTanu Kaskinen2018-05-071-7/+15
| | | | | Since these formats use 8 channels, the channel map needs to be configured to 8 channels as well.
* module-allow-passthrough: Don't crash if we can't find a sinkArun Raghavan2018-05-061-0/+6
| | | | | | | | | | module-allow-passthrough has a (necessary) hack to replicate the default sink selection and format negotiation from sink-input.c. One thing that got missed in this replication is the possibility that the sink input is not compatible with the default sink. When this happen, we now exit gracefully. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=105578
* core: Expose API to elevate a thread to realtime priorityArun Raghavan2018-05-0617-184/+205
| | | | | | This should make it easier for clients to elevate their audio threads to real time priority without having to dig through much through specific system internals.
* PROTOCOL: Bump to version 33Arun Raghavan2018-05-062-1/+8
| | | | Required for the addition of new pa_encoding_t values.
* format: Add support for Dolby TrueHD and DTS-HD HBR passthroughPierre-Louis Bossart2018-05-043-1/+15
| | | | | | Add definitions and fixups for channel count Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>