summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-12-10 17:14:46 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-10 17:14:46 +0200
commit972fc8cc7181e503f90dcfae53d35602a562afa2 (patch)
tree0f94e36bbdb75bfd0399725dedc2c1df936563eb /audio/headset.c
parent2d4fde8e79a6889200227ec12eeb10c69893c9d7 (diff)
Fix AT+NREC API
Remove disable from the function names since there now is the boolean "enable" parameter.
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/headset.c b/audio/headset.c
index a5701018..8a578aaf 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -1009,7 +1009,7 @@ int telephony_call_hold_rsp(void *telephony_device, cme_error_t err)
return telephony_generic_rsp(telephony_device, err);
}
-int telephony_disable_nr_and_ec_rsp(void *telephony_device, cme_error_t err)
+int telephony_nr_and_ec_rsp(void *telephony_device, cme_error_t err)
{
struct audio_device *device = telephony_device;
struct headset *hs = device->headset;
@@ -1050,7 +1050,7 @@ static int operator_selection(struct audio_device *device, const char *buf)
return 0;
}
-static int disable_nr_and_ec(struct audio_device *device, const char *buf)
+static int nr_and_ec(struct audio_device *device, const char *buf)
{
struct headset *hs = device->headset;
@@ -1062,7 +1062,7 @@ static int disable_nr_and_ec(struct audio_device *device, const char *buf)
else
hs->nrec_req = TRUE;
- telephony_disable_nr_and_ec_req(device, hs->nrec_req);
+ telephony_nr_and_ec_req(device, hs->nrec_req);
return 0;
}
@@ -1086,7 +1086,7 @@ static struct event event_callbacks[] = {
{ "AT+CMEE", extended_errors },
{ "AT+CCWA", call_waiting_notify },
{ "AT+COPS", operator_selection },
- { "AT+NREC", disable_nr_and_ec },
+ { "AT+NREC", nr_and_ec },
{ 0 }
};