libcras: add new_pinned_playback_stream()

add new_pinned_playback_stream() to creates a new playback
stream pinned to the device at `device_index`.

It's currently used by sound_card_init to play zeros to internal mic.

BUG=b:149437381
TEST=deploy to DUT and run /user/bin/sci and see wether zeros are played
to internal mic.

Change-Id: Id08d5a8fa524d64fe28b434076a60c6ef84ff370
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2148797
Tested-by: Judy Hsiao <judyhsiao@chromium.org>
Commit-Queue: Judy Hsiao <judyhsiao@chromium.org>
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
1 file changed