From 7efff0013a8efacbb0d5228ea9f6c79430e70e55 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Wed, 15 Jan 2014 19:03:55 +0100 Subject: [PATCH] android/hal-audio: Fix module loading --- android/hal-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/hal-audio.c b/android/hal-audio.c index 9d94f91c5..0a9fb36f9 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -937,7 +937,7 @@ static char *audio_get_parameters(const struct audio_hw_device *dev, static int audio_init_check(const struct audio_hw_device *dev) { DBG(""); - return -ENOSYS; + return 0; } static int audio_set_voice_volume(struct audio_hw_device *dev, float volume) @@ -1174,6 +1174,7 @@ static int audio_open(const hw_module_t *module, const char *name, if (!a2dp_dev) return -ENOMEM; + a2dp_dev->dev.common.tag = HARDWARE_DEVICE_TAG; a2dp_dev->dev.common.version = AUDIO_DEVICE_API_VERSION_CURRENT; a2dp_dev->dev.common.module = (struct hw_module_t *) module; a2dp_dev->dev.common.close = audio_close; -- 2.47.3