include: Add ofono_handsfree_card_set_codec()
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Mon, 15 Apr 2013 13:54:48 +0000 (10:54 -0300)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 15 Apr 2013 11:57:21 +0000 (06:57 -0500)
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

index 82d13128c05191d458ce91dcd252175f65ee8924..53e8ab1d4847ea48a1ccfd6984023b0705441f31 100644 (file)
@@ -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);