summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c33
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;
+}