[pulseaudio-discuss] [PATCH] alsa: Add debug print of parsed profile set file
David Henningsson
david.henningsson at canonical.com
Fri Aug 22 02:50:33 PDT 2014
On 2014-08-20 11:53, Tanu Kaskinen wrote:
> On Tue, 2014-08-19 at 14:38 +0200, David Henningsson wrote:
>> This is useful for debugging.
>>
>> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
>> ---
>> src/modules/alsa/alsa-mixer.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/src/modules/alsa/alsa-mixer.c b/src/modules/alsa/alsa-mixer.c
>> index 4871523..2a14751 100644
>> --- a/src/modules/alsa/alsa-mixer.c
>> +++ b/src/modules/alsa/alsa-mixer.c
>> @@ -4245,6 +4245,7 @@ pa_alsa_profile_set* pa_alsa_profile_set_new(const char *fname, const pa_channel
>> pa_run_from_build_tree() ? PA_SRCDIR "/modules/alsa/mixer/profile-sets/" :
>> PA_ALSA_PROFILE_SETS_DIR);
>>
>> + pa_log_debug("Parsing profile set file '%s'", fn);
>> r = pa_config_parse(fn, NULL, items, NULL, ps);
>> pa_xfree(fn);
>
> Maybe put it in pa_config_parse() instead?
>
This will lead to a block looking like the below, but I don't have any
strong opinions. Posting new patch.
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-front-mic.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-rear-mic.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-internal-mic.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-dock-mic.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-linein.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-aux.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-video.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-tvtuner.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-fm.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic-line.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-headphone-mic.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf.common'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-headset-mic.conf'
D: [lt-pulseaudio] conf-parser.c: Parsing configuration file
'/home/david/gsrc/pulseaudio/build/../src/modules/alsa/mixer/paths//analog-input-mic.conf.common'
--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
More information about the pulseaudio-discuss
mailing list