summaryrefslogtreecommitdiffstats
path: root/src/modules
Commit message (Collapse)AuthorAgeFilesLines
* also port over JACK source to new coreLennart Poettering2007-10-222-150/+164
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1946 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Port JACK sink module over from old coreLennart Poettering2007-10-221-152/+196
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1944 fefdeb5f-60dc-0310-8127-8f9354f1896f
* minor fixupLennart Poettering2007-10-221-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1943 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Properly handle if ALSA sends us an POLLERR event, this should allow us to ↵Lennart Poettering2007-10-173-10/+66
| | | | | | survive a system suspend cycle better git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1941 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add missing poll.h inclusionLennart Poettering2007-10-071-14/+15
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1938 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add missing poll.h inclusionLennart Poettering2007-10-071-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1937 fefdeb5f-60dc-0310-8127-8f9354f1896f
* s/timespec/timevalLennart Poettering2007-10-071-16/+17
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1936 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Adapt rtpoll and friends to Windows by replacing timespec with timeval andPierre Ossman2007-10-032-16/+16
| | | | | | | add a fallback when clock_gettime() isn't available. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1926 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix race condition between IO thread creation and pa_sink_put(). Move ↵Lennart Poettering2007-10-015-72/+128
| | | | | | activation of rtpoll fds when we change the state INIT->IDLE. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1922 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Update module-solaris to new structure.Pierre Ossman2007-09-281-300/+388
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1918 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework module-combine once again. We now run the data generation always in a ↵Lennart Poettering2007-09-281-336/+208
| | | | | | seperate thread. This should help use to avoid all the awful race conditions we had in previously git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1916 fefdeb5f-60dc-0310-8127-8f9354f1896f
* only do IO if we are RUNNING or IDLE, but not when we are in INITLennart Poettering2007-09-281-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1912 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make sure when can shutdown PA cleanly without segfaultLennart Poettering2007-09-251-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1906 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fix suspending in module-combine.cLennart Poettering2007-09-241-4/+4
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1903 fefdeb5f-60dc-0310-8127-8f9354f1896f
* * decouple suspending of monitor sources and their sinksLennart Poettering2007-09-241-13/+48
| | | | | | | * implement resume-on-uncork git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1902 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework zeroconf service publishing, to use synchronous hooks instead of ↵Lennart Poettering2007-09-241-340/+198
| | | | | | asynchronous subscription events. Don't push autoload entries anymore. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1898 fefdeb5f-60dc-0310-8127-8f9354f1896f
* drop the PA_SOURCE_CAN_SUSPEND and PA_SINK_CAN_SUSPEND flags, since they ↵Lennart Poettering2007-09-247-193/+185
| | | | | | were a bad idea in the first place. All sinks/sources are now *required* to handle suspending in one way or another. Luckily all current sink/source implementations handle it fine anyway. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1894 fefdeb5f-60dc-0310-8127-8f9354f1896f
* instead of using the mixer ioctl()s on the dsp fd, open a seperate fd for ↵Lennart Poettering2007-09-233-192/+290
| | | | | | the mixer. This allows us the keep the mixer fd open while closing the dsp device while suspending. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1893 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Fix the assignment of control values by using the right variable for indexing.Tanu Kaskinen2007-09-221-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1888 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Correct the parameter positions with the pa_cvolume_set() call.Tanu Kaskinen2007-09-221-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1887 fefdeb5f-60dc-0310-8127-8f9354f1896f
* include the name of the master sink in the name for piggy-backed virtual sinksLennart Poettering2007-09-222-23/+30
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1885 fefdeb5f-60dc-0310-8127-8f9354f1896f
* clamp sample data to -1 .. 1, before passing it to the plugin; if a control ↵Lennart Poettering2007-09-211-33/+123
| | | | | | port data specification is left empty, initialize with the default value of the plugin git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1877 fefdeb5f-60dc-0310-8127-8f9354f1896f
* don't segfault when the master changesLennart Poettering2007-09-201-15/+9
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1875 fefdeb5f-60dc-0310-8127-8f9354f1896f
* rework module-combine againLennart Poettering2007-09-201-187/+245
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1873 fefdeb5f-60dc-0310-8127-8f9354f1896f
* render new data always in the master sink's thread, fixing missing lockingLennart Poettering2007-09-191-65/+133
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1871 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make O_CLOEXEC, O_NONBLOCK and socket low latency fd ops more uniform: ↵Lennart Poettering2007-09-194-7/+9
| | | | | | always return void, name them similarly, only pass a single fd git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1867 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fall back to plughw:, if hw: doesn't work, in the alsa source, tooLennart Poettering2007-09-182-16/+42
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1865 fefdeb5f-60dc-0310-8127-8f9354f1896f
* properly release memblock always abd as soon as possibleLennart Poettering2007-09-181-5/+6
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1864 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make rtp send socket low delayLennart Poettering2007-09-181-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1861 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add two missing header file inclusionsLennart Poettering2007-09-181-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1859 fefdeb5f-60dc-0310-8127-8f9354f1896f
* bug fixes for module-rtp-recvLennart Poettering2007-09-181-9/+22
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1858 fefdeb5f-60dc-0310-8127-8f9354f1896f
* port module-rtp-send.c to lock-free coreLennart Poettering2007-09-185-250/+338
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1855 fefdeb5f-60dc-0310-8127-8f9354f1896f
* actually close the alsa device before we try to reopen it as plughwLennart Poettering2007-09-181-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1854 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add LADSPA sink than can be piggy-backed ontop of another sinkLennart Poettering2007-09-172-0/+1168
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1848 fefdeb5f-60dc-0310-8127-8f9354f1896f
* print a message when we fall back on plughwLennart Poettering2007-09-171-0/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1847 fefdeb5f-60dc-0310-8127-8f9354f1896f
* fall back to plughw: if hw: doesn't workLennart Poettering2007-09-171-15/+37
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1844 fefdeb5f-60dc-0310-8127-8f9354f1896f
* drop a couple of WARNING prefixes in log messages, since we have pa_log_warn ↵Lennart Poettering2007-09-174-4/+4
| | | | | | anyway for marking warnings especially git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1842 fefdeb5f-60dc-0310-8127-8f9354f1896f
* use priority inheritance on mutexes where applicableLennart Poettering2007-09-171-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1837 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add a new module module-remap-sink which can be used to remap the channel ↵Lennart Poettering2007-09-161-0/+330
| | | | | | maps of an already existant sink. one use case is to create a virtual sink that redirects stereo data to the rear speakers of a surround card. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1834 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add a "length" argument to the seek functions, as an optimization to request ↵Lennart Poettering2007-09-162-5/+5
| | | | | | a certain block size if any data needs to be generated. this is merely a hint. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1833 fefdeb5f-60dc-0310-8127-8f9354f1896f
* be a little bit more elaborate on the reason why we drop to software volume ↵Lennart Poettering2007-09-161-5/+6
| | | | | | control if hw is not featureful enough for us git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1827 fefdeb5f-60dc-0310-8127-8f9354f1896f
* trivial typoLennart Poettering2007-09-151-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1825 fefdeb5f-60dc-0310-8127-8f9354f1896f
* count corked streams per sink/source and make pa_sink_used_by() return only ↵Lennart Poettering2007-09-151-1/+1
| | | | | | the number of streams that are not corked. Introduce pa_sink_linked_by() returning the number of streams connected at all. This will allow suspending of sinks/sources when all streams connected to a sink are corked. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1824 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Move attaching/detaching from a pa_rtpoll into pa_sink proper, remove it ↵Lennart Poettering2007-09-141-25/+19
| | | | | | from module-combine git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1823 fefdeb5f-60dc-0310-8127-8f9354f1896f
* simplify rt loops a bit by moving more code into pa_rtpoll. It is now ↵Lennart Poettering2007-09-147-171/+65
| | | | | | possible to attach "work" functions to a pa_rtpoll_item, which will be called in each loop iteration. This allows us to hide the message processing in the RT loops and to drop the seperate sink_input->process hooks. Basically, only the driver-specific code remains in the RT loops. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1822 fefdeb5f-60dc-0310-8127-8f9354f1896f
* call dbus_shutdown() before exiting, to make valgrind output more usefulLennart Poettering2007-09-141-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1819 fefdeb5f-60dc-0310-8127-8f9354f1896f
* extend rtpoll API to allow registration of arbitray functions to be executed ↵Lennart Poettering2007-09-127-14/+14
| | | | | | in the event loop. Add priority system for specifying the order of these functions. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1816 fefdeb5f-60dc-0310-8127-8f9354f1896f
* change pa_modargs_get_channel_map() to take an extra argument for specifying ↵Lennart Poettering2007-09-121-2/+2
| | | | | | the name of the modargs attribute to parse git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1813 fefdeb5f-60dc-0310-8127-8f9354f1896f
* consolidate close() calls to pa_close(), and make sure on every occasion ↵Lennart Poettering2007-09-126-10/+10
| | | | | | that we handle failures of close() sensibly git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1811 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remaining s/assert/pa_assert/ and refcnt.h modernizationsLennart Poettering2007-09-117-15/+13
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1809 fefdeb5f-60dc-0310-8127-8f9354f1896f