bluetooth: detect when bitpool has changed on sbc codec
commite4979ab5cff84ef64c88bba3a1b6b4c5e02f7777
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Thu, 23 Dec 2010 11:13:28 +0000 (23 13:13 +0200)
committerLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Thu, 23 Dec 2010 11:16:43 +0000 (23 13:16 +0200)
tree41a71dde48f5b64213550248b391666248f741b1
parent96338eec28ce9af97965a177eeecd6daebd208f5
bluetooth: detect when bitpool has changed on sbc codec

A2DP spec allow bitpool changes midstream which is why sbc configuration
has a range of values for bitpool that the encoder can use and decoder
must support.

Bitpool changes do not affect the state of encoder/decoder so they don't
need to be reinitialize when this happens, so the impact is fairly small,
what it does change is the frame length so encoders may change the
bitpool to use the link more efficiently.
src/modules/bluetooth/sbc.c