diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-16 15:42:10 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-16 15:42:10 +0000 |
commit | cdd9e2e17ad674e5fc1a5ed19643880ef61d28c7 (patch) | |
tree | 5292da714c803e54ad8e199f3a06d6db9d9d42f2 /audio/headset.c | |
parent | 3863eba35ca65bb4ea17d3763ae27afafdf0f4c2 (diff) |
Rework interfacing with the avdtp state machine
Diffstat (limited to 'audio/headset.c')
-rw-r--r-- | audio/headset.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index b0e67ba2..056f9e18 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -100,6 +100,8 @@ struct headset { int sp_gain; int mic_gain; + + gboolean locked; }; static int rfcomm_connect(struct device *device, struct pending_connect *c); @@ -1570,3 +1572,34 @@ gboolean headset_is_active(struct device *dev) return FALSE; } + +gboolean headset_lock(struct device *dev, void *data) +{ + struct headset *hs = dev->headset; + + if (hs->locked) + return FALSE; + + hs->locked = TRUE; + + return TRUE; +} + +gboolean headset_unlock(struct device *dev, void *data) +{ + struct headset *hs = dev->headset; + + hs->locked = FALSE; + + return TRUE; +} + +gboolean headset_suspend(struct device *dev, void *data) +{ + return TRUE; +} + +gboolean headset_play(struct device *dev, void *data) +{ + return TRUE; +} |