summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJookia <166291@gmail.com>2016-11-09 07:20:24 +1100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-10 19:28:13 +0100
commite406ad3ccadaa45aa3f7621b67f701a16df98585 (patch)
tree96bc6d01e2dcbd2fb63c6f5e22a7809e5d97bf51
parente5c6f26e8684a110141b0b798aacb7e88643c5c7 (diff)
downloadhardware_tinyalsa-audio-e406ad3ccadaa45aa3f7621b67f701a16df98585.zip
hardware_tinyalsa-audio-e406ad3ccadaa45aa3f7621b67f701a16df98585.tar.gz
hardware_tinyalsa-audio-e406ad3ccadaa45aa3f7621b67f701a16df98585.tar.bz2
Set the device API version to AUDIO_DEVICE_API_VERSION_2_0 instead of current.
This fixes a boot crash.
-rw-r--r--audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio_hw.c b/audio_hw.c
index 0a7afa0..ce1509f 100644
--- a/audio_hw.c
+++ b/audio_hw.c
@@ -411,7 +411,7 @@ int audio_hw_open(const hw_module_t *module, const char *name,
dev = &(tinyalsa_audio_device->device);
dev->common.tag = HARDWARE_DEVICE_TAG;
- dev->common.version = AUDIO_DEVICE_API_VERSION_CURRENT;
+ dev->common.version = AUDIO_DEVICE_API_VERSION_2_0;
dev->common.module = (struct hw_module_t *) module;
dev->common.close = audio_hw_close;