Return-Path: From: Andrzej Kaczmarek To: CC: Andrzej Kaczmarek Subject: [PATCH 09/10] android/hal-audio: Fix module loading Date: Wed, 15 Jan 2014 10:59:56 +0100 Message-ID: <1389779996-9749-10-git-send-email-andrzej.kaczmarek@tieto.com> In-Reply-To: <1389779996-9749-1-git-send-email-andrzej.kaczmarek@tieto.com> References: <1389779996-9749-1-git-send-email-andrzej.kaczmarek@tieto.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- 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 640a32c..68651a8 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; -- 1.8.5.2