微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 硬件电路设计 > TI模拟硬件电路设计 > 关于TLV320AIC3106 声卡驱动

关于TLV320AIC3106 声卡驱动

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

Dear:

     我司产品板采用TLV320AIC3106,操作系统:Linux3.0.35,主控:Freescale的IMX6Q,遇到声卡注册问题,如log红色部分

初步怀疑tlv320aic3x.c驱动有问题,请高手分析,谢谢

U-Boot 2009.08 ( 6月 14 2013 - 14:35:23)

CPU: Freescale i.MX6 family TO1.2 at 792 MHz
Thermal sensor with ratio = 187
Temperature:   23 C, calibration data 0x59f4ff7d
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock     : 66000000Hz
ipg per clock : 66000000Hz
uart clock    : 80000000Hz
cspi clock    : 60000000Hz
ahb clock     : 132000000Hz
axi clock   : 264000000Hz
emi_slow clock: 132000000Hz
ddr clock     : 528000000Hz
usdhc1 clock  : 198000000Hz
usdhc2 clock  : 198000000Hz
usdhc3 clock  : 198000000Hz
usdhc4 clock  : 198000000Hz
nfc clock     : 24000000Hz
Board: i.MX6Q-SABREAUTO: unknown-board Board: 0x63012 [POR]
Boot Device: NOR
I2C:   ready
DRAM:  512 MB
Flash: 64 MB
MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3
In:    serial
Out:   serial
Err:   serial
Found PFUZE100! deviceid=10,revid=12
VGEN6 reg val=1c*****
Net:   got MAC address from IIM: 00:00:00:00:00:00
FEC0
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 10800000 ...
   Image Name:   Linux-3.0.35-2508-g54750ff
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2567264 Bytes =  2.4 MB
   Load Address: 10008000
   Entry Point:  10008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.0.35-2508-g54750ff (jyguo@ubuntu) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #308 SMP PREEMPT Tue Jun 25 16:23:37 CST 2013
