Lennart Poettering [Sat, 11 Aug 2007 15:56:57 +0000 (15:56 +0000)]
allow setting the default sample and fragment settings from the config file
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1630
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 11 Aug 2007 15:56:06 +0000 (15:56 +0000)]
add default fragment settings variables to pa_core
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1629
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 11 Aug 2007 00:10:29 +0000 (00:10 +0000)]
move pstream item allocation to pa_flist
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1628
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 23:42:17 +0000 (23:42 +0000)]
make revoke/release thread safe in the native protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1627
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 23:41:50 +0000 (23:41 +0000)]
add callbacks for the revoke/release stuff, so that we can make this thing thread-safe
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1626
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 23:40:05 +0000 (23:40 +0000)]
if no thread-mq is attached to the current thread, return an error, don't hit an assert
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1625
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 22:02:39 +0000 (22:02 +0000)]
make use of pa_thread_mq everywhere
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1624
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 22:01:54 +0000 (22:01 +0000)]
minor update
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1623
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 22:01:17 +0000 (22:01 +0000)]
Wrap two pa_asyncmsq in a new pa_thread_mq object for bidirectional, lock-free communication between a main loop and a thread
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1622
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 22:00:22 +0000 (22:00 +0000)]
update thread test to use pa_once instead of pa_once_t
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1621
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 21:59:51 +0000 (21:59 +0000)]
Rename pa_once_t to pa_once
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1620
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 16:47:39 +0000 (16:47 +0000)]
move pa_queue to an implementation based on pa_flist
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1619
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 15:51:55 +0000 (15:51 +0000)]
do not acces playback pa_messagq from main thread
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1618
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 15:09:28 +0000 (15:09 +0000)]
minor cleanliness fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1617
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 14:49:26 +0000 (14:49 +0000)]
fix closing of fds in gconf module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1616
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 14:28:39 +0000 (14:28 +0000)]
* drop redundant pa_core argument from module initialization functions
* make pa__done() implementations optional
* a couple of modernizations
* wrap lt_dlsym() at a single place
* allow passing of an "api" argument to the HAL module, to choose whether OSS devices or ALSA devices should be picked up
* optimize fd closing a little on linux in the forked gconf helper
* save a little memory in the xsmp module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1615
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 12:11:40 +0000 (12:11 +0000)]
fix minor memory leakage
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1614
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 00:33:47 +0000 (00:33 +0000)]
avoid duplicate loading of modules
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1613
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 00:29:28 +0000 (00:29 +0000)]
handle ACLAdded messages for previously unknown devices identically to a really new device
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1612
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 10 Aug 2007 00:15:20 +0000 (00:15 +0000)]
Avoid a race condition when one PA instance gets HAL's ACLAdded message before the previous owner instance has given up access to the device, and thus the device is blocked
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1611
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 23:47:06 +0000 (23:47 +0000)]
Add X11 XSMP module for hooking into the X11 session manager, for being notified about X11 disconnects before they actually happen, so that we are not killed by the bloody xlibs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1610
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 23:46:03 +0000 (23:46 +0000)]
modernize
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1609
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:57:01 +0000 (21:57 +0000)]
don't assume that sink/source is already unregistered from namereg when disconnect hook is called
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1608
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:56:23 +0000 (21:56 +0000)]
play ACL event sound only when gained access, not when losing it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1607
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:37:19 +0000 (21:37 +0000)]
s/login.wav/startup3.wav
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1606
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:31:58 +0000 (21:31 +0000)]
update default configuration
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1605
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:17:32 +0000 (21:17 +0000)]
protect memimpors with a recursive mutex to avoid deadlock when shutting down
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1604
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:08:10 +0000 (21:08 +0000)]
forgot to actually add the new suspend-on-idle module source code
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1603
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:07:14 +0000 (21:07 +0000)]
add new module-suspend-on-idle module which suspends sinks/sources which are idle for more than 5s (or any other configurable time). Power saving, here we come\!
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1602
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:06:08 +0000 (21:06 +0000)]
if we get access to a device we don't know yet, add it to our tree instead of ignoring it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1601
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 21:05:20 +0000 (21:05 +0000)]
add a couple of additional hooks for modules to use
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1600
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 17:52:13 +0000 (17:52 +0000)]
don't hit an assert when we cannot resume a device
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1599
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 16:27:24 +0000 (16:27 +0000)]
by default, store esd socket in /tmp/.esd-`id -u`/socket, instead of /tmp/.esd/socket, to allow multiple simultaneous esd instances. this is only compatible with a patched esd, which however ubuntu and fedora ship now. other distros need to patch their esd as well, or may pass socket=/tmp/.esd/socket to module-protocol-esound-unix
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1598
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 13:49:27 +0000 (13:49 +0000)]
listen for HAL ACL events; play an event sound on hw coldplug, hotplug and ACL access
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1597
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 13:47:25 +0000 (13:47 +0000)]
add new function pa_scache_play_item_by_name
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1596
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 9 Aug 2007 13:36:06 +0000 (13:36 +0000)]
fix bug in handling of defer events
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1595
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 8 Aug 2007 23:49:17 +0000 (23:49 +0000)]
modernize module-hal-detect.c and check for ALSA pcm_class != modem
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1594
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 8 Aug 2007 23:48:47 +0000 (23:48 +0000)]
modernize dbus-util.c
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1593
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 8 Aug 2007 23:48:25 +0000 (23:48 +0000)]
be more verbose when device does not support sampling parameters
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1592
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 8 Aug 2007 21:20:44 +0000 (21:20 +0000)]
Remove warning when client is too slow to handle our data
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1591
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 8 Aug 2007 21:20:20 +0000 (21:20 +0000)]
properly reinitialize pollfd array after resume
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1590
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 8 Aug 2007 20:52:52 +0000 (20:52 +0000)]
properly reinitialize pollfd array after resume
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1589
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 8 Aug 2007 20:50:37 +0000 (20:50 +0000)]
don't print error on socket read/write failure
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1588
fefdeb5f-60dc-0310-8127-
8f9354f1896f
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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