Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7513

cc2564 A3DPDemo_SNK

$
0
0

Hi TI

在 A3DPDemo_SNK.c中函数ReconfigureA3DPStream中有这么一段程序:

/* Determine the incoming SBC frequency. The PCM frequency is */
/* calculated via fsync * 80 / 1000.

switch(Format->SampleFrequency)
{
case 44100:
AudioFormat |= (AVRP_AUDIO_FORMAT_SBC_SAMPLE_RATE_44K1 | AVRP_AUDIO_FORMAT_PCM_SAMPLE_RATE_44K1);
PCMFreq = 3528;
break;
case 48000:
AudioFormat |= (AVRP_AUDIO_FORMAT_SBC_SAMPLE_RATE_48K | AVRP_AUDIO_FORMAT_PCM_SAMPLE_RATE_48K);
PCMFreq = 3840;
break;
default:
ret_val = BTPS_ERROR_INVALID_PARAMETER;
break;
}

/* Only proceed if the sample rate is valid. */
if(!ret_val)
{
/* Set up the PCM clock with a 3.087MHz BCLK and with FSYNC for */
/* whatever was passed in by AUD. */
if((ret_val = VS_PCM_Codec_Config(BluetoothStackID, PCMFreq, Format->SampleFrequency)) != 0)
DisplayFunctionError("VS_PCM_Codec_Config()", ret_val);

1)PCMFreq  = fsync * 80 / 1000是什么意思?

2)在我的理解bclk = 采样频率(44.1KHZ)x 16 x 2 = 1.4112Mhz 而我在SINK的demo板上测量到的Bclk是3.706Mhz左右,不知道为什么,谢谢啦


Viewing all articles
Browse latest Browse all 7513

Trending Articles