summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-12-15 11:11:23 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-15 18:07:39 +0200
commit3f7c130fd94b4509efbc067e18230ad0ab07f6a7 (patch)
treed2461b7e5e0faca984b60ec3bea63a59f5924e0b /audio
parentfe5de84c0db9e7108000fe1b7a7136528b8f27d9 (diff)
Introduce headset_get_nrec.
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c7
-rw-r--r--audio/headset.h1
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);