Lines Matching refs:codec
531 memcpy(&setconf_req->codec, &data->sbc_capabilities, in bluetooth_a2dp_hw_params()
534 setconf_req->codec.transport = BT_CAPABILITIES_TRANSPORT_A2DP; in bluetooth_a2dp_hw_params()
535 setconf_req->codec.length = sizeof(data->sbc_capabilities); in bluetooth_a2dp_hw_params()
536 setconf_req->h.length += setconf_req->codec.length - sizeof(setconf_req->codec); in bluetooth_a2dp_hw_params()
853 codec_capabilities_t *codec = (void *) rsp->data; in bluetooth_parse_capabilities() local
855 if (codec->transport != BT_CAPABILITIES_TRANSPORT_A2DP) in bluetooth_parse_capabilities()
859 if ((codec->type == BT_A2DP_SBC_SINK) && in bluetooth_parse_capabilities()
860 !(codec->lock & BT_WRITE_LOCK)) in bluetooth_parse_capabilities()
863 if (codec->length == 0) { in bluetooth_parse_capabilities()
867 bytes_left -= codec->length; in bluetooth_parse_capabilities()
868 codec = (codec_capabilities_t *)((char *)codec + codec->length); in bluetooth_parse_capabilities()
872 codec->length != sizeof(data->sbc_capabilities)) in bluetooth_parse_capabilities()
875 memcpy(&data->sbc_capabilities, codec, codec->length); in bluetooth_parse_capabilities()