微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 硬件电路设计 > TI模拟硬件电路设计 > TLV320AIC3104音频问题,求大神

TLV320AIC3104音频问题,求大神

时间:10-02 整理:3721RD 点击:

板子启动后会有如下提示:

4] mousedev: PS/2 mouse device common for all mice
[ 3.782724] i2c /dev entries driver
[ 3.791958] Linux video capture interface: v2.00
[ 3.802012] usbcore: registered new interface driver uvcvideo
[ 3.808002] USB Video Class driver (1.1.1)
[ 3.822635] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 3.852504] cpuidle: using governor ladder
[ 3.871818] cpuidle: using governor menu
[ 3.933052] usbcore: registered new interface driver usbhid
[ 3.938906] usbhid: USB HID core driver
[ 4.972292] omap_i2c omap_i2c.3: controller timed out
[ 4.977624] _regulator_get: 3-0018 supply IOVDD not found, using dummy regulator
[ 4.985447] _regulator_get: 3-0018 supply DVDD not found, using dummy regulator
[ 4.993118] _regulator_get: 3-0018 supply AVDD not found, using dummy regulator
[ 5.000776] _regulator_get: 3-0018 supply DRVDD not found, using dummy regulator
[ 5.022593] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
[ 6.021463] omap_i2c omap_i2c.3: controller timed out
[ 7.021437] omap_i2c omap_i2c.3: controller timed out
[ 8.041440] omap_i2c omap_i2c.3: controller timed out
[ 9.061590] omap_i2c omap_i2c.3: controller timed out
[ 10.081524] omap_i2c omap_i2c.3: controller timed out
[ 11.101885] omap_i2c omap_i2c.3: controller timed out
[ 12.121259] omap_i2c omap_i2c.3: controller timed out
[ 13.141829] omap_i2c omap_i2c.3: controller timed out
[ 14.161781] omap_i2c omap_i2c.3: controller timed out
[ 15.181814] omap_i2c omap_i2c.3: controller timed out
[ 16.201772] omap_i2c omap_i2c.3: controller timed out
[ 17.221801] omap_i2c omap_i2c.3: controller timed out
[ 18.241422] omap_i2c omap_i2c.3: controller timed out
[ 19.261548] omap_i2c omap_i2c.3: controller timed out
[ 20.281518] omap_i2c omap_i2c.3: controller timed out
[ 21.301636] omap_i2c omap_i2c.3: controller timed out
[ 22.321600] omap_i2c omap_i2c.3: controller timed out
[ 23.341598] omap_i2c omap_i2c.3: controller timed out
[ 24.361343] omap_i2c omap_i2c.3: controller timed out
[ 25.381614] omap_i2c omap_i2c.3: controller timed out
[ 26.401633] omap_i2c omap_i2c.3: controller timed out
[ 27.421571] omap_i2c omap_i2c.3: controller timed out
[ 28.441565] omap_i2c omap_i2c.3: controller timed out
[ 29.461984] omap_i2c omap_i2c.3: controller timed out
[ 30.481473] omap_i2c omap_i2c.3: controller timed out
[ 31.501733] omap_i2c omap_i2c.3: controller timed out
[ 32.521750] omap_i2c omap_i2c.3: controller timed out
[ 33.541741] omap_i2c omap_i2c.3: controller timed out
[ 34.561734] omap_i2c omap_i2c.3: controller timed out
[ 35.581810] omap_i2c omap_i2c.3: controller timed out
[ 36.601537] omap_i2c omap_i2c.3: controller timed out
[ 37.621690] omap_i2c omap_i2c.3: controller timed out
[ 38.641704] omap_i2c omap_i2c.3: controller timed out
[ 39.661724] omap_i2c omap_i2c.3: controller timed out
[ 40.681720] omap_i2c omap_i2c.3: controller timed out
[ 41.701750] omap_i2c omap_i2c.3: controller timed out
[ 42.721566] omap_i2c omap_i2c.3: controller timed out
[ 43.741730] omap_i2c omap_i2c.3: controller timed out
[ 44.761751] omap_i2c omap_i2c.3: controller timed out
[ 45.781775] omap_i2c omap_i2c.3: controller timed out
[ 46.801769] omap_i2c omap_i2c.3: controller timed out
[ 47.821778] omap_i2c omap_i2c.3: controller timed out
[ 48.841634] omap_i2c omap_i2c.3: controller timed out
[ 49.861745] omap_i2c omap_i2c.3: controller timed out
[ 50.881766] omap_i2c omap_i2c.3: controller timed out
[ 51.901773] omap_i2c omap_i2c.3: controller timed out
[ 52.921766] omap_i2c omap_i2c.3: controller timed out
[ 53.941732] omap_i2c omap_i2c.3: controller timed out
[ 54.961622] omap_i2c omap_i2c.3: controller timed out
[ 55.981485] omap_i2c omap_i2c.3: controller timed out
[ 57.001508] omap_i2c omap_i2c.3: controller timed out
[ 58.021916] omap_i2c omap_i2c.3: controller timed out
[ 59.041936] omap_i2c omap_i2c.3: controller timed out
[ 60.061596] omap_i2c omap_i2c.3: controller timed out
[ 61.081608] omap_i2c omap_i2c.3: controller timed out
[ 62.101623] omap_i2c omap_i2c.3: controller timed out
[ 63.121638] omap_i2c omap_i2c.3: controller timed out
[ 64.141569] omap_i2c omap_i2c.3: controller timed out
[ 65.161590] omap_i2c omap_i2c.3: controller timed out
[ 66.181896] omap_i2c omap_i2c.3: controller timed out
[ 67.201827] omap_i2c omap_i2c.3: controller timed out
[ 68.221761] omap_i2c omap_i2c.3: controller timed out
[ 69.241781] omap_i2c omap_i2c.3: controller timed out
[ 70.261765] omap_i2c omap_i2c.3: controller timed out
[ 71.281784] omap_i2c omap_i2c.3: controller timed out
[ 72.301647] omap_i2c omap_i2c.3: controller timed out
[ 73.321517] omap_i2c omap_i2c.3: controller timed out
[ 74.341595] omap_i2c omap_i2c.3: controller timed out
[ 75.361589] omap_i2c omap_i2c.3: controller timed out
[ 76.381636] omap_i2c omap_i2c.3: controller timed out
[ 77.401603] omap_i2c omap_i2c.3: controller timed out
[ 78.421492] omap_i2c omap_i2c.3: controller timed out
[ 79.441511] omap_i2c omap_i2c.3: controller timed out
[ 80.461942] omap_i2c omap_i2c.3: controller timed out
[ 81.481929] omap_i2c omap_i2c.3: controller timed out
[ 82.501527] omap_i2c omap_i2c.3: controller timed out
[ 83.521498] omap_i2c omap_i2c.3: controller timed out
[ 84.541573] omap_i2c omap_i2c.3: controller timed out
[ 85.561568] omap_i2c omap_i2c.3: controller timed out
[ 86.581538] omap_i2c omap_i2c.3: controller timed out
[ 87.601890] omap_i2c omap_i2c.3: controller timed out
[ 88.621910] omap_i2c omap_i2c.3: controller timed out
[ 89.641713] omap_i2c omap_i2c.3: controller timed out
[ 90.661541] omap_i2c omap_i2c.3: controller timed out
[ 91.681544] omap_i2c omap_i2c.3: controller timed out
[ 92.701524] omap_i2c omap_i2c.3: controller timed out
[ 93.721789] omap_i2c omap_i2c.3: controller timed out
[ 94.741802] omap_i2c omap_i2c.3: controller timed out
[ 95.761763] omap_i2c omap_i2c.3: controller timed out
[ 96.781619] omap_i2c omap_i2c.3: controller timed out
[ 97.801888] omap_i2c omap_i2c.3: controller timed out
[ 98.821854] omap_i2c omap_i2c.3: controller timed out
[ 99.841745] omap_i2c omap_i2c.3: controller timed out
[ 100.861765] omap_i2c omap_i2c.3: controller timed out
[ 101.881773] omap_i2c omap_i2c.3: controller timed out
[ 102.901690] omap_i2c omap_i2c.3: controller timed out
[ 103.921621] omap_i2c omap_i2c.3: controller timed out
[ 104.941587] omap_i2c omap_i2c.3: controller timed out
[ 105.961618] omap_i2c omap_i2c.3: controller timed out
[ 106.981638] omap_i2c omap_i2c.3: controller timed out
[ 108.001594] omap_i2c omap_i2c.3: controller timed out
[ 108.023238] ALSA device list:
[ 108.026337] #0: AM335X EVM
[ 108.029334] oprofile: hardware counters not available
[ 108.034632] oprofile: using timer interrupt.
[ 108.039104] nf_conntrack version 0.5.0 (8011 buckets, 32044 max)
[ 108.045905] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 108.051593] TCP cubic registered
[ 108.054961] NET: Registered protocol family 17
[ 108.059599] can: controller area network core (rev 20090105 abi 8)
[ 108.066146] NET: Registered protocol family 29
[ 108.070801] can: raw protocol (rev 20090105)
[ 108.075266] can: broadcast manager protocol (rev 20090105 t)
[ 108.081200] Registering the dns_resolver key type
[ 108.086192] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 108.094200] ThumbEE CPU extension supported.
[ 108.098713] mux: Failed to setup hwmod io irq -22
[ 108.104305] Power Management for AM33XX family
[ 108.109151] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 108.115835] Copied the M3 firmware to UMEM
[ 108.120180] Cortex M3 Firmware Version = 0x181
[ 108.129961] clock: disabling unused clocks to save power

