projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e84bd27
)
handsfree-audio: Don't register if no defer_setup
author
Vinicius Costa Gomes
<vcgomes@gmail.com>
Wed, 11 Sep 2013 00:09:43 +0000
(21:09 -0300)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 12 Sep 2013 18:17:40 +0000
(13:17 -0500)
If the kernel doesn't support defer_setup for SCO, we shouldn't allow
cards to be registered, because in that case we won't be able to
properly send the file descriptor to the Agent.
src/handsfree-audio.c
patch
|
blob
|
history
diff --git
a/src/handsfree-audio.c
b/src/handsfree-audio.c
index
e1894ef
..
f39c49b
100644
(file)
--- a/
src/handsfree-audio.c
+++ b/
src/handsfree-audio.c
@@
-816,6
+816,9
@@
int ofono_handsfree_card_driver_register(
{
DBG("driver: %p", d);
+ if (defer_setup == 0)
+ return -ENOSYS;
+
if (d->probe == NULL)
return -EINVAL;