OSDN Git Service

Allow headset plug/unplug in the emulator
authorJim Kaye <jameskaye@google.com>
Sat, 21 Jan 2017 01:22:32 +0000 (17:22 -0800)
committerJim Kaye <jameskaye@google.com>
Wed, 25 Jan 2017 18:27:49 +0000 (10:27 -0800)
commitb5d4d0289188efdb149557e9b7cad7009f70051b
treef87f4f3ba5f6cd1683dd72a5a0e5091dcd29bfa1
parent4e62b8da2fc03ce8a6bfe1671cd907f53b953a56
Allow headset plug/unplug in the emulator

Have the goldfish device support WIRED_HEADPHONE and WIRED_HEADSET in
addition to SPEAKER.
Support more audio sample rates.
Set 'useDevInputEventForAudioJack' so we respond to settings from the
emulator.

BUG: http://b/32437768

Test: Required for and covered by CTS Verifier

(cherry picked from commit e5d00ff412de76d1d0146d0aa7fc6243f6d98ffa)

Change-Id: Ic35c38d7169a02bedf19b148703ff4993d1037b4
audio/audio_hw_legacy.c
audio_policy.conf
overlay/frameworks/base/core/res/res/values/config.xml [new file with mode: 0644]