本帖最后由 一只耳朵怪 于 2018-6-21 15:25 编辑
各位好,
我们自己做的板子,tlv320aic3106,
电路与SK板子一样,也是用mcasp1和i2c0,能够找到设备
[ 1.538127] _regulator_get: 1-001b supply IOVDD not found, using dummy regulr
[ 1.545952] _regulator_get: 1-001b supply DVDD not found, using dummy regular
[ 1.553637] _regulator_get: 1-001b supply AVDD not found, using dummy regular
[ 1.561324] _regulator_get: 1-001b supply DRVDD not found, using dummy regulr
[ 1.598634] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
[ 1.606207] ALSA device list:
[ 1.609321] #0: AM335X EVM
这是配置,没有改动
board-am335xevm.c:
sta
tic void mcasp1_init(int evm_id, int profile)
[
/* Configure McASP */
setup_pin_mux(mcasp1_pin_mux);
am335x_register_mcasp(&am335x_evm_sk_snd_data1, 1);
return;
]
static struct pinmux_config mcasp1_pin_mux[] = [
["mii1_crs.mcasp1_aclkx", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN],
["mii1_rxerr.mcasp1_fsx", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN],
["mii1_col.mcasp1_axr2", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN],
["rmii1_refclk.mcasp1_axr3", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN],
[NULL, 0],
];
static u8 am335x_evm_sk_iis_serializer_direction1[] = [
INACTIVE_MODE, INACTIVE_MODE, TX_MODE, INACTIVE_MODE,
INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
];
static struct snd_platform_data am335x_evm_sk_snd_data1 = [
.tx_dma_offset = 0x46400000, /* McASP1 */
.op_mode = DAVINCI_MCASP_IIS_MODE,
.num_serializer = ARRAY_SIZE(am335x_evm_sk_iis_serializer_direction1),
.tdm_slots = 2,
.serial_dir = am335x_evm_sk_iis_serializer_direction1,
.asp_chan_q = EVENTQ_2,
.version = MCASP_VERSION_3,
.txnumevt = 32,
.get_context_loss_count = omap_pm_get_dev_context_loss_count,
];
[
I2C_BOARD_INFO("tlv320aic3x", 0x1b),
],
davinci-evm.c:
static struct snd_soc_dai_link am335x_evm_sk_dai = [
.name = "TLV320AIC3X",
.stream_name = "AIC3X",
.cpu_dai_name = "davinci-mcasp.1",
.codec_dai_name = "tlv320aic3x-hifi",
.codec_name = "tlv320aic3x-codec.1-001b",
.platform_name = "davinci-pcm-audio",
.init = evm_aic3x_init,
.ops = &evm_ops,
];
# aplay Noise.wav
Playing WAVE 'audiodump.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
播放wav文件的时候没有声音,但是添加的打印信息也没有报错,用示波器看到MCLK为24MHz,WCLK为48KHz,BCLK为1.5395MHz,耳机输出口有电平变化,但是没有波形,是不是没有输出啊?请大家指点一下