23bddf808db4f3cdfd5552f36e7a9b6d1214f583 |
|
15-Apr-2016 |
John Muir <muirj@google.com> |
CRAS: Enhance mixer name DL lists to include direction and type. Add direction and type to the struct mixer_name so that more information can be provided along with the mixer control's name. This then simplifies passing the mixer control data from UCM to other parts of CRAS. Move definition of struct mixer_name into server/cras_alsa_mixer_name.h, and create some utilities for manipulating those DL lists, and finding items with matching direction, name, and/or type. Modify the cras_alsa_mixer and cras_alsa_card code to use these new interfaces and clean-up the code a bit. This new functionality will be of more use when it comes to providing the list of all valid controls, what they are for (type), and their direction when the UCM files fully define the ALSA controls used by CRAS. BUG=None TEST=Pass all unit tests. Add unit test for cras_alsa_mixer_name. Change-Id: I8c67c6fca36e5373fd18bea2f4e37c39a0b006e2 Reviewed-on: https://chromium-review.googlesource.com/339406 Commit-Ready: John Muir <muirj@google.com> Tested-by: John Muir <muirj@google.com> Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
/external/adhd/cras/src/server/cras_alsa_mixer_name.h
|