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

Commit 07892869 authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi
Browse files

Disambiguate types

AudioPort and AudioPortConfig are declared in multiple namespaces.
Need to be explicit about which ones we're using.

Test: Compiles
Change-Id: I655d8ada27d3d219cd5cae9de93a7e41f4112679
parent 75e48fea
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -48,6 +48,9 @@ using EffectHalHidl = ::android::effect::CPP_VERSION::EffectHalHidl;

namespace {

using ::android::hardware::audio::common::CPP_VERSION::AudioPort;
using ::android::hardware::audio::common::CPP_VERSION::AudioPortConfig;

status_t deviceAddressFromHal(
        audio_devices_t device, const char* halAddress, DeviceAddress* address) {
    address->device = AudioDevice(device);