16372a573e5e5a44c8cd0593e41ce3d0d3ad0fd2 |
|
06-Oct-2011 |
Taylor Hutt <thutt@chromium.org> |
ADHD: Provide better diagnostics for function entry & exit Details Since ADHD is a multithreaded application, where different threads will use the same functions, I think it is beneficial to provide more context, at sufficient verbosity, about how functions are being entered an exited. This change alters VERBOSE_FUNCTION_ENTER() and VERBOSE_FUNCTION_EXIT() to take a varadic set of parameters, facilitating the output of the arguments passed to the function. Testing o tegra2_kaen killed default instance of gavd /usr/bin/gavd --verbose=10 grep gavd /var/log/messages gavd[2859]: daemonize: release mode. gavd[2859]: signal_start gavd[2859]: threads_start: 'Internal Microphone' gavd[2859]: threads_start: 'Internal Headphone' gavd[2859]: beg gpio_switch_monitor(Internal Microphone, tegra-seaboard Mic Jack, 4, (null), (null)) gavd[2859]: beg sys_input_find_device_by_name(tegra-seaboard Mic Jack) gavd[2859]: utils_execute_command: '/usr/bin/amixer set 'Speaker' 100% && /usr/bin/amixer set 'Headphone' 100% && /usr/bin/amixer set 'Digital' 100% && /usr/bin/amixer set 'Left Speaker Mixer DACL' on && /usr/bin/amixer set 'Right Speaker Mixer DACL' on && /usr/bin/amixer set 'Left Speaker Mixer DACR' on && /usr/bin/amixer set 'Right Speaker Mixer DACR' on && /usr/bin/amixer set 'ADC Input' 'DMIC'' succeeded. gavd[2859]: beg gpio_switch_monitor(Internal Headphone, tegra-seaboard Headphone Jack, 2, /usr/bin/amixer set 'Speaker' off && /usr/bin/amixer set 'Int Spk' off && /usr/bin/amixer set 'Headphone' on, /usr/bin/amixer set 'Speaker' on && /usr/bin/amixer set 'Int Spk' on && /usr/bin/amixer set 'Headphone' off) gavd[2859]: beg sys_input_find_device_by_name(tegra-seaboard Headphone Jack) gavd[2859]: end sys_input_find_device_by_name(tegra-seaboard Mic Jack) o x86-mario killed default instance of gavd /usr/bin/gavd --verbose=10 grep gavd /var/log/messages gavd[2967]: compiled for target machine: 'x86-mario' gavd[2967]: beg daemonize(void) gavd[2967]: Child process: '2968'. gavd[2968]: daemonize: release mode. gavd[2968]: signal_start There is less output because x86-based machines do not have any hardware monitoring yet. BUG=chromium-os:19558 TEST=See above. Change-Id: I711403710fbfe42f2fe3ee77d95063efbd19c6bb Signed-off-by: Taylor Hutt <thutt@chromium.org>
/external/adhd/.gitignore
|
8982204dee44ece1cef2178747a27f08beb374cf |
|
23-Aug-2011 |
Taylor Hutt <thutt@chromium.org> |
ADHD: Daemon for watching A/V device events Details This project will be a daemon which will monitor the hardware for insert & remove events of A/V devices and handle the multiplexing of sound I/O & video output amongst devices. The initial commit has no functionality; it is being used to integrate the code into the Chromium OS codebase & build process. Subsequent changes will enable functionality. Testing Execute 'make' in the 'adhd' directory, and the project builds. Execute 'gavd', and note the message output. BUG=chromium-os:19558 TEST=See above Signed-off-by: Taylor Hutt <thutt@chromium.org> Change-Id: I5106acc83e4f2fe60e34c4d8de62f2ff9a5f6f51 Signed-off-by: Taylor Hutt <thutt@chromium.org>
/external/adhd/.gitignore
|