History log of /system/media/audio_route/audio_route.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
63b31c18b37409e1b024c50df94798aac9d0fa7d 25-May-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> audio_route: use mixer_ctl_get/set_array

Rather than make individual calls to tinyalsa for every
value in each mixer control, which is expensive for linked
controls, use the array get/set functions instead. This
reduces the number of system calls that tinyalsa has to
make. The majority of controls are linked and have 1 or 2
values so the CPU overhead is small.

Change-Id: If32cb8c639e113403641cab0d68b32799cebb059
/system/media/audio_route/audio_route.c
d35bd63c74452b83eef34cff4f0831493d0781fa 13-May-2013 Simon Wilson <simonwilson@google.com> audio_route: skip missing controls

Mixer controls that are in mixer_paths.xml but missing from
the mixer should be skipped, otherwise arrays will be accessed
out of bounds. This happened in b/8893515.

Also print the missing control name to aid debugging.

Change-Id: Ia808df48734f78a02281408a4025652dec9762c0
/system/media/audio_route/audio_route.c
f3090fa9ce87c45aecb95a2c98a5cfcc2d3ee99a 13-Feb-2013 Simon Wilson <simonwilson@google.com> audio_route: use ctl_index instead of searching

Store the ctl_index instead of the ctl in the path so
that path_apply() and path_reset() don't have to
do a linear search through all the controls each time
to locate the index.

Change-Id: I0204310df55303dffdf10f68b652a820ca252d95
/system/media/audio_route/audio_route.c
72c277ef4859f7aa07ac43b3b9cc6754d6e3d505 08-Feb-2013 Ravi Kumar Alamanda <ralama@codeaurora.org> Add audio_route_reset_path()

Change-Id: I24905ef23f74673e1f97b591d7dcb04a54744f05
/system/media/audio_route/audio_route.c
cef935958069ffba745cd091e6e1687095ea6785 16-Jan-2013 Simon Wilson <simonwilson@google.com> Put audio_route into its own library

The audio_route library allows mixer paths to be
loaded from an XML file and can control a mixer
via tinyalsa. It contains useful functions that
can be factored out of the audio HAL.

Change-Id: Iebcb2b492c5936dbf0e0b976aeaa4ffbab136588
/system/media/audio_route/audio_route.c