This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm8148 TLV320AIC3106 mic in and line in record error!

Other Parts Discussed in Thread: TLV320AIC3106

Hi,Ti

I test the TLV320AIC3106(connects to the mcasp0 of dm8148) on my custom board.After modify the kernel(linux-2.6.37 from ezsdk-05.05),the line out is OK,but the mic in and line in do not work.Here are my modification:

Here are the step that I use the mic in to record:

amixer sset 'Right PGA Mixer Mic3L' on
amixer sset 'Right PGA Mixer Mic3R' on
amixer sset 'Left PGA Mixer Mic3L' on
amixer sset 'Left PGA Mixer Mic3R' on

amixer sset 'Right PGA Mixer Line1R' off
amixer sset 'Right PGA Mixer Line1L' off
amixer sset 'Left PGA Mixer Line1R' off
amixer sset 'Left PGA Mixer Line1L' off

#amixer cset name='PCM Playback Volume' 70%,70%
amixer cset name='PGA Capture Volume' 70%,70%

arecord -f cd -r 44100 -d 10 -c 2 mic-test.wav

BR,

vefone

  • Hi Vefone,

    Can you share full boot-up log (u-boot, kernel) till you get to the user space? You can copy the text from the console, paste in txt file and attach the txt file here in the forum.

    Regards,
    Pavel
  • Hi,Pavel

    I am align with the wiki pages that you provide,and here are the log:

    U-Boot 2010.06-00272-g041f487 (Mar 10 2016 - 14:09:14)
    
    TI8148-GP rev 3.0
    
    ARM clk: 600MHz
    DDR clk: 400MHz
    
    DRAM:  2 GiB
    MMC:   OMAP SD/MMC: 0
    Using default environment
    
    The 2nd stage U-Boot will now be auto-loaded
    Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed
    Hit any key to stop autoboot:  0
    reading u-boot.bin
    
    185284 bytes read
    ## Starting application at 0x80800000 ...
    
    
    U-Boot 2010.06-00272-g041f487 (Mar 10 2016 - 14:07:47)
    
    TI8148-GP rev 3.0
    
    ARM clk: 600MHz
    DDR clk: 400MHz
    
    I2C:   ready
    DRAM:  2 GiB
    NAND:  HW ECC BCH8 Selected
    1024 MiB
    MMC:   OMAP SD/MMC: 0
    *** Warning - bad CRC, using default environment
    
                              .:;rrr;;.
                        ,5#@@@@#####@@@@@@#2,
                     ,A@@@hi;;;r5;;;;r;rrSG@@@A,
                   r@@#i;:;s222hG;rrsrrrrrr;ri#@@r
                 :@@hr:r;SG3ssrr2r;rrsrsrsrsrr;rh@@:
                B@H;;rr;3Hs;rrr;sr;;rrsrsrsrsrsr;;H@B
               @@s:rrs;5#;;rrrr;r#@H:;;rrsrsrsrsrr:s@@
              @@;;srs&X#9;r;r;;,2@@@rrr:;;rrsrsrsrr;;@@
             @@;;rrsrrs@MB#@@@@@###@@@@@@#rsrsrsrsrr;;@@
            G@r;rrsrsr;#X;SX25Ss#@@#M@#9H9rrsrsrsrsrs;r@G
            @9:srsrsrs;2@;:;;:.X@@@@@H::;rrsrsrsrsrsrr:3@
           X@;rrsrsrsrr;XAi;;:&@@#@Bs:rrsrsrsrsrsrsrsrr;@X
           @#;rsrsrsrsrr;r2ir@@@###::rrsrsrsrsrsrsrsrsr:@@
           @A:rrsrsrsrr;:2@29@@M@@@;:;rrrrsrsrsrsrsrsrs;H@
           @&;rsrsrsrr;A@@@@@@###@@@s::;:;;rrsrsrsrsrsr;G@
           @#:rrsrsrsr;G@5Hr25@@@#@@@#9XG9s:rrrrsrsrsrs:#@
           M@;rsrsrsrs;r@&#;::S@@@@@@@M@@@@Grr:;rsrsrsr;@#
           :@s;rsrsrsrr:M#Msrr;;&#@@@@@@@@@@H@@5;rsrsr;s@,
            @@:rrsrsrsr;S@rrrsr;:;r3MH@@#@M5,S@@irrsrr:@@
             @A:rrsrsrsrrrrrsrsrrr;::;@##@r:;rH@h;srr:H@
             ;@9:rrsrsrsrrrsrsrsrsr;,S@Hi@i:;s;MX;rr:h@;
              r@B:rrrrsrsrsrsrsrr;;sA@#i,i@h;r;S5;r:H@r
               ,@@r;rrrsrsrsrsrr;2BM3r:;r:G@:rrr;;r@@,
                 B@Mr;rrrrsrsrsr@@S;;;rrr:5M;rr;rM@H
                  .@@@i;;rrrrsrs2i;rrrrr;r@M:;i@@@.
                    .A@@#5r;;;r;;;rrr;r:r#AsM@@H.
                       ;&@@@@MhXS5i5SX9B@@@@G;
                           :ihM#@@@@@##hs,
    
    Net:   <ethaddr> not set. Reading from E-fuse
    Detected MACID:74:da:ea:42:a3:44
    cpsw
    Hit any key to stop autoboot:  0
    reading boot.scr
    
    354 bytes read
    Running bootscript from MMC/SD to set the ENV...
    ## Executing script at 80900000
    reading ti_logo.bmp
    
    ** Unable to read "ti_logo.bmp" from mmc 0:1 **
    Unknown command 'bmp' - try 'help'
    reading uImage
    
    2898972 bytes read
    ## Booting kernel from Legacy Image at 80009000 ...
       Image Name:   Linux-2.6.37+
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2898908 Bytes = 2.8 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 2.6.37+ (root@vefone2aileen) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #98 Mon Jul 4 14:09:56 HKT 2016
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    [    0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: ti8148evm
    [    0.000000] reserved size = 52428800 at 0x0
    [    0.000000] FB: Reserving 52428800 bytes SDRAM for VRAM
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] OMAP chip is TI8148 3.0
    [    0.000000] SRAM: Mapped pa 0x402f1000 to va 0xfe400000 size: 0xf000
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 160648
    [    0.000000] Kernel command line: console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=364M@0x80000000 mem=320M@0x9FC00000 vmalloc=500M  notifyk.vpssm3_sva=0xBF900000 ip=off noinitrd
    [    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: 364MB 270MB = 634MB total
    [    0.000000] Memory: 637124k/637124k available, 63292k reserved, 276480K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     DMA     : 0xfee00000 - 0xffe00000   (  16 MB)
    [    0.000000]     vmalloc : 0xd7000000 - 0xf8000000   ( 528 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd6c00000   ( 364 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .init : 0xc0008000 - 0xc003d000   ( 212 kB)
    [    0.000000]       .text : 0xc003d000 - 0xc057a000   (5364 kB)
    [    0.000000]       .data : 0xc057a000 - 0xc05c8960   ( 315 kB)
    [    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] NR_IRQS:407
    [    0.000000] omap_hwmod: gpio2: softreset failed (waited 10000 usec)
    [    0.000000] omap_hwmod: gpio3: softreset failed (waited 10000 usec)
    [    0.000000] omap_hwmod: gpio4: softreset failed (waited 10000 usec)
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] GPMC revision 6.0
    [    0.000000] Trying to install interrupt handler for IRQ400
    [    0.000000] Trying to install interrupt handler for IRQ401
    [    0.000000] Trying to install interrupt handler for IRQ402
    [    0.000000] Trying to install interrupt handler for IRQ403
    [    0.000000] Trying to install interrupt handler for IRQ404
    [    0.000000] Trying to install interrupt handler for IRQ405
    [    0.000000] Trying to install interrupt handler for IRQ406
    [    0.000000] Trying to install type control for IRQ407
    [    0.000000] Trying to set irq flags for IRQ407
    [    0.000000] OMAP clockevent source: GPTIMER1 at 20000000 Hz
    [    0.000000] Console: colour dummy device 80x30
    [    0.000000] Calibrating delay loop... 599.65 BogoMIPS (lpj=2998272)
    [    0.230000] pid_max: default: 32768 minimum: 301
    [    0.230000] Security Framework initialized
    [    0.230000] Mount-cache hash table entries: 512
    [    0.230000] CPU: Testing write buffer coherency: ok
    [    0.230000] devtmpfs: initialized
    [    0.230000] omap_voltage_early_init: voltage driver support not added
    [    0.230000] regulator: core version 0.5
    [    0.230000] regulator: dummy:
    [    0.230000] NET: Registered protocol family 16
    [    0.230000] omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
    [    0.230000] omap_voltage_add_dev: VDD specified does not exist!
    [    0.230000] OMAP GPIO hardware version 0.1
    [    0.230000] OMAP GPIO hardware version 0.1
    [    0.230000] OMAP GPIO hardware version 0.1
    [    0.230000] OMAP GPIO hardware version 0.1
    [    0.230000] omap_mux_init: Add partition: #1: core, flags: 4
    [    0.230000] NOR: Can't request GPMC CS
    [    0.250000] Debugfs: Only enabling/disabling deep sleep and wakeup timer is supported now
    [    0.250000] registered ti81xx_vpss device
    [    0.250000] registered ti81xx_vidout device
    [    0.250000] registered ti81xx on-chip HDMI device
    [    0.250000] registered ti81xx_fb device
    [    0.250000] registered ti81xx_vin device
    [    0.260000] ti81xx_pcie: Invoking PCI BIOS...
    [    0.260000] ti81xx_pcie: Setting up Host Controller...
    [    0.260000] ti81xx_pcie: Register base mapped @0xd7018000
    [    0.370000] ti81xx_pcie: Starting PCI scan...
    [    0.370000] PCI: bus0: Fast back to back transfers enabled
    [    0.370000] bio: create slab <bio-0> at 0
    [    0.380000] Timer6 will run at at 20000000 Hz
    [    0.380000] vgaarb: loaded
    [    0.380000] SCSI subsystem initialized
    [    0.380000] usbcore: registered new interface driver usbfs
    [    0.380000] usbcore: registered new interface driver hub
    [    0.380000] usbcore: registered new device driver usb
    [    0.380000] USBSS revision 4ea2080b
    [    0.380000] registerd cppi-dma Intr @ IRQ 17
    [    0.380000] Cppi41 Init Done
    [    0.380000] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
    [    0.380000] pcf857x: probe of 1-0021 failed with error -121
    [    0.380000] regulator: VRTC: 1800 mV
    [    0.380000] regulator: VIO: 1500 mV
    [    0.390000] regulator: VDD1: 600 <--> 1500 mV at 1200 mV
    [    0.390000] regulator: VDD2: 600 <--> 1500 mV at 1200 mV
    [    0.390000] regulator: VDDCTRL: 600 <--> 1400 mV at 1200 mV
    [    0.390000] regulator: LDO1: 1100 <--> 3300 mV at 1800 mV
    [    0.390000] regulator: LDO2: 1100 <--> 3300 mV at 1800 mV
    [    0.390000] regulator: LDO3: 1100 <--> 3300 mV at 3300 mV
    [    0.390000] regulator: LDO4: 1100 <--> 3300 mV at 1800 mV
    [    0.400000] regulator: LDO5: 1100 <--> 3300 mV at 3300 mV
    [    0.400000] regulator: LDO6: 1100 <--> 3300 mV at 3300 mV
    [    0.400000] regulator: LDO7: 1100 <--> 3300 mV at 3300 mV
    [    0.400000] regulator: LDO8: 1100 <--> 3300 mV at 1800 mV
    [    0.400000] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.420000] omap_i2c omap_i2c.4: bus 4 rev4.0 at 100 kHz
    [    0.420000] Advanced Linux Sound Architecture Driver Version 1.0.23.
    [    0.420000] Switching to clocksource gp timer
    [    0.430000] musb-hdrc: version 6.0, host, debug=0
    [    0.430000] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [    0.430000] MUSB controller-0 revision 4ea20800
    [    0.430000] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    0.430000] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [    0.430000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.430000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.430000] usb usb1: Product: MUSB HDRC host driver
    [    0.430000] usb usb1: Manufacturer: Linux 2.6.37+ musb-hcd
    [    0.430000] usb usb1: SerialNumber: musb-hdrc.0
    [    0.430000] hub 1-0:1.0: USB hub found
    [    0.430000] hub 1-0:1.0: 1 port detected
    [    0.430000] musb-hdrc musb-hdrc.0: USB Host mode controller at d701e000 using DMA, IRQ 18
    [    0.430000] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [    0.430000] MUSB controller-1 revision 4ea20800
    [    0.430000] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.430000] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [    0.430000] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.430000] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.430000] usb usb2: Product: MUSB HDRC host driver
    [    0.430000] usb usb2: Manufacturer: Linux 2.6.37+ musb-hcd
    [    0.430000] usb usb2: SerialNumber: musb-hdrc.1
    [    0.430000] hub 2-0:1.0: USB hub found
    [    0.430000] hub 2-0:1.0: 1 port detected
    [    0.430000] musb-hdrc musb-hdrc.1: USB Host mode controller at d702a800 using DMA, IRQ 19
    [    0.430000] NET: Registered protocol family 2
    [    0.430000] IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.430000] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
    [    0.430000] TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.440000] TCP: Hash tables configured (established 65536 bind 65536)
    [    0.440000] TCP reno registered
    [    0.440000] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.440000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.440000] NET: Registered protocol family 1
    [    0.440000] RPC: Registered udp transport module.
    [    0.440000] RPC: Registered tcp transport module.
    [    0.440000] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.440000] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.440000] PMU: registered new PMU device of type 0
    [    0.440000] omap-iommu omap-iommu.0: ducati registered
    [    0.440000] omap-iommu omap-iommu.1: sys registered
    [    0.580000] highmem bounce pool size: 64 pages
    [    0.590000] JFFS2 version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
    [    0.590000] msgmni has been set to 704
    [    0.590000] io scheduler noop registered
    [    0.590000] io scheduler deadline registered
    [    0.590000] io scheduler cfq registered (default)
    [    0.590000] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.590000] omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    [    1.450000] console [ttyO0] enabled
    [    1.460000] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    1.470000] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    1.470000] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    1.480000] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    1.490000] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    1.500000] brd: module loaded
    [    1.510000] loop: module loaded
    [    1.520000] ahci ahci.0: forcing PORTS_IMPL to 0x1
    [    1.520000] ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    [    1.530000] ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc apst
    [    1.540000] scsi0 : ahci_platform
    [    1.540000] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
    [    1.550000] m25p80 spi1.0: w25q64 (8192 Kbytes)
    [    1.560000] Creating 5 MTD partitions on "spi_flash":
    [    1.560000] 0x000000000000-0x000000040000 : "U-Boot-min"
    [    1.570000] 0x000000040000-0x0000000c0000 : "U-Boot"
    [    1.570000] 0x0000000c0000-0x000000100000 : "U-Boot Env"
    [    1.580000] 0x000000100000-0x000000500000 : "Kernel"
    [    1.590000] 0x000000500000-0x000000800000 : "Reserved"
    [    1.590000] omap2-nand driver initializing
    [    1.600000] ONFI flash detected
    [    1.600000] ONFI param page 0 valid
    [    1.610000] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD NAND 1GiB 3,3V 8-bit)
    [    1.610000] Creating 5 MTD partitions on "omap2-nand.0":
    [    1.620000] 0x000000000000-0x000000040000 : "U-Boot-min"
    [    1.630000] 0x000000040000-0x0000000c0000 : "U-Boot"
    [    1.630000] 0x0000000c0000-0x000000100000 : "U-Boot Env"
    [    1.640000] 0x000000100000-0x000000500000 : "Kernel"
    [    1.650000] 0x000000500000-0x000020000000 : "File System"
    [    1.870000] usb 2-1: new high speed USB device using musb-hdrc and address 2
    [    1.930000] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.930000] davinci_mdio davinci_mdio.0: detected phy mask fffffffc
    [    1.940000] davinci_mdio.0: probed
    [    1.940000] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [    1.950000] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    [    1.960000] CAN device driver interface
    [    1.960000] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.970000] d_can d_can.0: d_can device registered (irq=52, irq_obj=53)
    [    1.980000] d_can d_can.1: d_can device registered (irq=55, irq_obj=56)
    [    1.980000] usbcore: registered new interface driver cdc_ether
    [    1.990000] usbcore: registered new interface driver dm9601
    [    2.000000] usbcore: registered new interface driver cdc_acm
    [    2.000000] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
    [    2.010000] Initializing USB Mass Storage driver...
    [    2.020000] usbcore: registered new interface driver usb-storage
    [    2.020000] USB Mass Storage support registered.
    [    2.030000] mice: PS/2 mouse device common for all mice
    [    2.030000] ata1: SATA link down (SStatus 0 SControl 300)
    [    2.040000] ads7846 spi1.2: touchscreen, irq 182
    [    2.040000] input: ADS7846 Touchscreen as /devices/platform/omap2_mcspi.1/spi1.2/input/input0
    [    2.060000] usb 2-1: New USB device found, idVendor=0409, idProduct=005a
    [    2.060000] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    2.070000] hub 2-1:1.0: USB hub found
    [    2.070000] tps65910-rtc tps65910-rtc: rtc core: registered tps65910-rtc as rtc0
    [    2.080000] i2c /dev entries driver
    [    2.090000] Linux video capture interface: v2.00
    [    2.090000] usbcore: registered new interface driver uvcvideo
    [    2.100000] USB Video Class driver (v1.0.0)
    [    2.100000] Timer7 will run at at 20000000 Hz
    [    2.110000] pwm-fan pwm-fan.1: PWM fan initialized
    [    2.110000] hub 2-1:1.0: 4 ports detected
    [    2.120000] tmp102 1-0049: initialized
    [    2.130000] OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    [    2.130000] usbcore: registered new interface driver usbhid
    [    2.140000] usbhid: USB HID core driver
    [    2.140000] notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xbf900000
    [    2.150000] usbcore: registered new interface driver snd-usb-audio
    [    2.160000] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
    [    2.170000] ALSA device list:
    [    2.170000]   #0: TI81XX EVM
    [    2.180000] nf_conntrack version 0.5.0 (9955 buckets, 39820 max)
    [    2.180000] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.190000] TCP cubic registered
    [    2.190000] NET: Registered protocol family 17
    [    2.200000] can: controller area network core (rev 20090105 abi 8)
    [    2.210000] NET: Registered protocol family 29
    [    2.210000] can: raw protocol (rev 20090105)
    [    2.210000] can: broadcast manager protocol (rev 20090105 t)
    [    2.220000] Registering the dns_resolver key type
    [    2.230000] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    2.240000] omap_voltage_late_init: Voltage driver support not added
    [    2.240000] Power Management for TI81XX.
    [    2.250000] Detected MACID=74:da:ea:42:a3:44
    [    2.260000] Detected MACID=74:da:ea:42:a3:45
    [    2.270000] tps65910-rtc tps65910-rtc: setting system clock to 2016-05-13 07:20:34 UTC (1463124034)
    [    2.280000] Waiting for root device /dev/mmcblk0p2...
    [    2.360000] mmc0: new high speed SDHC card at address aaaa
    [    2.360000] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
    [    2.370000]  mmcblk0: p1 p2
    [    2.390000] EXT3-fs: barriers not enabled
    [    2.400000] kjournald starting.  Commit interval 5 seconds
    [    2.410000] EXT3-fs (mmcblk0p2): using internal journal
    [    2.410000] EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    [    2.420000] VFS: Mounted root (ext3 filesystem) on device 179:2.
    [    2.430000] devtmpfs: mounted
    [    2.430000] Freeing init memory: 212K
    INIT: version 2.86 booting
    Please wait: booting...
    Error opening /dev/fb0: No such file or directory
    Starting udev
    [    2.930000] udevd (88): /proc/88/oom_adj is deprecated, please use /proc/88/oom_score_adj instead.
    Remounting root file system...
    Caching udev devnodes
    [    7.720000] NET: Registered protocol family 10
    ALSA: Restoring mixer settings...
    Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
    ifconfig: SIOCGIFFLAGS: No such device
    eth0      No such device
    
    ifconfig: SIOCGIFFLAGS: No such device
    done.
    Setting up IP spoofing protection: rp_filter.
    INIT: Entering runlevel: 5
    Loading HDVICP2 Firmware
    DM814X prcm_config_app version: 2.0.0.1
    Doing PRCM settings...
            PRCM for IVHD0 is in Progress, Please wait.....
                            BW Phy Addr : 0x48180600 Data : 0x00000001
                            AW Phy Addr : 0x48180600 Data : 0x00000002
                            Phy Addr : 0x48180c04 Data : 0x00000037
                            BW Phy Addr : 0x48180620 Data : 0x00070000
                            AW Phy Addr : 0x48180620 Data : 0x00070002
                            BW Phy Addr : 0x48180624 Data : 0x00030000
                            AW Phy Addr : 0x48180624 Data : 0x00010002
                            Phy Addr : 0x48180600 Data : 0x00000102
                            BW Phy Addr : 0x48180c10 Data : 0x00000007
                            AW Phy Addr : 0x48180c10 Data : 0x00000003
                            Phy Addr : 0x48180c14 Data : 0x00000004
                            BW Phy Addr : 0x58088000 Data : 0xeafffffe
                            AW Phy Addr : 0x58088000 Data : 0xeafffffe
                            BW Phy Addr : 0x58098000 Data : 0xeafffffe
                            AW Phy Addr : 0x58098000 Data : 0xeafffffe
                            BW Phy Addr : 0x48180c10 Data : 0x00000003
                            AW Phy Addr : 0x48180c10 Data : 0x00000000
                            Phy Addr : 0x48180c14 Data : 0x00000007
            PRCM for IVHD0 is Done Successfully
    PRCM Initialization completed
    [   10.040000] SysLink version : 2.20.02.20
    [   10.040000] SysLink module created on Date:Jul  1 2016 Time:11:49:19
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1>]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: 1 start Successful
    Loading HDVPSS Firmware
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1>]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: 2 start Successful
    [   11.670000] VPSS_FVID2: M3 firmware version 0x1000145 is newer,driver may not work properly.
    Configuring fb0 to LCD
    [   11.900000] HDMI W1 rev 4.0
    [   11.900000] HDMI CEC Spec version 1.2
    [   12.230000] I2C No Ack
    [   12.230000]
    Starting system message bus: dbus.
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Starting network benchmark server: netserver.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting PVR
    Usage: insmod filename [args]
    FATAL: Module omaplfb not found.
    FATAL: Module bufferclass_ti not found.
    BusyBox v1.13.2 (2012-12-26 15:45:54 IST) multi-call binary
    
    Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR
    
    Create a special file (block, character, or pipe)
    
    Options:
            -m      Create the special file using the specified mode (default a=rw)
    TYPEs include:
            b:      Make a block device
            c or u: Make a character device
            p:      Make a named pipe (MAJOR and MINOR are ignored)
    
    chmod: /dev/pvrsrvkm: No such file or directory
    /dev/mem opened.
    Memory mapped at address 0x4027b000.
    Read at address  0x48180F04 (0x4027bf04): 0x00000001
    Write at address 0x48180F04 (0x4027bf04): 0x00000000, readback 0x00000000
    /dev/mem opened.
    Memory mapped at address 0x40136000.
    Read at address  0x48180900 (0x40136900): 0x00000001
    Write at address 0x48180900 (0x40136900): 0x00000002, readback 0x00000002
    /dev/mem opened.
    Memory mapped at address 0x402ee000.
    Read at address  0x48180920 (0x402ee920): 0x00070000
    Write at address 0x48180920 (0x402ee920): 0x00000002, readback 0x00000002
    Starting Matrix GUI application.
    
     _____                    _____           _         _
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|
                  |___|                    |___|
    
    Arago Project http://arago-project.org dm814x-evm ttyO0
    
    Arago 2011.09 dm814x-evm ttyO0
    
    dm814x-evm login: root
    root@dm814x-evm:~#

    BR,

    vefone

  • Vefone,

    I do not see in your modifications changing the McASP data port from McAS2/0x46800000 to McASP0/0x46000000, in devices.c file. This change is pointed in the wiki pages I provided to you and you state that you are align with all the changes there, but I do not see this change!

    Regards,
    Pavel
  • Pavel,
    Sorry,I forgot it.I had changed,but I forgot to paste in here.
    It was in the arch/arm/mach-omap2/board-ti8148evm.c
    static struct snd_platform_data ti8148_evm_snd_data = {
    .tx_dma_offset = 0x46000000,
    .rx_dma_offset = 0x46000000,
    .op_mode = DAVINCI_MCASP_IIS_MODE,
    .num_serializer = ARRAY_SIZE(ti8148_iis_serializer_direction),
    .tdm_slots = 2,
    .serial_dir = ti8148_iis_serializer_direction,
    .asp_chan_q = EVENTQ_0,
    .version = MCASP_VERSION_2,
    .txnumevt = 32,
    .rxnumevt = 32,
    };

    BR,
    vefone
  • Vefone,

    I see you are attaching the AIC3x codec to I2C3 (bus 4) (addr 0x1B) at your custom board.

    When you run "i2cdetect -r 4", do you detect the codec? At which I2C3 pins you have connected your AIC3x codec? Have you made the pinmux of these I2C3 pins?

    See also:
    processors.wiki.ti.com/.../TI81xx_PSP_Porting_Guide

    Regards,
    Pavel
  • Hi,Pavel
    I solved it.
    The pin configuaration in the ti8148_iis_serializer_direction array is wrong.
    Because the aix3106' 40 pin is connects to dm8148 mcasp0_axr0,and the 41 pin is connects to dm8148 mcasp0_axr3,so the ti8148_iis_serializer_direction should be :

    static u8 ti8148_iis_serializer_direction[] = {
    TX_MODE, INACTIVE_MODE, INACTIVE_MODE, RX_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 ti8148_evm_snd_data = {
    .tx_dma_offset = 0x46000000,
    .rx_dma_offset = 0x46000000,
    .op_mode = DAVINCI_MCASP_IIS_MODE,
    .num_serializer = ARRAY_SIZE(ti8148_iis_serializer_direction),
    .tdm_slots = 2,
    .serial_dir = ti8148_iis_serializer_direction,
    .asp_chan_q = EVENTQ_0,
    .version = MCASP_VERSION_2,
    .txnumevt = 1,
    .rxnumevt = 1,
    };

    BR,
    vefone
  • Can you also share the log when you run the arecord command, but in verbose mode (-v). Below is what I have in the DM814x EVM:

    root@dm814x-evm:~# amixer sset 'Right PGA Mixer Mic3L' on

    Simple mixer control 'Right PGA Mixer Mic3L',0

     Capabilities: pswitch pswitch-joined penum

     Playback channels: Mono

     Mono: Playback [on]

    root@dm814x-evm:~# amixer sset 'Right PGA Mixer Mic3R' on

    Simple mixer control 'Right PGA Mixer Mic3R',0

     Capabilities: pswitch pswitch-joined penum

     Playback channels: Mono

     Mono: Playback [on]

    root@dm814x-evm:~# amixer sset 'Left PGA Mixer Mic3L' on

    Simple mixer control 'Left PGA Mixer Mic3L',0

     Capabilities: pswitch pswitch-joined penum

     Playback channels: Mono

     Mono: Playback [on]

    root@dm814x-evm:~# amixer sset 'Left PGA Mixer Mic3R' on

    Simple mixer control 'Left PGA Mixer Mic3R',0

     Capabilities: pswitch pswitch-joined penum

     Playback channels: Mono

     Mono: Playback [on]

    root@dm814x-evm:~# amixer sset 'Right PGA Mixer Line1R' off

    Simple mixer control 'Right PGA Mixer Line1R',0

     Capabilities: pswitch pswitch-joined penum

     Playback channels: Mono

     Mono: Playback [off]

    root@dm814x-evm:~# amixer sset 'Right PGA Mixer Line1L' off

    Simple mixer control 'Right PGA Mixer Line1L',0

     Capabilities: pswitch pswitch-joined penum

     Playback channels: Mono

     Mono: Playback [off]

    root@dm814x-evm:~# amixer sset 'Left PGA Mixer Line1R' off

    Simple mixer control 'Left PGA Mixer Line1R',0

     Capabilities: pswitch pswitch-joined penum

     Playback channels: Mono

     Mono: Playback [off]

    root@dm814x-evm:~# amixer sset 'Left PGA Mixer Line1L' off

    Simple mixer control 'Left PGA Mixer Line1L',0

     Capabilities: pswitch pswitch-joined penum

     Playback channels: Mono

     Mono: Playback [off]

    root@dm814x-evm:~# amixer cset name='PGA Capture Volume' 70%,70%

    numid=37,iface=MIXER,name='PGA Capture Volume'

     ; type=INTEGER,access=rw---R--,values=2,min=0,max=119,step=0

     : values=84,84

     | dBscale-min=0.00dB,step=0.50dB,mute=0

    root@dm814x-evm:~# arecord -f cd -r 44100 -d 10 -c 2 mic-test.wav -v

    Recording WAVE 'mic-test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

    Plug PCM: Hardware PCM card 0 'TI81XX EVM' device 0 subdevice 0

    Its setup is:

     stream       : CAPTURE

     access       : RW_INTERLEAVED

     format       : S16_LE

     subformat    : STD

     channels     : 2

     rate         : 44100

     exact rate   : 44100 (44100/1)

     msbits       : 16

     buffer_size  : 22528

     period_size  : 2048

     period_time  : 46439

     tstamp_mode  : NONE

     period_step  : 1

     avail_min    : 2048

     period_event : 0

     start_threshold  : 1

     stop_threshold   : 22528

     silence_threshold: 0

     silence_size : 0

     boundary     : 1476395008

     appl_ptr     : 0

     hw_ptr       : 0

     

     

    As result I have 1.76MB file named mic-test.wav

    Regards,

    Pavel

  • Hi Vefone,

    Thanks for sharing the solution. Note that ti8148_iis_serializer_direction[] configuration is explained in the TI wiki.

    Regards,
    Pavel
  • Hi,Pavel

    Can you provide me some suggestion?

     

    BR,

    vefone

  • Vefone,

    I see that other TI engineer is working on that.

    Regards,
    Pavel