summaryrefslogtreecommitdiff
authorjie.yuan <jie.yuan@amlogic.com>2018-07-06 11:13:28 (GMT)
committer jie.yuan <jie.yuan@amlogic.com>2018-07-10 01:59:55 (GMT)
commit70c2de921936656e7c47820485c8eaee46799ffe (patch)
treebc4d718c0ecbc66658bbbc0eeae04259bbd9ab24
parentbd19d075969947cfc7adcbae7b20e7c53d0dbd7f (diff)
downloaddarwin-70c2de921936656e7c47820485c8eaee46799ffe.zip
darwin-70c2de921936656e7c47820485c8eaee46799ffe.tar.gz
darwin-70c2de921936656e7c47820485c8eaee46799ffe.tar.bz2
darwin:add AUDIO_DEVICE_IN_BUILTIN_MIC for cts [1/1]
PD# 168232 fix android.appsecurity.cts.EphemeralTest#testRecordAudioPermission Change-Id: Ic1b90143c6454347d77405e093904521d9254346
Diffstat
-rw-r--r--files/audio_policy.conf7
1 files changed, 5 insertions, 2 deletions
diff --git a/files/audio_policy.conf b/files/audio_policy.conf
index 59419af..500c522 100644
--- a/files/audio_policy.conf
+++ b/files/audio_policy.conf
@@ -37,7 +37,7 @@ audio_hw_modules {
global_configuration {
attached_output_devices speaker|SPDIF
default_output_device AUDIO_DEVICE_OUT_SPEAKER
- attached_input_devices hdmi_in|line_in|tuner|spdif_in
+ attached_input_devices hdmi_in|line_in|tuner|spdif_in|buimic_in
audio_hal_version 3.0
}
devices {
@@ -89,6 +89,9 @@ audio_hw_modules {
}
}
}
+ buimic_in {
+ type AUDIO_DEVICE_IN_BUILTIN_MIC
+ }
spdif_in {
type AUDIO_DEVICE_IN_SPDIF
}
@@ -162,7 +165,7 @@ audio_hw_modules {
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
- devices AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|hdmi_in|line_in|tuner|spdif_in
+ devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|hdmi_in|line_in|tuner|spdif_in
}
}
}