profile/ivi/pulseaudio.git
17 years agoreinitialize sw params after resume
Lennart Poettering [Tue, 7 Aug 2007 10:48:29 +0000 (10:48 +0000)]
reinitialize sw params after resume

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1587 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd global suspend command to cli
Lennart Poettering [Tue, 7 Aug 2007 10:47:00 +0000 (10:47 +0000)]
add global suspend command to cli

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1586 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoport esound protocol to new lock-free core
Lennart Poettering [Mon, 6 Aug 2007 21:47:53 +0000 (21:47 +0000)]
port esound protocol to new lock-free core

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1585 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agominor fixes and cleanups
Lennart Poettering [Mon, 6 Aug 2007 21:47:29 +0000 (21:47 +0000)]
minor fixes and cleanups

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1584 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix playback status querying
Lennart Poettering [Mon, 6 Aug 2007 19:42:15 +0000 (19:42 +0000)]
fix playback status querying

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1583 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix a memory leak
Lennart Poettering [Mon, 6 Aug 2007 17:37:59 +0000 (17:37 +0000)]
fix a memory leak

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1582 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix playback over native protocol
Lennart Poettering [Mon, 6 Aug 2007 16:13:32 +0000 (16:13 +0000)]
fix playback over native protocol

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1581 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoinitialize 'length' properly
Lennart Poettering [Mon, 6 Aug 2007 16:12:54 +0000 (16:12 +0000)]
initialize 'length' properly

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1580 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake sure to handle disconnecting our own connection properly
Lennart Poettering [Sun, 5 Aug 2007 14:06:47 +0000 (14:06 +0000)]
make sure to handle disconnecting our own connection properly

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1579 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agominor optimization for cacheing in of samples by using posix_fadvise
Lennart Poettering [Sun, 5 Aug 2007 13:52:01 +0000 (13:52 +0000)]
minor optimization for cacheing in of samples by using posix_fadvise

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1578 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agouse posix_fadvise to avoid page faults when reading audio files from disk
Lennart Poettering [Sun, 5 Aug 2007 13:51:32 +0000 (13:51 +0000)]
use posix_fadvise to avoid page faults when reading audio files from disk

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1577 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoplay memchunks completely
Lennart Poettering [Sun, 5 Aug 2007 11:22:03 +0000 (11:22 +0000)]
play memchunks completely

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1576 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoinitialize method pointers properly
Lennart Poettering [Sun, 5 Aug 2007 00:09:48 +0000 (00:09 +0000)]
initialize method pointers properly

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1575 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofollow rename of pstream_close() to pstream_unlink()
Lennart Poettering [Sun, 5 Aug 2007 00:09:02 +0000 (00:09 +0000)]
follow rename of pstream_close() to pstream_unlink()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1574 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agotypesafe casts
Lennart Poettering [Sun, 5 Aug 2007 00:08:27 +0000 (00:08 +0000)]
typesafe casts

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1573 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoModernize pstream.[ch], reintroduce defer event to make things actually work
Lennart Poettering [Sun, 5 Aug 2007 00:07:58 +0000 (00:07 +0000)]
Modernize pstream.[ch], reintroduce defer event to make things actually work

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1572 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomodernize play-memchunk and port it to the new core
Lennart Poettering [Sun, 5 Aug 2007 00:07:07 +0000 (00:07 +0000)]
modernize play-memchunk and port it to the new core

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1571 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agominor cleanups
Lennart Poettering [Sun, 5 Aug 2007 00:06:35 +0000 (00:06 +0000)]
minor cleanups

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1570 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomerge compat changes from trunk
Lennart Poettering [Sat, 4 Aug 2007 20:20:33 +0000 (20:20 +0000)]
merge compat changes from trunk

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1569 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoDon't stop hardware on buffer underruns. Instead continue playing to guarantee that...
Lennart Poettering [Fri, 3 Aug 2007 23:48:52 +0000 (23:48 +0000)]
Don't stop hardware on buffer underruns. Instead continue playing to guarantee that our time function stays as linear as possible.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1566 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoRemove unnecessary snd_pcm_hwsync()
Lennart Poettering [Fri, 3 Aug 2007 22:41:27 +0000 (22:41 +0000)]
Remove unnecessary snd_pcm_hwsync()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1565 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoOn recommendation of Takashi Iwai prefer Master volume control over PCM and don't...
Lennart Poettering [Fri, 3 Aug 2007 22:39:18 +0000 (22:39 +0000)]
On recommendation of Takashi Iwai prefer Master volume control over PCM and don't control Mic control

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1564 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agorename pa_source_output_new_data::corked to start_corked to match pa_sink_input_new_d...
Lennart Poettering [Tue, 31 Jul 2007 22:56:35 +0000 (22:56 +0000)]
rename pa_source_output_new_data::corked to start_corked to match pa_sink_input_new_data::start_corked

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1563 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoA lot of updates, all necessary to get the native protocol ported:
Lennart Poettering [Tue, 31 Jul 2007 22:44:53 +0000 (22:44 +0000)]
A lot of updates, all necessary to get the native protocol ported:

