A2dpSrc: Update optionalcodecsupport on codecconfig change event.(1/2)
When remote does setconfig on sbc during connection, A2dp SM is
calling updateOptionalCodecsSupport and updating as, there is no
optional codec supported by remote, although remote supports other
optional codecs. After reconfig(due to Source device codec priority
is different than the remotes codec), although codec selected as
Aptx, still there is no update to frameworks that optional codec
has been supported.
So this fix would take care, whenever codecconfig change callback
comes from stack, it would check whether previous and current codec
is different, then upadte frameworks by calling API
updateOptionalCodecsSupport(), so that it would show, in subsettings
optional codec support is there.
CRs-Fixed: 2464751
Change-Id: I5b44e1139765cd390e58694429cf6605f4a781ee
2 files changed