diff options
Diffstat (limited to 'audio/headset.c')
-rw-r--r-- | audio/headset.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index 87d0ee7b..4683c356 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -1877,6 +1877,18 @@ int headset_connect_rfcomm(struct audio_device *dev, GIOChannel *io) return hs->tmp_rfcomm ? 0 : -EINVAL; } +int headset_connect_sco(struct audio_device *dev, GIOChannel *io) +{ + struct headset *hs = dev->headset; + + if (hs->sco) + return -EISCONN; + + hs->sco = io; + + return 0; +} + int headset_close_rfcomm(struct audio_device *dev) { struct headset *hs = dev->headset; |