summaryrefslogtreecommitdiff
path: root/emulator/audio/driver/audio_extn/audio_extn.h
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2022-06-14 16:39:44 -0700
committerXin Li <delphij@google.com>2022-06-14 16:39:44 -0700
commit0dd139b130fa8ebd11e4727dfd140588fc1c5b7b (patch)
treec8b2cfd24c1afd5c5ce407fea09276c2d09ec910 /emulator/audio/driver/audio_extn/audio_extn.h
parentbfcee185bfba01d772cb21765a9e27634cfb85d2 (diff)
parenta24498718ccbfd10a4fc43a1ba9a2ecb2d8523b8 (diff)
downloadcar-0dd139b130fa8ebd11e4727dfd140588fc1c5b7b.tar.gz
Merge Android 12 QPR 3
Bug: 236045730 Merged-In: If61a479068bf9475b36885e3dcce778dfeb0b6e3 Change-Id: I8532fa760096167baa0ccb23938025c8d3e78989
Diffstat (limited to 'emulator/audio/driver/audio_extn/audio_extn.h')
-rw-r--r--emulator/audio/driver/audio_extn/audio_extn.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/emulator/audio/driver/audio_extn/audio_extn.h b/emulator/audio/driver/audio_extn/audio_extn.h
new file mode 100644
index 0000000..13050c6
--- /dev/null
+++ b/emulator/audio/driver/audio_extn/audio_extn.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2022 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AUDIO_EXTN_H
+#define AUDIO_EXTN_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "audio_hw.h"
+#include <cutils/str_parms.h>
+
+#ifndef HFP_ENABLED
+#define audio_extn_hfp_set_parameters(adev, parms) (0)
+#else
+int audio_extn_hfp_set_parameters(struct generic_audio_device *adev,
+ struct str_parms *parms);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* AUDIO_EXTN_H */