|
咨询板子的音频输入问题,急急急!
发表于 2019-2-20 10:42:51
浏览:5527
|
回复:2
打印
只看该作者
[复制链接]
楼主
3399c的板子,需要从line in获取音频数据,但是主板默认从板载mic上获取声音,修改了 frameworks/av/services/audiopolicy/audio_policy.conf 内的内容
修改位置1:
global_configuration {
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER
default_output_device AUDIO_DEVICE_OUT_SPEAKER
# attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC
attached_input_devices AUDIO_DEVICE_IN_AUX_DIGITAL|AUDIO_DEVICE_IN_LINE|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET
audio_hal_version 3.0
}
修改位置2:
inputs {
# primary {
# sampling_rates 8000|16000
# channel_masks AUDIO_CHANNEL_IN_MONO
# formats AUDIO_FORMAT_PCM_16_BIT
# devices AUDIO_DEVICE_IN_BUILTIN_MIC
# }
primary {
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_AUX_DIGITAL|AUDIO_DEVICE_IN_LINE|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET
}
}
但是无效. |
|