From 559e6476a17f8bfaff7ad79e0bfc04a87edc044b Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 4 Dec 2008 14:13:06 +0200 Subject: Clean up AT+NREC behavior and API In HFP 1.5 only AT+NREC=0 should be possible, but to accomodate for future profile changes make the telephony.h API such that AT+NREC=1 is possible without breaking the API. --- audio/telephony-dummy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'audio/telephony-dummy.c') diff --git a/audio/telephony-dummy.c b/audio/telephony-dummy.c index 780d715d..9c13e91d 100644 --- a/audio/telephony-dummy.c +++ b/audio/telephony-dummy.c @@ -197,9 +197,11 @@ void telephony_call_hold_req(void *telephony_device, const char *cmd) telephony_call_hold_rsp(telephony_device, CME_ERROR_NONE); } -void telephony_disable_nr_and_ec_req(void *telephony_device) +void telephony_disable_nr_and_ec_req(void *telephony_device, gboolean enable) { - debug("telephony-dummy: got disable NR and EC request"); + debug("telephony-dummy: got %s NR and EC request", + enable ? "enable" : "disable"); + telephony_disable_nr_and_ec_rsp(telephony_device, CME_ERROR_NONE); } -- cgit