* add an int64_t argument to pa_asyncmsgq because it is very difficult to pass 64 values otherwise
* simplify subclassing in pa_object
* s/drop/unlink/ at some places
* port the native protocol to the lock-free core (not tested, compiles fine)
* move synchronisation of playback streams into pa_sink_input
* add "start_corked" field to pa_sink_input_new_data
* allow casting of NULL values in pa_object

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1562 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoport module-alsa-source to new lock-free core
Lennart Poettering [Sat, 28 Jul 2007 23:50:20 +0000 (23:50 +0000)]
port module-alsa-source to new lock-free core

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1561 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agominor cleanups
Lennart Poettering [Sat, 28 Jul 2007 23:49:39 +0000 (23:49 +0000)]
minor cleanups

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1560 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix suspending logic
Lennart Poettering [Sat, 28 Jul 2007 22:56:39 +0000 (22:56 +0000)]
fix suspending logic

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1559 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodrop data from inputs only when in running state
Lennart Poettering [Sat, 28 Jul 2007 22:55:44 +0000 (22:55 +0000)]
drop data from inputs only when in running state

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1558 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoIt is now allowed to call pa_sink_get_volume() from thread context
Lennart Poettering [Sat, 28 Jul 2007 22:55:12 +0000 (22:55 +0000)]
It is now allowed to call pa_sink_get_volume() from thread context

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1557 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix suspending/resuming
Lennart Poettering [Sat, 28 Jul 2007 21:00:16 +0000 (21:00 +0000)]
Fix suspending/resuming

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1556 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd PA_SINK_OPENED/PA_SOURCE_OPENED macros for easier checking for _IDLE or _RUNNING...
Lennart Poettering [Sat, 28 Jul 2007 20:58:33 +0000 (20:58 +0000)]
add PA_SINK_OPENED/PA_SOURCE_OPENED macros for easier checking for _IDLE or _RUNNING states

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1555 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agorestore proper mixer volume control
Lennart Poettering [Sat, 28 Jul 2007 19:30:10 +0000 (19:30 +0000)]
restore proper mixer volume control

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1554 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoreload OSS volume after unsuspend
Lennart Poettering [Sat, 28 Jul 2007 19:27:01 +0000 (19:27 +0000)]
reload OSS volume after unsuspend

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1553 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agobring back alsa fd list managemet, since we need it for proper mixer change notification
Lennart Poettering [Sat, 28 Jul 2007 19:26:40 +0000 (19:26 +0000)]
bring back alsa fd list managemet, since we need it for proper mixer change notification

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1552 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoport module-alsa-sink to new lock-free core. also add mmmap'ing support while doing so.
Lennart Poettering [Sat, 28 Jul 2007 17:24:28 +0000 (17:24 +0000)]
port module-alsa-sink to new lock-free core. also add mmmap'ing support while doing so.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1551 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agominor modernizations
Lennart Poettering [Sat, 28 Jul 2007 17:16:05 +0000 (17:16 +0000)]
minor modernizations

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1550 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoDisable memory mapping if we open the device in O_WRONLY. Unfortunately we cannot...
Lennart Poettering [Thu, 26 Jul 2007 19:55:51 +0000 (19:55 +0000)]
Disable memory mapping if we open the device in O_WRONLY. Unfortunately we cannot do mmap() in Linux without opening the device for reading as well.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1549 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix channel remapping in resample; other modernizations
Lennart Poettering [Thu, 26 Jul 2007 19:30:51 +0000 (19:30 +0000)]
Fix channel remapping in resample; other modernizations

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1548 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoremove some log messages
Lennart Poettering [Thu, 26 Jul 2007 19:19:42 +0000 (19:19 +0000)]
remove some log messages

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1547 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoremove debug messages; don't queue request messages like nothing when send file is...
Lennart Poettering [Thu, 26 Jul 2007 14:40:17 +0000 (14:40 +0000)]
remove debug messages; don't queue request messages like nothing when send file is finished

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1546 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoproperly free memblocks when skipping over them
Lennart Poettering [Thu, 26 Jul 2007 13:58:50 +0000 (13:58 +0000)]
properly free memblocks when skipping over them

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1545 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake valgrind shut up regarding non-freed ident strings. other modernizations
Lennart Poettering [Thu, 26 Jul 2007 13:55:52 +0000 (13:55 +0000)]
make valgrind shut up regarding non-freed ident strings. other modernizations

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1544 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoreverse order flist destruction and mempool allocation warning
Lennart Poettering [Thu, 26 Jul 2007 13:20:11 +0000 (13:20 +0000)]
reverse order flist destruction and mempool allocation warning

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1543 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoIncrease ref counter of sink input as long as it is included in the sink idxset
Lennart Poettering [Thu, 26 Jul 2007 13:18:50 +0000 (13:18 +0000)]
Increase ref counter of sink input as long as it is included in the sink idxset

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1542 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoproperly deref sink_input/source_output objects when removing them from a sink/source
Lennart Poettering [Thu, 26 Jul 2007 13:17:34 +0000 (13:17 +0000)]
properly deref sink_input/source_output objects when removing them from a sink/source

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1541 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoAdd fdsem to makefile
Lennart Poettering [Thu, 26 Jul 2007 13:16:37 +0000 (13:16 +0000)]
Add fdsem to makefile

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1540 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoreverse order of printf and push to make output more readable
Lennart Poettering [Thu, 26 Jul 2007 13:15:58 +0000 (13:15 +0000)]
reverse order of printf and push to make output more readable

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1539 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoport asyncq to make use of new fdsem object
Lennart Poettering [Thu, 26 Jul 2007 13:15:05 +0000 (13:15 +0000)]
port asyncq to make use of new fdsem object

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1538 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd abstracted file descriptor based semaphore object that is lock-free in the best...
Lennart Poettering [Thu, 26 Jul 2007 13:14:26 +0000 (13:14 +0000)]
add abstracted file descriptor based semaphore object that is lock-free in the best cases

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1537 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoStore strings directly in strlst elements, other modernizations
Lennart Poettering [Wed, 25 Jul 2007 21:28:56 +0000 (21:28 +0000)]
Store strings directly in strlst elements, other modernizations

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1536 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix some alignment issues and modernize file a little bit
Lennart Poettering [Wed, 25 Jul 2007 16:33:56 +0000 (16:33 +0000)]
fix some alignment issues and modernize file a little bit

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1535 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoConvert most snprintf() calls to pa_snprintf()
Lennart Poettering [Wed, 25 Jul 2007 16:23:03 +0000 (16:23 +0000)]
Convert most snprintf() calls to pa_snprintf()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1534 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoModernize things a little bith more
Lennart Poettering [Wed, 25 Jul 2007 15:50:40 +0000 (15:50 +0000)]
Modernize things a little bith more

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1533 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoModernize things a little
Lennart Poettering [Wed, 25 Jul 2007 15:50:09 +0000 (15:50 +0000)]
Modernize things a little

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1532 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoadd our own implementation for pa_snprintf() because NUL termination is apparently...
Lennart Poettering [Wed, 25 Jul 2007 15:49:35 +0000 (15:49 +0000)]
add our own implementation for pa_snprintf() because NUL termination is apparently not guaranteed on windows and a couple of other libcs

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1531 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoSimplify implementation of pa_assert_se()
Lennart Poettering [Wed, 25 Jul 2007 15:44:28 +0000 (15:44 +0000)]
Simplify implementation of pa_assert_se()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1530 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodrop chunk argument from various drop() functions, since it doesn't make any sense...
Lennart Poettering [Wed, 25 Jul 2007 14:46:40 +0000 (14:46 +0000)]
drop chunk argument from various drop() functions, since it doesn't make any sense if we want to guarantee always monotonously increasing read pointers; a couple of other fixes

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1529 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoupdate static free list usage in asyncmsgq
Lennart Poettering [Wed, 25 Jul 2007 14:44:25 +0000 (14:44 +0000)]
update static free list usage in asyncmsgq

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1528 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoupdate static free list usage in hashmap
Lennart Poettering [Wed, 25 Jul 2007 14:44:00 +0000 (14:44 +0000)]
update static free list usage in hashmap

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1527 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodestruct freelists properly, by using gcc destructors. we do this only to make valgri...
Lennart Poettering [Wed, 25 Jul 2007 14:43:05 +0000 (14:43 +0000)]
destruct freelists properly, by using gcc destructors. we do this only to make valgrind shut up, not because it would have any real value during runtime

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1526 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agowrap destructor gcc attribute in macro
Lennart Poettering [Wed, 25 Jul 2007 14:41:54 +0000 (14:41 +0000)]
wrap destructor gcc attribute in macro

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1525 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agochange order of munmap and freeing of memblocks
Lennart Poettering [Wed, 25 Jul 2007 14:40:12 +0000 (14:40 +0000)]
change order of munmap and freeing of memblocks

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1524 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix a couple of typos in the resampler code
Lennart Poettering [Sat, 14 Jul 2007 11:26:55 +0000 (11:26 +0000)]
Fix a couple of typos in the resampler code

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1523 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix typo in pa_memblock_release() call; s/assert/pa_assert/
Lennart Poettering [Fri, 13 Jul 2007 23:28:11 +0000 (23:28 +0000)]
Fix typo in pa_memblock_release() call; s/assert/pa_assert/

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1522 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agos/assert/pa_assert/g; make use of static flist for memblock allocation where applicab...
Lennart Poettering [Fri, 13 Jul 2007 23:27:15 +0000 (23:27 +0000)]
s/assert/pa_assert/g; make use of static flist for memblock allocation where applicable; properly initialize length value in pa_memexport_put()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1521 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMinor clarification
Lennart Poettering [Fri, 13 Jul 2007 23:23:03 +0000 (23:23 +0000)]
Minor clarification

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1520 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMake use of static flist for hashmap entry alllocation
Lennart Poettering [Fri, 13 Jul 2007 23:22:38 +0000 (23:22 +0000)]
Make use of static flist for hashmap entry alllocation

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1519 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoActually make the static flist static
Lennart Poettering [Fri, 13 Jul 2007 23:21:54 +0000 (23:21 +0000)]
Actually make the static flist static

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1518 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoPort module-sine to the new lock-free core
Lennart Poettering [Fri, 13 Jul 2007 12:14:30 +0000 (12:14 +0000)]
Port module-sine to the new lock-free core

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1517 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoReenable a couple of more modules
Lennart Poettering [Fri, 13 Jul 2007 12:13:55 +0000 (12:13 +0000)]
Reenable a couple of more modules

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1516 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoRemove a superfluous pa_memblock_release(); properly handle buf4 allocation
Lennart Poettering [Fri, 13 Jul 2007 12:13:25 +0000 (12:13 +0000)]
Remove a superfluous pa_memblock_release(); properly handle buf4 allocation

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1515 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix concurrency bug when turning memblock into a local memblock
Lennart Poettering [Fri, 13 Jul 2007 12:12:40 +0000 (12:12 +0000)]
Fix concurrency bug when turning memblock into a local memblock

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1514 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix off-by-one in mixing code
Lennart Poettering [Fri, 13 Jul 2007 12:11:19 +0000 (12:11 +0000)]
Fix off-by-one in mixing code

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1513 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoReplace a couple of assert()s by pa_assert()s
Lennart Poettering [Fri, 13 Jul 2007 12:10:44 +0000 (12:10 +0000)]
Replace a couple of assert()s by pa_assert()s

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1512 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoRemove module-oss-mmap, since it is now merged into module-oss
Lennart Poettering [Fri, 13 Jul 2007 00:15:59 +0000 (00:15 +0000)]
Remove module-oss-mmap, since it is now merged into module-oss

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1511 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMerge module-oss-mmap into module-oss and make suspending working properly
Lennart Poettering [Fri, 13 Jul 2007 00:14:11 +0000 (00:14 +0000)]
Merge module-oss-mmap into module-oss and make suspending working properly

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1510 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMake pa_sink_render_* and pa_source_post work only when in RUNNING state, to fix...
Lennart Poettering [Fri, 13 Jul 2007 00:09:59 +0000 (00:09 +0000)]
Make pa_sink_render_* and pa_source_post work only when in RUNNING state, to fix handling of monitor sources when their sink is suspended

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1509 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoProperly initialize all revents on EINTR
Lennart Poettering [Thu, 12 Jul 2007 16:15:35 +0000 (16:15 +0000)]
Properly initialize all revents on EINTR

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1508 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMake sure pollfd[POLLFD_ASYNCQ].revents is properly initialized on signal
Lennart Poettering [Thu, 12 Jul 2007 16:00:51 +0000 (16:00 +0000)]
Make sure pollfd[POLLFD_ASYNCQ].revents is properly initialized on signal

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1507 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix segfault when recording with module-oss.c
Lennart Poettering [Thu, 12 Jul 2007 15:40:29 +0000 (15:40 +0000)]
fix segfault when recording with module-oss.c

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1506 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoPort module-oss to the new lock-free core
Lennart Poettering [Mon, 25 Jun 2007 22:54:06 +0000 (22:54 +0000)]
Port module-oss to the new lock-free core

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1501 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoremove pa_memblockq_is_writable() (because it is stupid and not used anywhere anyway...
Lennart Poettering [Mon, 25 Jun 2007 22:53:09 +0000 (22:53 +0000)]
remove pa_memblockq_is_writable() (because it is stupid and not used anywhere anyway, and replace all assert()s with pa_assert()s

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1500 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agomake sure we don't free the same connection twice
Lennart Poettering [Mon, 25 Jun 2007 22:33:04 +0000 (22:33 +0000)]
make sure we don't free the same connection twice

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1499 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoLimit silence buffer size for pa_sink_render()
Lennart Poettering [Sun, 24 Jun 2007 16:17:30 +0000 (16:17 +0000)]
Limit silence buffer size for pa_sink_render()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1498 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoTrack the 'missing' variable safely between the threads
Lennart Poettering [Sun, 24 Jun 2007 16:17:02 +0000 (16:17 +0000)]
Track the 'missing' variable safely between the threads

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1497 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agorework the logic of pa_asyncq
Lennart Poettering [Sun, 24 Jun 2007 16:15:56 +0000 (16:15 +0000)]
rework the logic of pa_asyncq

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1496 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMake sure the returned pa_msgobject object has a valid refcnt before returning it
Lennart Poettering [Sun, 24 Jun 2007 16:11:52 +0000 (16:11 +0000)]
Make sure the returned pa_msgobject object has a valid refcnt before returning it

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1495 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoInclude assert.h, since we use assert() for our pa_assert() macro
Lennart Poettering [Sun, 24 Jun 2007 16:10:12 +0000 (16:10 +0000)]
Include assert.h, since we use assert() for our pa_assert() macro

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1494 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix length calculation in pa_silence_memblock_new() and make use of pa_assert() every...
Lennart Poettering [Sun, 24 Jun 2007 16:09:43 +0000 (16:09 +0000)]
Fix length calculation in pa_silence_memblock_new() and make use of pa_assert() everywhere instead of assert()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1493 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoMake use of dbus_watch_get_unix_fd() instead of dbus_watch_get_fd() because of deprec...
Lennart Poettering [Sun, 24 Jun 2007 16:06:32 +0000 (16:06 +0000)]
Make use of dbus_watch_get_unix_fd() instead of dbus_watch_get_fd() because of deprecation of the latter

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1492 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoUpdate OSS driver for new lock-free core
Lennart Poettering [Sat, 23 Jun 2007 20:05:20 +0000 (20:05 +0000)]
Update OSS driver for new lock-free core

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1491 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoremove underrun condition in pa_sinks. Instead return silence in pa_sink_render(...
Lennart Poettering [Sat, 23 Jun 2007 20:04:47 +0000 (20:04 +0000)]
remove underrun condition in pa_sinks. Instead return silence in pa_sink_render() when necessary. This is required to guarantee that the time functions in connected sink inputs stays linear

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1490 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodon't handle underrun special
Lennart Poettering [Sat, 23 Jun 2007 20:03:30 +0000 (20:03 +0000)]
don't handle underrun special

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1489 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agodrop silence generation from sink drivers
Lennart Poettering [Sat, 23 Jun 2007 20:03:00 +0000 (20:03 +0000)]
drop silence generation from sink drivers

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1488 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agofix a typo and some minor optimizations
Lennart Poettering [Sat, 23 Jun 2007 20:02:28 +0000 (20:02 +0000)]
fix a typo and some minor optimizations

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1487 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agominor cleanups and optimizations
Lennart Poettering [Sat, 23 Jun 2007 20:01:40 +0000 (20:01 +0000)]
minor cleanups and optimizations

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1486 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix minor typo
Lennart Poettering [Sat, 23 Jun 2007 19:53:11 +0000 (19:53 +0000)]
Fix minor typo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1485 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoPort module-pipe-source to the new threaded design
Lennart Poettering [Thu, 14 Jun 2007 20:15:06 +0000 (20:15 +0000)]
Port module-pipe-source to the new threaded design

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1484 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agoFix another ugly typo, which made source outputs unusable
Lennart Poettering [Thu, 14 Jun 2007 20:14:33 +0000 (20:14 +0000)]
Fix another ugly typo, which made source outputs unusable

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1483 fefdeb5f-60dc-0310-8127-8f9354f1896f

17 years agouse pa_memblockq_push_align() instead of pa_memblockq_push() to deal with unaligned...
Lennart Poettering [Thu, 14 Jun 2007 20:13:44 +0000 (20:13 +0000)]
use pa_memblockq_push_align() instead of pa_memblockq_push() to deal with unaligned data coming from clients

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1482 fefdeb5f-60dc-0310-8127-8f9354f1896f