google / google/oboe

LiveEffect cannot select builtin mic on Android P on Huawei P30

Open
#616 9 comments 0 reactions 0 assignees View on GitHub
bug Huawei
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

I have an issue on latest Huawei P30 Pro (Android P). It hasn't 3.5mm Jack, but has USB Type-C headset, of course with microphone on it. The problem is I can't choose none of 2 "built in microphones" on device, it seems that library ignores that call, and headset's microphone continue it's work. The question is how to force my app to use "built in" microphone instead of headset's microphone. I even removed "AudioDeviceCallback" after all devices added, so headset isn't even listed, but it's working somehow.

Here is the list of devices (including USB headset too)

2019-08-27 17:51:09.591 9763-9763/? D/____all: built-in earphone speaker
2019-08-27 17:51:09.591 9763-9763/? D/____all: built-in speaker
2019-08-27 17:51:09.591 9763-9763/? D/____all: DOCK
2019-08-27 17:51:09.591 9763-9763/? D/____all: telephony
2019-08-27 17:51:09.591 9763-9763/? D/____all: built-in microphone
2019-08-27 17:51:09.591 9763-9763/? D/____what_I_need: built-in microphone **(I want to use this one)**
2019-08-27 17:51:09.591 9763-9763/? D/____all: USB device
2019-08-27 17:51:09.591 9763-9763/? D/____all: USB device

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.