Цитата(b_a @ Jan 29 2008, 10:02)

соединяю модуль WT12 BlueGiga (BlueCore4) с bluethooth-гарнитурой
Проблема в следующем: кодек работает по mu- или a-low. а wt12 по умолчанию настроен на 13-bit linear
PSKEY_PCM_CONFIG32 я соответственно изменил, но звук всё равно отвратный
может кто сталкивался с такой проблемой?
у чипа есть PSKEY_PCM_FORMAT но нигде не описан
заранее спасибо ответившим
Вам нужен обычный линейный PCM-кодек, сжатие SCO данных производится аппаратно в BlueCore, для Handfree и Headset профилей, обязательным является формат сжатия CVSD. Подключал к PCM внешние кодеки, работают отлично. Например, как на ките Casira, MC145483DW.
Описание ключа PSKEY_PCM_FORMAT
The data format used to send SCO data over the PCM port. The format is
the same as for HCI_Write_Voice_Setting. The bottom two bits of this
key (air format) are always ignored and should be set to zero. The air
format specified with HCI_Write_Voice_Setting will be used instead.
The Bluetooth HCI spec mandates that devices boot up with 16 bit
linear data format, unfortunately many PCM codecs do not expect this
format so this key allows the HCI format to be overridden so that
manufacturers can set it correctly for the hardware and application
authors do not need to know the correct format.
If this key is set to the magic value 0xffff then the format specified
with HCI_Write_Voice_Settings will be used and hence the PCM format
can be changed dynamically (this is almost never what you want).
On BlueCore2 all PCM streams get the same format.
On devices with an internal codec, if SCO data is routed to the
internal codec then this key will be ignored and the correct value for
the internal codec will be used.