summaryrefslogtreecommitdiff
path: root/audio_proxy/service/DevicesFactoryImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio_proxy/service/DevicesFactoryImpl.h')
-rw-r--r--audio_proxy/service/DevicesFactoryImpl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/audio_proxy/service/DevicesFactoryImpl.h b/audio_proxy/service/DevicesFactoryImpl.h
index dd52d7c..560692e 100644
--- a/audio_proxy/service/DevicesFactoryImpl.h
+++ b/audio_proxy/service/DevicesFactoryImpl.h
@@ -25,7 +25,12 @@ namespace audio_proxy {
namespace service {
using android::hardware::Return;
+
+#if MAJOR_VERSION == 7 && MINOR_VERSION == 1
+using android::hardware::audio::V7_1::IDevicesFactory;
+#else
using android::hardware::audio::CPP_VERSION::IDevicesFactory;
+#endif
class BusStreamProvider;
@@ -39,6 +44,13 @@ class DevicesFactoryImpl : public IDevicesFactory {
openDevice_cb _hidl_cb) override;
Return<void> openPrimaryDevice(openPrimaryDevice_cb _hidl_cb) override;
+#if MAJOR_VERSION == 7 && MINOR_VERSION == 1
+ Return<void> openDevice_7_1(const hidl_string& device,
+ openDevice_7_1_cb _hidl_cb) override;
+ Return<void> openPrimaryDevice_7_1(
+ openPrimaryDevice_7_1_cb _hidl_cb) override;
+#endif
+
private:
BusStreamProvider& mBusStreamProvider;
const ServiceConfig mConfig;