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

Commit e9f7cf5a authored by Weilin Xu's avatar Weilin Xu
Browse files

Enable bus device audio in default audio HAL

Bug: 336370745
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I7d9ab165f3208f401a9889623050374ed6aea691
parent 046d443f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -116,8 +116,7 @@ bool StreamInPrimary::useStubStream(const AudioDevice& device) {
            GetBoolProperty("ro.boot.audio.tinyalsa.simulate_input", false);
    return kSimulateInput || device.type.type == AudioDeviceType::IN_TELEPHONY_RX ||
           device.type.type == AudioDeviceType::IN_FM_TUNER ||
           device.type.connection == AudioDeviceDescription::CONNECTION_BUS /*deprecated */ ||
           (device.type.type == AudioDeviceType::IN_BUS && device.type.connection.empty());
           device.type.connection == AudioDeviceDescription::CONNECTION_BUS /*deprecated */;
}

StreamSwitcher::DeviceSwitchBehavior StreamInPrimary::switchCurrentStream(
@@ -188,8 +187,7 @@ bool StreamOutPrimary::useStubStream(const AudioDevice& device) {
    static const bool kSimulateOutput =
            GetBoolProperty("ro.boot.audio.tinyalsa.ignore_output", false);
    return kSimulateOutput || device.type.type == AudioDeviceType::OUT_TELEPHONY_TX ||
           device.type.connection == AudioDeviceDescription::CONNECTION_BUS /*deprecated*/ ||
           (device.type.type == AudioDeviceType::OUT_BUS && device.type.connection.empty());
           device.type.connection == AudioDeviceDescription::CONNECTION_BUS /*deprecated*/;
}

StreamSwitcher::DeviceSwitchBehavior StreamOutPrimary::switchCurrentStream(