Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headphone in/out bugs #908

Closed
lattice0 opened this issue Jun 24, 2020 · 1 comment
Closed

Headphone in/out bugs #908

lattice0 opened this issue Jun 24, 2020 · 1 comment
Assignees
Labels

Comments

@lattice0
Copy link

Android version(s): Nokia 6.1 (Android 9.0) and Huawei p30 (Android 10)
Android device(s): Huawei and Nokia

Short description
We're having problems with headphone input/output. We found a little activity that tests input/output so I guess it's meant to be posted here to find a solution. Are they self explanatory or more data is needed?

Nokia:

=== STARTED at Tue Jun 23 22:29:40 CDT 2020
HMD Global Plate2_00WW
00WW_3_53A
========================== #0
Requested:
OUT, Perf = LOWLAT, EXCLUSIVE
Actual:
OUT, Perf = LOWLAT, SHARED, Legacy
did not get requested sharing mode
SKIP
========================== #1
Requested:
OUT, Perf = LOWLAT, EXCLUSIVE
Actual:
OUT, Perf = LOWLAT, SHARED, Legacy
did not get requested sharing mode
SKIP
========================== #2
Requested:
IN, Perf = LOWLAT, EXCLUSIVE
Open failed! result = -898
========================== #3
Requested:
IN, Perf = LOWLAT, EXCLUSIVE
Open failed! result = -898
========================== #4
Requested:
OUT, Perf = LOWLAT, SHARED
Actual:
OUT, Perf = LOWLAT, SHARED, Legacy
Result:
plugIN, PASS
========================== #5
Requested:
OUT, Perf = LOWLAT, SHARED
Actual:
OUT, Perf = LOWLAT, SHARED, Legacy
Result:
UNplug, PASS
========================== #6
Requested:
IN, Perf = LOWLAT, SHARED
Open failed! result = -898
========================== #7
Requested:
IN, Perf = LOWLAT, SHARED
Open failed! result = -898
========================== #8
Requested:
OUT, Perf = NONE, SHARED
Actual:
OUT, Perf = NONE, SHARED, Legacy
Result:
plugIN, PASS
========================== #9
Requested:
OUT, Perf = NONE, SHARED
Actual:
OUT, Perf = NONE, SHARED, Legacy
Result:
UNplug, PASS
========================== #10
Requested:
IN, Perf = NONE, SHARED
Open failed! result = -898
========================== #11
Requested:
IN, Perf = NONE, SHARED
Open failed! result = -898

==== SUMMARY ========
4 passed. 6 failed.
These tests FAILED:
------ #2
IN, Perf = LOWLAT, EXCLUSIVE
Open failed!
------ #3
IN, Perf = LOWLAT, EXCLUSIVE
Open failed!
------ #6
IN, Perf = LOWLAT, SHARED
Open failed!
------ #7
IN, Perf = LOWLAT, SHARED
Open failed!
------ #10
IN, Perf = NONE, SHARED
Open failed!
------ #11
IN, Perf = NONE, SHARED
Open failed!

== FINISHED at Tue Jun 23 22:30:15 CDT 2020

Huawei:

=== STARTED at Tue Jun 23 22:31:48 CDT 2020
HUAWEI MAR-LX3A
MAR-L23A 10.0.0.216(C605E3R4P3)
========================== #0
Requested:
OUT, Perf = LOWLAT, EXCLUSIVE
Actual:
OUT, Perf = LOWLAT, EXCLUSIVE, MMAP
Result:
plugIN, FAIL !!!!
========================== #1
Requested:
OUT, Perf = LOWLAT, EXCLUSIVE
Actual:
OUT, Perf = LOWLAT, EXCLUSIVE, MMAP
Result:
UNplug, PASS
========================== #2
Requested:
IN, Perf = LOWLAT, EXCLUSIVE
Actual:
IN, Perf = LOWLAT, EXCLUSIVE, MMAP
Result:
plugIN, FAIL !!!!
========================== #3
Requested:
IN, Perf = LOWLAT, EXCLUSIVE
Actual:
IN, Perf = LOWLAT, EXCLUSIVE, MMAP
Result:
UNplug, FAIL !!!!
========================== #4
Requested:
OUT, Perf = LOWLAT, SHARED
Actual:
OUT, Perf = LOWLAT, SHARED, MMAP
Result:
plugIN, FAIL !!!!
========================== #5
Requested:
OUT, Perf = LOWLAT, SHARED
Actual:
OUT, Perf = LOWLAT, SHARED, MMAP
Result:
UNplug, PASS
========================== #6
Requested:
IN, Perf = LOWLAT, SHARED
Actual:
IN, Perf = LOWLAT, SHARED, MMAP
Result:
plugIN, FAIL !!!!
========================== #7
Requested:
IN, Perf = LOWLAT, SHARED
Actual:
IN, Perf = LOWLAT, SHARED, MMAP
Result:
UNplug, FAIL !!!!
========================== #8
Requested:
OUT, Perf = NONE, SHARED
Actual:
OUT, Perf = NONE, SHARED, Legacy
Result:
plugIN, PASS
========================== #9
Requested:
OUT, Perf = NONE, SHARED
Actual:
OUT, Perf = NONE, SHARED, Legacy
Result:
UNplug, PASS
========================== #10
Requested:
IN, Perf = NONE, SHARED
Actual:
IN, Perf = NONE, SHARED, Legacy
Result:
plugIN, FAIL !!!!
========================== #11
Requested:
IN, Perf = NONE, SHARED
Actual:
IN, Perf = NONE, SHARED, Legacy
Result:
UNplug, FAIL !!!!

==== SUMMARY ========
4 passed. 8 failed.
These tests FAILED:
------ #0
OUT, Perf = LOWLAT, EXCLUSIVE, MMAP
plugIN, FAIL !!!!
------ #2
IN, Perf = LOWLAT, EXCLUSIVE, MMAP
plugIN, FAIL !!!!
------ #3
IN, Perf = LOWLAT, EXCLUSIVE, MMAP
UNplug, FAIL !!!!
------ #4
OUT, Perf = LOWLAT, SHARED, MMAP
plugIN, FAIL !!!!
------ #6
IN, Perf = LOWLAT, SHARED, MMAP
plugIN, FAIL !!!!
------ #7
IN, Perf = LOWLAT, SHARED, MMAP
UNplug, FAIL !!!!
------ #10
IN, Perf = NONE, SHARED, Legacy
plugIN, FAIL !!!!
------ #11
IN, Perf = NONE, SHARED, Legacy
UNplug, FAIL !!!!

== FINISHED at Tue Jun 23 22:33:17 CDT 2020
@lattice0 lattice0 added the bug label Jun 24, 2020
@philburk
Copy link
Collaborator

We're having problems with headphone input/output.

Do you mean headphone plugging and unplugging? Or audio input/output through headphones?

For the Nokia device, all of the failures were for INPUT open.
Either another app is using the microphone and blocking the test,
or OboeTester does not have RECORD permission.
I see that I am not asking for Permission in that test.
Try the TEST INPUT Activity to see if it can open a mic. It should ask for permission.
Or go to the launcher and long press on the OboeTester icon. Then tap App Info.
Then Permissions, and turn on Microphone permission.

The Huawei device looks like it has hit a known bug with plugin detection. More information here:
https://github.com/google/oboe/blob/master/docs/notes/disconnect.md
Thanks for the report. I added the Huawei device to the table.

@philburk philburk self-assigned this Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants