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

Commit 48dc871d authored by Hongguang's avatar Hongguang
Browse files

Add back legacy deviceTypesToString function.

Legacy prebuilt HALs may use this function. Add it back to avoid symbol
loading error.

Bug: 210916964
Test: manual test, audio could be heard.
Change-Id: Ic393688d144e3fdd4e33e8f31bd1e66ce30b2dd1
parent 73443327
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -89,6 +89,11 @@ std::string deviceTypesToString(const DeviceTypeSet &deviceTypes) {
    return ss.str();
}

bool deviceTypesToString(const DeviceTypeSet &deviceTypes, std::string &str) {
    str = deviceTypesToString(deviceTypes);
    return true;
}

std::string dumpDeviceTypes(const DeviceTypeSet &deviceTypes) {
    std::stringstream ss;
    for (auto it = deviceTypes.begin(); it != deviceTypes.end(); ++it) {
+2 −0
Original line number Diff line number Diff line
@@ -133,6 +133,8 @@ static inline DeviceTypeSet deviceTypesFromBitMask(audio_devices_t types) {

std::string deviceTypesToString(const DeviceTypeSet& deviceTypes);

bool deviceTypesToString(const DeviceTypeSet& deviceTypes, std::string &str);

std::string dumpDeviceTypes(const DeviceTypeSet& deviceTypes);

/**