OSDN Git Service

alsa proxy: fix sampling rate checks in proxy_prepare()
authorEric Laurent <elaurent@google.com>
Wed, 3 May 2017 18:33:26 +0000 (11:33 -0700)
committerEric Laurent <elaurent@google.com>
Thu, 4 May 2017 16:01:43 +0000 (09:01 -0700)
commit49bc03cfdc9f748c53bd989a3aaf4cd7ec4f4692
tree51bc1c5334f60ca0bf8c28d35c1f8ef32784775e
parent6bbcd2a35d3018aeccbda4bdb4adb16efe9f5889
alsa proxy: fix sampling rate checks in proxy_prepare()

- proxy_prepare() should not alter the requested properties (format,
sampling rate, channels)  without notifying the caller.
- It should not force the sampling rate to the max sampling rate supported
by the profile but just limit it if the requested combination of
sampling rate, channel count and format is not possible.

Bug: 37949012
Test: verify capture over USB at various sampling rates
Change-Id: Id79ca4fda86db1f756e171d131494c3f244b5f2c
alsa_utils/alsa_device_proxy.c
alsa_utils/include/alsa_device_proxy.h