在/dev/snc/ 下有如下设备

root@ok335x:/dev/snd# ls
by-path controlC0 pcmC0D0c pcmC0D0p timer

运行aplay后如下

root@ok335x:~# aplay
^CAborted by signal Interrupt...
[ 549.451494] omap_i2c omap_i2c.3: controller timed out
[ 550.451481] omap_i2c omap_i2c.3: controller timed out

鄙人新手 ,求大神帮忙解决下。谢谢。

[ 4.972292] omap_i2c omap_i2c.3: controller timed out
[ 4.977624] _regulator_get: 3-0018 supply IOVDD not found, using dummy regulator

从字面意思看, 是 OMAP 芯片的 I2C 接口没有响应, 二下面有提到电源有问题.  你先查查你的板子的硬件吧

您好,我在内核里面配置了这两个地方如下所示,请问还要修改别的地方吗

修改文件:kernel-3.2\sound\soc\davinci\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.3-0018",
.platform_name = "davinci-pcm-audio",
.init = evm_aic3x_init,
.ops = &evm_ops,
};

将.codec_name = "tlv320aic3x-codec.2-001b",改成
.codec_name = "tlv320aic3x-codec.3-0018",

修改kernel-3.2/arch/arm/mach-omap2/board-arm335xevm.c
i2c设备地址是0x18

添加
static struct i2c_board_info am335x_i2c2_boardinfo3[] = {
{
I2C_BOARD_INFO("tlv320aic3x", 0x18),
},
};

i2c_init直接改成如下
static void i2c_init(int evm_id, int profile) alias fck already exists
{
setup_pin_mux(i2c1_pin_mux);

omap_register_i2c_bus(3, 100, am335x_i2c2_boardinfo3,ARRAY_SIZE(am335x_i2c2_boardinfo3));

return;
}

建议去MCU的窗口问。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top