[    0.000000] CPU identified as i.MX6Q, silicon rev 1.2
[    0.000000] PERCPU: Embedded 7 pages/cpu @8bc06000 s5376 r8192 d15104 u32768
[    0.000000] Kernel command line: root=/dev/mtdblock3 rootfstype=jffs2 rw console=ttymxc3,115200n8
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 511MB = 511MB total
[    0.000000] Memory: 509780k/509780k available, 14508k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     DMA     : 0xf4600000 - 0xffe00000   ( 184 MB)
[    0.000000]     vmalloc : 0xa0800000 - 0xf2000000   (1304 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .init : 0x80008000 - 0x80030000   ( 160 kB)
[    0.000000]       .text : 0x80030000 - 0x8081465c   (8082 kB)
[    0.000000]       .data : 0x80816000 - 0x80864c20   ( 316 kB)
[    0.000000]        .bss : 0x80864c44 - 0x808a149c   ( 243 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:624
[    0.000000] MXC GPIO hardware
[    0.000000] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms
[    0.000000] arm_max_freq=1GHz
[    0.000000] MXC_Early serial console at MMIO 0x21f0000 (options '115200n8')
[    0.000000] bootconsole [ttymxc3] enabled
[    0.000000] Console: colour dummy device 80x30
[    0.182729] Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280)
[    0.271059] pid_max: default: 32768 minimum: 301
[    0.276005] Mount-cache hash table entries: 512
[    0.281328] CPU: Testing write buffer coherency: ok
[    0.286495] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    0.586532] Brought up 4 CPUs
[    0.589518] SMP: Total of 4 processors activated (6324.22 BogoMIPS).
[    0.613870] print_constraints: dummy:
[    0.617880] NET: Registered protocol family 16
[    0.626213] print_constraints: vddpu: 725 <--> 1300 mV at 700 mV fast normal
[    0.633695] print_constraints: vddcore: 725 <--> 1300 mV at 1150 mV fast normal
[    0.641437] print_constraints: vddsoc: 725 <--> 1300 mV at 1200 mV fast normal
[    0.649125] print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal
[    0.656872] print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal
[    0.664522] print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal
[    0.729191] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.736004] hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step.
[    0.743369] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.749272] L310 cache controller enabled
[    0.753301] l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B
[    0.774936] bio: create slab <bio-0> at 0
[    0.782033] mxs-dma mxs-dma-apbh: initialized
[    0.786717] print_constraints: vmmc: 3300 mV
[    0.792493] usbcore: registered new interface driver usbfs
[    0.798149] usbcore: registered new interface driver hub
[    0.803621] usbcore: registered new device driver usb
[    0.808701] Freescale USB OTG Driver loaded, $Revision: 1.55 $
[    0.816522] mc_pfuze 1-0008: ID: 0,Full lay: 1 ,Metal lay: 2
[    0.822703] mc_pfuze 1-0008: FAB: 0 ,FIN: 0
[    0.836677] print_constraints: PFUZE100_SW1A: 300 <--> 1875 mV at 1375 mV
[    0.844299] print_constraints: PFUZE100_SW1B: 300 <--> 1875 mV at 300 mV
[    0.852688] print_constraints: PFUZE100_SW1C: 300 <--> 1875 mV at 1375 mV
[    0.860292] print_constraints: PFUZE100_SW2: 800 <--> 3950 mV at 3000 mV
[    0.867824] print_constraints: PFUZE100_SW3A: 400 <--> 1975 mV at 1500 mV
[    0.875424] print_constraints: PFUZE100_SW3B: 400 <--> 1975 mV at 1500 mV
[    0.883027] print_constraints: PFUZE100_SW4: 800 <--> 3950 mV at 3300 mV
[    0.890556] print_constraints: PFUZE100_SWBST: 5000 <--> 5150 mV at 5000 mV
[    0.898356] print_constraints: PFUZE100_VSNVS: 1200 <--> 3000 mV at 1800 mV
[    0.906501] print_constraints: PFUZE100_VREFDDR: at 750 mV
[    0.912777] print_constraints: PFUZE100_VGEN1: 800 <--> 1550 mV at 800 mV
[    0.920393] print_constraints: PFUZE100_VGEN2: 800 <--> 1550 mV at 1500 mV
[    0.928953] print_constraints: PFUZE100_VGEN3: 1800 <--> 3300 mV at 3300 mV
[    0.937591] print_constraints: PFUZE100_VGEN4: 1800 <--> 3300 mV at 1800 mV
[    0.946241] print_constraints: PFUZE100_VGEN5: 1800 <--> 3300 mV at 3300 mV
[    0.954907] print_constraints: PFUZE100_VGEN6: 1800 <--> 3300 mV at 3000 mV
[    0.962516] MIPI CSI2 driver module loaded
[    0.966845] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.974115] i2c-core: driver [max17135] using legacy suspend method
[    0.980416] i2c-core: driver [max17135] using legacy resume method
[    0.986639] Switching to clocksource mxc_timer1
[    1.004682] Static Power Management for Freescale i.MX6
[    1.009928] wait mode is enabled for i.MX6
[    1.014225] cpaddr = a0880000 suspend_iram_base=a0864000
[    1.019635] PM driver module loaded
[    1.023380] IMX usb wakeup probe
[    1.027053] add wake up source irq 75
[    1.034312] IMX usb wakeup probe
[    1.037828] cpu regulator mode:ldo_enable
[    1.042123] i.MXC CPU frequency driver
[    1.063198] JFFS2 version 2.2. © 2001-2006 Red Hat, Inc.
[    1.069339] msgmni has been set to 995
[    1.074569] alg: No test for stdrng (krng)
[    1.078822] io scheduler noop registered
[    1.082778] io scheduler deadline registered
[    1.087122] io scheduler cfq registered (default)
[    1.092652] MIPI DSI driver module loaded
[    1.097408] imx-sdma imx-sdma: loaded firmware 1.1
[    1.106640] imx-sdma imx-sdma: initialized
[    1.237462] Serial: IMX driver
[    1.240639] imx-uart.3: ttymxc3 at MMIO 0x21f0000 (irq = 61) is a IMX
[    1.247144] console [ttymxc3] enabled, bootconsole disabled
[    1.247144] console [ttymxc3] enabled, bootconsole disabled
[    1.258695] imx-uart.1: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX
[    1.270706] loop: module loaded
[    1.274723] physmap platform flash device: 04000000 at 08000000
[    1.281961] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002301
[    1.292255] Amd/Fujitsu Extended Query Table at 0x0040
[    1.297405]   Amd/Fujitsu Extended Query version 1.5.
[    1.302481] number of CFI chips: 1
[    1.306150] Using physmap partition information
[    1.310686] Creating 7 MTD partitions on "physmap-flash.0":
[    1.316280] 0x000000000000-0x000000040000 : "bootloader"
[    1.322776] 0x000000040000-0x000000080000 : "bootenv"
[    1.328779] 0x000000080000-0x000000480000 : "kernel"
[    1.334722] 0x000000480000-0x000001080000 : "rootfs"
[    1.340662] 0x000001080000-0x000001a80000 : "TTS"
[    1.346345] 0x000001a80000-0x000003a80000 : "AiTalk"
[    1.352287] 0x000003a80000-0x000004000000 : "APP"
[    1.358175] GPMI NAND driver registered. (IMX)
[    1.363028] FEC Ethernet Driver
[    1.366297] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.372988] fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
[    1.379625] fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
[    1.411247] fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000
[    1.431241] fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
[    1.437387] hub 1-0:1.0: USB hub found
[    1.441154] hub 1-0:1.0: 1 port detected
[    1.445263] add wake up source irq 72
[    1.448964] fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller
[    1.455609] fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2
[    1.491250] fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200
[    1.511238] fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00
[    1.517371] hub 2-0:1.0: USB hub found
[    1.521136] hub 2-0:1.0: 1 port detected
[    1.525284] ARC USBOTG Device Controller driver (1 August 2005)
[    1.532264] snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0
[    1.538922] i2c /dev entries driver
[    1.542823] Linux video capture interface: v2.00
[    1.548051] imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1)
[    1.557311] mxc_asrc registered
[    1.575393] usbcore: registered new interface driver usbhid
[    1.580973] usbhid: USB HID core driver
[    1.585227] usbcore: registered new interface driver snd-usb-audio
[    1.591677] snd_soc_instantiate_cards*******
[    1.596158] TI TLV320AIC3106 ALSA SoC Codec Driver
[    1.600987] snd_soc_instantiate_cards*******
[    1.605273] snd_soc_instantiate_cards*******
[    1.609717] snd_soc_instantiate_cards*******
[    1.614679] snd_soc_instantiate_cards*******
[    1.619151] imx_asoc_init ********
[    1.622600] imx_tlv320aic3x_probe ********
[    1.626715] sysclk is 24576000*******
[    1.630672] snd_soc_register_card*******
[    1.634613] snd_soc_instantiate_cards*******
[    1.638886]  rtd->codec sucess ***
[    1.642299]  rtd->codec_dai sucess ***
[    1.646049]  rtd->platform sucess ***
[    1.649714]  rtd->cpu_dai sucess ***
[    1.653298] 10*****
[    1.655473] tlv320aic3x 1-0018: Failed to get supply 'IOVDD': -19
[    1.661587] tlv320aic3x 1-0018: Failed to request supplies: -19
[    1.667513] tlv320aic3x 1-0018: asoc: failed to probe CODEC tlv320aic3x.1-0018: -19
[    1.675222] asoc: failed to instantiate card tlv320aic3x-audio: -19
[    1.681517] ALSA device list:
[    1.684487]   No soundcards found.
[    1.687890] lib80211: common routines for IEEE802.11 drivers
[    1.693581] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    1.701567] Bus freq driver module loaded
[    1.705583] Bus freq driver Enabled
[    1.711044] mxc_dvfs_core_probe
[    1.714384] DVFS driver module loaded
[    1.719432] regulator_init_complete: PFUZE100_VGEN2: incomplete constraints, leaving on
[    1.727961] regulator_init_complete: vmmc: incomplete constraints, leaving on
[    1.735184] snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 00:00:00 UTC (0)
[    2.158978] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    2.165055] Freeing init memory: 160K
Setting hotplug handler: [ OK ]
Creating device files: [ OK ]
Setting timezone and system clock: [OK]
Starting system logging.
Configuring network interfaces: ifdown: interface lo not configured
ip: can't find device 'lo'
ip: socket: Address family not supported by protocol
failed
Starting dropbear sshd: OK
/ #

很明显,是你没注册成功

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

网站地图

Top