From 7574479e475b9ad6205a289fbf2c24e329b03048 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 15 Apr 2013 10:54:48 -0300 Subject: [PATCH] include: Add ofono_handsfree_card_set_codec() This will be used by the drivers that a given codec was negotiated for a card. It will return FALSE if the codec can't be used. For example, if the selected codec is mSBC and defer setup is not supported by the kernel. --- include/handsfree-audio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/handsfree-audio.h b/include/handsfree-audio.h index 82d13128..53e8ab1d 100644 --- a/include/handsfree-audio.h +++ b/include/handsfree-audio.h @@ -48,6 +48,8 @@ struct ofono_handsfree_card *ofono_handsfree_card_create(unsigned int vendor, void *data); int ofono_handsfree_card_register(struct ofono_handsfree_card *card); void ofono_handsfree_card_remove(struct ofono_handsfree_card *card); +ofono_bool_t ofono_handsfree_card_set_codec(struct ofono_handsfree_card *card, + unsigned char codec); ofono_bool_t ofono_handsfree_audio_has_wideband(void);