chameleond: fix HFP codec to MSBC for WBS
The codec for HFP NBS is CVSD. First, fix the codec which determines to
use WBS to mSBC in audio.py. Then, since the CVSD is mandatory for HFP,
we should check if the device supports the mSBC first in server.py.
Last, the proto's setting for CVSD and mSBC should be swapped to conform
to the test settings.
BUG=b:394765235
TEST=Bluetooth suspend and resume tests
Change-Id: Ie8bc8b358c710dad93a4d7c448fb48c7fe26b014
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/chameleon/+/7174366
Reviewed-by: Yun-hao Chung <howardchung@chromium.org>
Commit-Queue: Yulun Liu <yulun@google.com>
Tested-by: Yulun Liu <yulun@google.com>
3 files changed