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

Commit 98682673 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "APM: only use the flags that are compatible for the mix port when...

Merge "APM: only use the flags that are compatible for the mix port when opening input stream." into main
parents 8c2a3bfc 4c58cac5
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);