summaryrefslogtreecommitdiffstats
path: root/audio/out/ao.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/ao.c')
-rw-r--r--audio/out/ao.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/audio/out/ao.c b/audio/out/ao.c
index a2fa2fb104..c7065f386a 100644
--- a/audio/out/ao.c
+++ b/audio/out/ao.c
@@ -450,11 +450,6 @@ bool ao_untimed(struct ao *ao)
return ao->untimed;
}
-const char *ao_get_detected_device(struct ao *ao)
-{
- return ao->detected_device;
-}
-
// ---
struct ao_hotplug {
@@ -502,6 +497,11 @@ bool ao_hotplug_check_update(struct ao_hotplug *hp)
return false;
}
+const char *ao_hotplug_get_detected_device(struct ao_hotplug *hp)
+{
+ return hp->ao->detected_device;
+}
+
// The return value is valid until the next call to this API.
struct ao_device_list *ao_hotplug_get_device_list(struct ao_hotplug *hp)
{