summaryrefslogtreecommitdiff
path: root/hal/platform_api.h
diff options
context:
space:
mode:
authorCarter Hsu <carterhsu@google.com>2018-10-15 15:01:42 -0700
committerCarter Hsu <carterhsu@google.com>2019-02-18 14:54:35 +0800
commit017c63ae09841070e587d0f9f5c396efcb07e46d (patch)
treec2ef511632be6dfdafe6540d3a306f6903f8eb3c /hal/platform_api.h
parent0fb7266768238bebaa52f57a9a128b60ad0e9815 (diff)
downloadaudio-017c63ae09841070e587d0f9f5c396efcb07e46d.tar.gz
audio: support custom acdb for external device
add the specific external device setting in audio_platform_info.xml For example: <external_specific_dev> <ext_device name="SND_DEVICE_OUT_USB_HEADSET" usbid="18d1:5034" acdb_id="10" /> </external_specific_dev> Bug: 117336751 Test: manual test ok Change-Id: Ie9abcadd9bcd6d06c5d8f0a9807c3935ee4a1d35 Signed-off-by: Carter Hsu <carterhsu@google.com> Signed-off-by: Robert Lee <lerobert@google.com>
Diffstat (limited to 'hal/platform_api.h')
-rw-r--r--hal/platform_api.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hal/platform_api.h b/hal/platform_api.h
index 46ceceb..1d46c31 100644
--- a/hal/platform_api.h
+++ b/hal/platform_api.h
@@ -111,6 +111,9 @@ void platform_add_operator_specific_device(snd_device_t snd_device,
const char *operator,
const char *mixer_path,
unsigned int acdb_id);
+void platform_add_external_specific_device(snd_device_t snd_device,
+ const char *name,
+ unsigned int acdb_id);
/* return true if adding entry success
return false if adding entry fails */