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

Honor CTS-NX1: only InputPreset oboe::Unprocessed for input stream is working, VoicePerformance not working #1970

Open
renetik opened this issue Feb 29, 2024 · 6 comments
Assignees
Labels

Comments

@renetik
Copy link

renetik commented Feb 29, 2024

Android version(s): 13
MAGIC OS : 7.1
Android device(s): Honor: CRT-NX1
Oboe version: 1.8 , main branch

I have to use Unprocessed for stream otherwise not workinng at all eve with external interfaces:

oboe::AudioStreamBuilder builder;
builder.setDeviceId(_deviceId);
builder.setDirection(oboe::Direction::Input);
builder.setSampleRate(_settings->sampleRate);
builder.setChannelCount(oboe::ChannelCount::Stereo);
builder.setPerformanceMode(oboe::PerformanceMode::LowLatency);
builder.setSharingMode(oboe::SharingMode::Exclusive);
builder.setInputPreset(oboe::Unprocessed); // VoicePerformance didn't work on honor.
builder.setErrorCallback(_errorCallback);
builder.setFormat(oboe::AudioFormat::Float);
builder.setChannelConversionAllowed(true);
builder.setFormatConversionAllowed(true);
builder.setSampleRateConversionQuality(oboe::SampleRateConversionQuality::Medium);
auto result = builder.openStream(&_input);

@renetik renetik added the bug label Feb 29, 2024
@philburk philburk changed the title I want to report that setting other value on Honor for input stream as oboe::Unprocessed make it not working. InputPreset oboe::Unprocessed on Honor for input stream is not working. Feb 29, 2024
@philburk philburk self-assigned this Feb 29, 2024
@philburk philburk added the MediaTek SOC label Feb 29, 2024
@philburk philburk changed the title InputPreset oboe::Unprocessed on Honor for input stream is not working. only InputPreset oboe::Unprocessed on Honor for input stream is working, VoicePerformance not working Feb 29, 2024
@philburk philburk changed the title only InputPreset oboe::Unprocessed on Honor for input stream is working, VoicePerformance not working Honor CTS-NX1: only InputPreset oboe::Unprocessed for input stream is working, VoicePerformance not working Feb 29, 2024
@philburk
Copy link
Collaborator

philburk commented Mar 1, 2024

@renetik - thanks for reporting this. We are currently adding tests to CTS Verifier so that it will catch this sort of bug before a phone is shipped.

I am reporting this to MediaTek.

Do you see this problem on any other devices?

// VoicePerformance didn't work on honor.

Does InputPreset(VoiceRecognition) or Generic work?

builder.setSampleRate(_settings->sampleRate);

What was the sample rate? Does 48000 work?

Does InputPreset(VoiceRecognition) works for you on other phones?

Can you reproduce this with OboeTester TEST INPUT?

According to https://www.gsmarena.com/honor_90_lite-12377.php
Chipset= Mediatek Dimensity 6020 (7 nm)

Does the Data Paths "InPre" test catch this error? We are basing CTS Verifier Data Paths on this test.

@renetik
Copy link
Author

renetik commented Mar 2, 2024

I am using 48000 sample rate hard coded now in my apps and originally used VoiceRecognition so that was not working .. I tried some other preset and when realized unprocessed works for me best I just left it there and reported it here.. VoiceRecognition was working on xiaomi and Samsung device I own, just honor that is totally new didnt worked .. Not sure about other devies I will trys to catch such problems in the futuer on users devices too but I hava not implemented some sophysticated logging logic on C++ side of my software yet, now I am thinking how this could be done.. . So basically I didnt know this is the issue until it happened to me personally.

@philburk
Copy link
Collaborator

philburk commented Mar 6, 2024

MediaTek was unable to reproduce this on their phones.

I will try to contact the OEM.

@philburk
Copy link
Collaborator

philburk commented Mar 7, 2024

MediaTek could not reproduce this. We are now working with Honor OEM to reproduce the issue. Internal tracking number is.

b/328615006

@philburk
Copy link
Collaborator

Honor was able to reproduce the problem and they are investigating.

@renetik
Copy link
Author

renetik commented Mar 15, 2024

Nice that you actualy was able to move this somewhere ;)

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