Loading services/oboeservice/AAudioServiceEndpointMMAP.cpp +11 −3 Original line number Diff line number Diff line Loading @@ -37,6 +37,8 @@ #include "AAudioServiceEndpointPlay.h" #include "AAudioServiceEndpointMMAP.h" #include <com_android_media_aaudio.h> #define AAUDIO_BUFFER_CAPACITY_MIN (4 * 512) #define AAUDIO_SAMPLE_RATE_DEFAULT 48000 Loading Loading @@ -148,9 +150,15 @@ aaudio_result_t AAudioServiceEndpointMMAP::open(const aaudio::AAudioStreamReques // Try other formats if the config from APM is the same as our current config. // Some HALs may report its format support incorrectly. if ((previousConfig.format == config.format) && (previousConfig.sample_rate == config.sample_rate)) { if (previousConfig.format == config.format) { if (previousConfig.sample_rate == config.sample_rate) { config.format = getNextFormatToTry(config.format); } else if (!com::android::media::aaudio::sample_rate_conversion()) { ALOGI("%s() - AAudio SRC feature not enabled, different rates! %d != %d", __func__, previousConfig.sample_rate, config.sample_rate); result = AAUDIO_ERROR_INVALID_RATE; break; } } ALOGD("%s() %#x %d failed, perhaps due to format or sample rate. Try again with %#x %d", Loading services/oboeservice/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ cc_defaults { "framework-permission-aidl-cpp", "libaudioclient_aidl_conversion", "packagemanager_aidl-cpp", "com.android.media.aaudio-aconfig-cc", ], static_libs: [ Loading services/oboeservice/fuzzer/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ cc_fuzz { "aaudio-aidl-cpp", "framework-permission-aidl-cpp", "libaudioclient_aidl_conversion", "com.android.media.aaudio-aconfig-cc", ], static_libs: [ "libaaudioservice", Loading Loading
services/oboeservice/AAudioServiceEndpointMMAP.cpp +11 −3 Original line number Diff line number Diff line Loading @@ -37,6 +37,8 @@ #include "AAudioServiceEndpointPlay.h" #include "AAudioServiceEndpointMMAP.h" #include <com_android_media_aaudio.h> #define AAUDIO_BUFFER_CAPACITY_MIN (4 * 512) #define AAUDIO_SAMPLE_RATE_DEFAULT 48000 Loading Loading @@ -148,9 +150,15 @@ aaudio_result_t AAudioServiceEndpointMMAP::open(const aaudio::AAudioStreamReques // Try other formats if the config from APM is the same as our current config. // Some HALs may report its format support incorrectly. if ((previousConfig.format == config.format) && (previousConfig.sample_rate == config.sample_rate)) { if (previousConfig.format == config.format) { if (previousConfig.sample_rate == config.sample_rate) { config.format = getNextFormatToTry(config.format); } else if (!com::android::media::aaudio::sample_rate_conversion()) { ALOGI("%s() - AAudio SRC feature not enabled, different rates! %d != %d", __func__, previousConfig.sample_rate, config.sample_rate); result = AAUDIO_ERROR_INVALID_RATE; break; } } ALOGD("%s() %#x %d failed, perhaps due to format or sample rate. Try again with %#x %d", Loading
services/oboeservice/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,7 @@ cc_defaults { "framework-permission-aidl-cpp", "libaudioclient_aidl_conversion", "packagemanager_aidl-cpp", "com.android.media.aaudio-aconfig-cc", ], static_libs: [ Loading
services/oboeservice/fuzzer/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ cc_fuzz { "aaudio-aidl-cpp", "framework-permission-aidl-cpp", "libaudioclient_aidl_conversion", "com.android.media.aaudio-aconfig-cc", ], static_libs: [ "libaaudioservice", Loading