commit | 5806b3533437e3d83208e8e9d6bd74ed304e51ec | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Thu May 22 12:23:26 2014 -0700 |
committer | Eric Laurent <elaurent@google.com> | Thu May 22 14:08:15 2014 -0700 |
tree | cc9613e8ac7b52dac124f078497227881329de8e | |
parent | ce8ae0f62a01cb3a390812db47bb08f29a8aee0d [diff] |
audioflinger: test min HAL version instead of current Change-Id: Ibce2353b4390329b4c1a453e829178e3986c25a7
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index 13514fc..68fa553 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp
@@ -143,7 +143,7 @@ if (rc) { goto out; } - if ((*dev)->common.version != AUDIO_DEVICE_API_VERSION_CURRENT) { + if ((*dev)->common.version < AUDIO_DEVICE_API_VERSION_MIN) { ALOGE("%s wrong audio hw device version %04x", __func__, (*dev)->common.version); rc = BAD_VALUE; goto out;