]> code.delx.au - pulseaudio/commit
alsa: Merge pa_alsa_setting_select with pa_alsa_path_select
authorJarkko Nikula <jarkko.nikula@bitmer.com>
Thu, 22 Mar 2012 09:29:12 +0000 (11:29 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 6 Jul 2012 17:38:10 +0000 (20:38 +0300)
commit079569753e245393c3ce9ea8923a60fcd9799d34
treea7bc5279892a63e2ff008e81f42036511d15b584
parentfbb13a0dc6aca2c2e3bb746c267c717a11d6f2f0
alsa: Merge pa_alsa_setting_select with pa_alsa_path_select

As these functions are called together and are related, we might merge
them and call setting_select from pa_alsa_path_select by passing
optional pa_alsa_setting argument.

Make also the setting_select static as it is not called outside of
alsa-mixer.c after this change.

[Additional note from Tanu Kaskinen: this change improves the
mute-during-activation feature, because now the mixer changes related
to selecting the setting happen while the hw is muted.]
src/modules/alsa/alsa-mixer.c
src/modules/alsa/alsa-mixer.h
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c