pulseaudio/src/pulsecore
Tanu Kaskinen 2c14306507 source: Fix monitor source rate changing
When a sink changes its sample rate, also the monitor source rate
needs to be changed. In order to determine whether a source supports
rate changing, the code checks if the update_rate() callback is set,
but monitor sources don't have that callback set, so the old code
always failed to change the monitor source rate.

This patch fixes the monitor source rate changing by handling monitor
sources as a special case in pa_source_update_rate(): if the source is
a monitor source, then the update_rate() callback is not required.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=66424
2013-08-27 15:34:33 +03:00
..
ffmpeg build: Don't include empty Makefile.am in subdirs 2011-01-31 12:40:43 +00:00
arpa-inet.c win32: Make some unused-variable warnings go away 2011-06-24 00:34:05 +01:00
arpa-inet.h Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
asyncmsgq.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
asyncmsgq.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
asyncq.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
asyncq.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
atomic.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
aupdate.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
aupdate.h More spelling fixes 2011-08-25 11:27:47 +01:00
auth-cookie.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
auth-cookie.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
authkey.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
authkey.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
avahi-wrap.c Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
avahi-wrap.h
bitset.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
bitset.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
card.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
card.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cli-command.c Use pa_(c)volume_snprint_verbose() everywhere 2013-07-09 17:37:04 +03:00
cli-command.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cli-text.c Use pa_(c)volume_snprint_verbose() everywhere 2013-07-09 17:37:04 +03:00
cli-text.h
cli.c cli: Use pa_xnew0 to save some 0 inits 2013-08-02 16:25:42 +02:00
cli.h
client.c idxset: Use pa_free_cb_t instead of pa_free2_cb_t 2013-02-16 01:15:27 +02:00
client.h
conf-parser.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
conf-parser.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
core-error.c core: Slightly more helpful pa_cstrerror for unknown errors 2012-10-23 12:16:50 +05:30
core-error.h Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
core-rtclock.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
core-rtclock.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
core-scache.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
core-scache.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
core-subscribe.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
core-subscribe.h
core-util.c Revert dbus_bool_t variables to use TRUE/FALSE instead of true/false 2013-07-04 12:25:47 +03:00
core-util.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
core.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
core.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cpu-arm.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cpu-arm.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cpu-orc.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cpu-orc.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cpu-x86.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cpu-x86.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
cpu.h cpu: Add CPU information to pa_core 2010-09-23 17:17:03 +05:30
creds.h Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
database-gdbm.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
database-simple.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
database-tdb.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
database.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
dbus-shared.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
dbus-shared.h
dbus-util.c Revert dbus_bool_t variables to use TRUE/FALSE instead of true/false 2013-07-04 12:25:47 +03:00
dbus-util.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
device-port.c device-port: Assert that ports have a description 2013-06-25 19:15:11 +03:00
device-port.h device-port: Introduce pa_device_port_new_data 2013-06-04 00:38:39 +05:30
dllmain.c win32: Make some unused-variable warnings go away 2011-06-24 00:34:05 +01:00
dynarray.c dynarray: Reimplement with nicer semantics 2013-06-27 11:45:41 +03:00
dynarray.h dynarray: Reimplement with nicer semantics 2013-06-27 11:45:41 +03:00
endianmacros.h
esound.h Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
fdsem.c fdsem: Remember pa_write() type in pa_fdsem_post() 2013-06-04 00:38:40 +05:30
fdsem.h Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
flist.c flist: Increase default list size to 256 2012-09-23 13:12:54 +03:00
flist.h More spelling fixes 2011-08-25 11:27:47 +01:00
g711.c
g711.h
hashmap.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
hashmap.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
hook-list.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
hook-list.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
i18n.c build-sys: Fix building without NLS 2011-12-13 09:03:58 +05:30
i18n.h build-sys: Fix building without NLS 2011-12-13 09:03:58 +05:30
idxset.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
idxset.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
iochannel.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
iochannel.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
ioline.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
ioline.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
ipacl.c Merge remote-tracking branch 'mkbosmans/mingw32-build' 2011-03-20 11:18:19 +00:00
ipacl.h
llist.h
lock-autospawn.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
lock-autospawn.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
log.c log: Harmonize log target output 2013-07-15 16:47:29 +03:00
log.h log: Remove pa_log_set_fd() 2013-07-15 16:34:19 +03:00
ltdl-helper.c Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
ltdl-helper.h
macro.h macro: Remove unneeded typedef for pa_bool_t. 2013-07-04 12:26:02 +03:00
Makefile build-sys: readd stub makefiles to subdirectories to make building with emacs easier 2012-05-15 14:17:58 +02:00
mcalign.c More spelling fixes 2011-08-25 11:27:47 +01:00
mcalign.h Fix spelling sucess -> success 2011-08-24 17:38:16 +05:30
memblock.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
memblock.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
memblockq.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
memblockq.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
memchunk.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
memchunk.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
memtrap.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
memtrap.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
mime-type.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
mime-type.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
mix.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
mix.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
mix_neon.c mix: Add optimized mix code path for ARM NEON 2013-02-15 23:02:19 +02:00
modargs.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
modargs.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
modinfo.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
modinfo.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module.c module: Fix crash in pa_module_unload_all() 2013-07-11 13:35:24 +03:00
module.h module: Fix style 2013-07-15 13:07:09 +03:00
msgobject.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
msgobject.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
mutex-posix.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
mutex-win32.c Revert windows BOOL variables to use TRUE/FALSE instead of true/false 2013-07-04 12:25:56 +03:00
mutex.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
namereg.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
namereg.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
native-common.h introspect: Add functions to handle the latency offset. 2012-06-30 14:41:08 +03:00
object.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
object.h Fix alignment issues introduced by the pa_bool -> bool conversion 2013-07-04 12:25:40 +03:00
once.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
once.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
packet.c
packet.h
parseaddr.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
parseaddr.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
pdispatch.c Fix typos in command_names 2013-07-31 14:25:17 +02:00
pdispatch.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
pid.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
pid.h
pipe.c Fix dependencies and include necessary headers 2011-02-17 11:58:22 +01:00
pipe.h
play-memblockq.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
play-memblockq.h scache: when playing a sample from the cache make sure not queue them up when the sink is suspended 2010-02-21 17:48:55 +01:00
play-memchunk.c memblockq: Improve debuggability by storing a name and a sample spec. 2011-10-01 13:25:16 +01:00
play-memchunk.h scache: when playing a sample from the cache make sure not queue them up when the sink is suspended 2010-02-21 17:48:55 +01:00
poll-posix.c core: Proper poll() emulation to fix pacat and friends on Windows 2012-10-30 16:22:18 +05:30
poll-win32.c core: Proper poll() emulation to fix pacat and friends on Windows 2012-10-30 16:22:18 +05:30
poll.h Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
proplist-util.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
proplist-util.h proplist: Add internal API to get stream group 2011-11-24 13:03:26 +05:30
protocol-cli.c idxset: Use pa_free_cb_t instead of pa_free2_cb_t 2013-02-16 01:15:27 +02:00
protocol-cli.h
protocol-dbus.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
protocol-dbus.h Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
protocol-esound.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
protocol-esound.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
protocol-http.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
protocol-http.h
protocol-native.c introspect: Expose card profile available flag 2013-07-15 19:41:07 +03:00
protocol-native.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
protocol-simple.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
protocol-simple.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
pstream-util.c
pstream-util.h
pstream.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
pstream.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
queue.c Use simple free function in pa_queue_free 2011-11-27 15:42:52 +00:00
queue.h Use simple free function in pa_queue_free 2011-11-27 15:42:52 +00:00
random.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
random.h
ratelimit.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
ratelimit.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
refcnt.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
remap.c Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
remap.h
remap_mmx.c remap: fix check when to apply specialized code path 2013-03-29 10:48:26 +02:00
remap_sse.c remap: fix check when to apply specialized code path 2013-03-29 10:48:26 +02:00
resampler.c resampler: Add a choose_auto_resampler function 2013-08-27 12:33:10 +02:00
resampler.h resampler: Introduce a implementation specific struct 2013-08-27 12:33:10 +02:00
rtkit.c pulsecore: Use pa_streq instead of strcmp. 2012-06-09 16:22:13 +03:00
rtkit.h rtkit: update drop-in files 2012-05-15 16:08:40 +02:00
rtpoll.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
rtpoll.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
sample-util.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
sample-util.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
sconv-s16be.c
sconv-s16be.h
sconv-s16le.c sconv: Change/fix conversion to/from float32 2013-02-04 12:07:14 +02:00
sconv-s16le.h
sconv.c Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
sconv.h Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
sconv_neon.c sconv: avoid multiply in ARM NEON s16->float conversion 2013-07-05 09:52:19 +03:00
sconv_sse.c sconv: Change/fix conversion to/from float32 2013-02-04 12:07:14 +02:00
semaphore-osx.c semaphore-osx: posix implementation based on named semaphores 2013-04-09 12:09:46 +03:00
semaphore-posix.c
semaphore-win32.c Fix up according to Coding Style 2011-03-11 11:49:35 +00:00
semaphore.h
shared.c Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
shared.h
shm.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
shm.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
shmasyncq.c Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
shmasyncq.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
sink-input.c sink-input: Don't assert when removing non-existent volume factor 2013-08-08 11:58:22 +05:30
sink-input.h sink-input: Don't assert when removing non-existent volume factor 2013-08-08 11:58:22 +05:30
sink.c sink, source: Return early from pa_*_update_rate(), if there's no need to do anything 2013-08-27 12:02:32 +03:00
sink.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
sioman.c
sioman.h
sndfile-util.c Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
sndfile-util.h
socket-client.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
socket-client.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
socket-server.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
socket-server.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
socket-util.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
socket-util.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
socket.h Use <pulsecore/socket.h> instead of <sys/socket.h> 2011-02-17 11:58:21 +01:00
sound-file-stream.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
sound-file-stream.h
sound-file.c Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
sound-file.h
source-output.c source-output: Get the correct source for "direct_on_input" streams 2013-08-21 16:59:01 +03:00
source-output.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
source.c source: Fix monitor source rate changing 2013-08-27 15:34:33 +03:00
source.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
start-child.c win32: Make some unused-variable warnings go away 2011-06-24 00:34:05 +01:00
start-child.h
strbuf.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
strbuf.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
strlist.c pulsecore: Use pa_streq instead of strcmp. 2012-06-09 16:22:13 +03:00
strlist.h More spelling fixes 2011-08-25 11:27:47 +01:00
svolume.orc orc: Another trivial documentation fix 2012-01-11 13:18:20 +05:30
svolume_arm.c svolume: Fix ARM alignment issues 2012-10-30 20:34:21 +05:30
svolume_c.c core: Refactor code to multiply s16 by volume 2013-02-15 21:34:13 +02:00
svolume_mmx.c tests: add cpu test 2012-08-04 08:23:34 +02:00
svolume_orc.c Style fix: Remove new lines from opening brackets 2013-06-24 16:56:24 +03:00
svolume_sse.c Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
tagstruct.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
tagstruct.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
thread-mq.c thread-mq: Support a mainloop as thread/consumer 2013-08-06 18:26:26 +03:00
thread-mq.h thread-mq: Support a mainloop as thread/consumer 2013-08-06 18:26:26 +03:00
thread-posix.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
thread-win32.c win32: Make once-test work 2011-06-24 00:32:22 +01:00
thread.h Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
time-smoother.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
time-smoother.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
tokenizer.c dynarray: Reimplement with nicer semantics 2013-06-27 11:45:41 +03:00
tokenizer.h
usergroup.c Fix up according to Coding Style 2011-03-11 11:49:35 +00:00
usergroup.h
x11prop.c Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00
x11prop.h x11: Use the default screen for X11 properties. 2010-09-18 12:05:38 +01:00
x11wrap.c x11: Partially convert to XCB. 2010-09-18 12:04:09 +01:00
x11wrap.h More spelling fixes 2011-08-25 11:27:47 +01:00