主题中讨论的其他器件:PCM1864、 TIDEP-0077
工具/软件:TI-RTOS
大家好、
我的代码库是 TMS320C55XXCSL-LOWPWR-03.07.00.01、使用 C5517 EVM + PCM1864 CMB。
已尝试修改 codec_pcm186x.h (C:\ti\c55_CSL_3.07\demos\audio-preprocessing\c5517)以支持6通道麦克风。 重建和重新刷新后、只有2通道麦克风工作。
我还更改了 NUM_OF_MICs 定义、以支持使用相对配置的2CH 和4CH。 请在此处提供更多建议吗? 提前感谢。
===================================
#ifndef _codec_PCM186x_H_
#define _CODE_PCM186x_H_
//包括分析代码
//#define profile_cycles
//仅回送
#define loopback_only
//使用的多指标类集调查数量
//#define NUM_OF_MICs 2.
//#define NUM_OF_MICs 4.
#define NUM_OF_MICs 6.
//输出通道数
#define NUM_OF_OUTPUT 通道2.
//以 dB 为单位的 MICR 增益(0dB 至32dB)
#define MIC_GAIN_DB 32.
#if NUM_OF_MICS==4
//使用 I2S 3从 CMB 获取 mic3和 mic4
#define INSTANCE3_I2S
#endif
#if NUM_OF_MICS=6
//使用 I2S 3从 CMB 获取 mic3和 mic4
#define INSTANCE3_I2S
//使用 I2S 0从 CMB 获取 MIC5和 MIC6
#define INSTANCE0_I2S
#endif
#include "tidtypes.h"
#include "cslr_gpio.h"
#include "cSL_i2c.h"
#include "cSL_gpio.h"
CSL_Status PCM186X_init (uint16 sampRateRec、uint32 i2cInClk);
CSL_Status PCM186x_Write (UINT16 regAddr、UINT16 regData、pI2cHandle hi2c);
CSL_Status PCM186x_write2 (uint16 regAddr、uint16 regData、pI2cHandle hi2c);
CSL_Status PCM186x_read (uint16 regAddr、uint16 *数据、pI2cHandle hi2c);
#endif /*_codec_PCM186x_H_*
===================================
B.R.
OC