diff options
-rw-r--r-- | audio/headset.c | 7 | ||||
-rw-r--r-- | audio/headset.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index 8a578aaf..ceda2ae3 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -2484,6 +2484,13 @@ int headset_get_sco_fd(struct audio_device *dev) return g_io_channel_unix_get_fd(hs->sco); } +gboolean headset_get_nrec(struct audio_device *dev) +{ + struct headset *hs = dev->headset; + + return hs->nrec; +} + int telephony_event_ind(int index) { if (!active_devices) diff --git a/audio/headset.h b/audio/headset.h index c7b00e02..aaf8146a 100644 --- a/audio/headset.h +++ b/audio/headset.h @@ -79,6 +79,7 @@ void headset_set_state(struct audio_device *dev, headset_state_t state); int headset_get_channel(struct audio_device *dev); int headset_get_sco_fd(struct audio_device *dev); +gboolean headset_get_nrec(struct audio_device *dev); gboolean headset_is_active(struct audio_device *dev); |