Selects the card id on platforms with multiple cards.

On some platforms, there are more than one sound cards. And the default one is
not with index: 0. So, we need a way to figure out the correct card id we
should used.

TEST=run the test on butterfly
BUG=307384

Change-Id: I990c711c1e9fd4616797ad598687c80cb6e7eba8
Reviewed-on: https://chromium-review.googlesource.com/175420
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Owen Lin <owenlin@chromium.org>
Tested-by: Owen Lin <owenlin@chromium.org>
2 files changed