Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c58cac5 authored by jiabin's avatar jiabin
Browse files

APM: only use the flags that are compatible for the mix port when opening

input stream.

Bug: 324438381
Test: atest AudioRecordTest audiopolicy_tests
Change-Id: Ibc4f508c600f582dd8f3916a5be1ccbd4ebe4d63
parent aeebf258
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -235,7 +235,8 @@ status_t AudioInputDescriptor::open(const audio_config_t *config,
                                                  &deviceType,
                                                  String8(mDevice->address().c_str()),
                                                  source,
                                                  flags);
                                                  static_cast<audio_input_flags_t>(
                                                          flags & mProfile->getFlags()));
    LOG_ALWAYS_FATAL_IF(mDevice->type() != deviceType,
                        "%s openInput returned device %08x when given device %08x",
                        __FUNCTION__, mDevice->type(), deviceType);