AnsweredAssumed Answered

Alsa driver for TI codec with BF526 processor

Question asked by rrunmai on Jul 30, 2012
Latest reply on Aug 3, 2012 by ScottJiang

Hi,

 

We have the TI codec TLV320AIC3254 connected to BF526 processor on I2C and SPORT0.  We used userspace I2C and Bfin-sport and could configure the codec and receive data from codec. As a next step we are trying to implement live recording.  We are trying to implement Alsa.  I got the linux driver code (tlv320aic32x4.c,tlv320aic32x4.h) form internet and have done the DAI platform - bf5xx_tlv320aic32x4.c similar to bf5xx_ssm2602.c.  I followed the steps given in http://wiki.analog.com/resources/tools-software/linux-drivers/sound/ssm2602.

 

But I could not found any sound cards here.  I try installing the Alsa as a module. But I could not find any snd-pcm-oss modules to be installed.

 

The log when it is built in kernel is attached. 

 

This is my log file:

Jan  1 00:00:05 blackfin syslog.info syslogd started: BusyBox v1.16.2

Jan  1 00:00:05 blackfin user.notice kernel: klogd started: BusyBox v1.16.2 (2012-07-27 14:16:17 IST)

Jan  1 00:00:05 blackfin user.notice kernel: Linux version 3.1.0-rc1 (unmai@unmai-laptop) (gcc version 4.3.5 (ADI/svn-4960) ) #1512 Mon Jul 30 14:15:58 IST 2012

Jan  1 00:00:05 blackfin user.info kernel: register early platform devices

Jan  1 00:00:05 blackfin user.info kernel: bootconsole [early_shadow0] enabled

Jan  1 00:00:05 blackfin user.info kernel: bootconsole [early_BFuart0] enabled

Jan  1 00:00:05 blackfin user.info kernel: early printk enabled on early_BFuart0

Jan  1 00:00:05 blackfin user.info kernel: Board Memory: 32MB

Jan  1 00:00:05 blackfin user.info kernel: Kernel Managed Memory: 32MB

Jan  1 00:00:05 blackfin user.info kernel: Memory map:

Jan  1 00:00:05 blackfin user.info kernel:   fixedcode = 0x00000400-0x00000490

Jan  1 00:00:05 blackfin user.info kernel:   text      = 0x00001000-0x00186428

Jan  1 00:00:05 blackfin user.info kernel:   rodata    = 0x00186428-0x00202f1c

Jan  1 00:00:05 blackfin user.info kernel:   bss       = 0x00203000-0x002150ac

Jan  1 00:00:05 blackfin user.info kernel:   data      = 0x002150ac-0x00230000

Jan  1 00:00:05 blackfin user.info kernel:     stack   = 0x0022e000-0x00230000

Jan  1 00:00:05 blackfin user.info kernel:   init      = 0x00230000-0x0075d000

Jan  1 00:00:05 blackfin user.info kernel:   available = 0x0075d000-0x01f00000

Jan  1 00:00:05 blackfin user.info kernel:   DMA Zone  = 0x01f00000-0x02000000

Jan  1 00:00:05 blackfin user.info kernel: Hardware Trace active and enabled

Jan  1 00:00:05 blackfin user.info kernel: Boot Mode: 3

Jan  1 00:00:05 blackfin user.notice kernel: Reset caused by Software reset

Jan  1 00:00:05 blackfin user.debug kernel: free_area_init_node: node 0, pgdat 0022ba6c, node_mem_map 0075f000

Jan  1 00:00:05 blackfin user.debug kernel:   DMA zone: 62 pages used for memmap

Jan  1 00:00:05 blackfin user.debug kernel:   DMA zone: 0 pages reserved

Jan  1 00:00:05 blackfin user.debug kernel:   DMA zone: 7874 pages, LIFO batch:0

Jan  1 00:00:05 blackfin user.info kernel: NOMPU: setting up cplb tables

Jan  1 00:00:05 blackfin user.info kernel: Instruction Cache Enabled for CPU0

Jan  1 00:00:05 blackfin user.info kernel:   External memory: cacheable in instruction cache

Jan  1 00:00:05 blackfin user.info kernel: Data Cache Enabled for CPU0

Jan  1 00:00:05 blackfin user.info kernel:   External memory: cacheable (write-back) in data cache

Jan  1 00:00:05 blackfin user.debug kernel: pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768

Jan  1 00:00:05 blackfin user.debug kernel: pcpu-alloc: [0] 0

Jan  1 00:00:05 blackfin user.warn kernel: Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 7874

Jan  1 00:00:05 blackfin user.notice kernel: Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.7.143.88:10.7.143.13:10.7.143.22:255.255.255.0:bf526-tmbrd:eth0:off

Jan  1 00:00:05 blackfin user.info kernel: PID hash table entries: 128 (order: -3, 512 bytes)

Jan  1 00:00:05 blackfin user.info kernel: Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

Jan  1 00:00:05 blackfin user.info kernel: Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Jan  1 00:00:05 blackfin user.info kernel: Calibrating delay loop... 595.96 BogoMIPS (lpj=1191936)

Jan  1 00:00:05 blackfin user.info kernel: pid_max: default: 32768 minimum: 301

Jan  1 00:00:05 blackfin user.info kernel: Security Framework initialized

Jan  1 00:00:05 blackfin user.info kernel: Mount-cache hash table entries: 512

Jan  1 00:00:05 blackfin user.info kernel: Blackfin Scratchpad data SRAM: 4 KB

Jan  1 00:00:05 blackfin user.info kernel: Blackfin L1 Data A SRAM: 16 KB (16 KB free)

Jan  1 00:00:05 blackfin user.info kernel: Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Jan  1 00:00:05 blackfin user.info kernel: Blackfin L1 Instruction SRAM: 48 KB (42 KB free)

Jan  1 00:00:05 blackfin user.info kernel: NET: Registered protocol family 16

Jan  1 00:00:05 blackfin user.info kernel: Blackfin DMA Controller

Jan  1 00:00:05 blackfin user.info kernel: ezbrd_init(): registering device resources

Jan  1 00:00:05 blackfin user.info kernel: i2c register board info

Jan  1 00:00:05 blackfin user.info kernel: registering

Jan  1 00:00:05 blackfin user.info kernel: bio: create slab <bio-0> at 0

Jan  1 00:00:05 blackfin user.notice kernel: SCSI subsystem initialized

Jan  1 00:00:05 blackfin user.err kernel: bfin-spi bfin-spi.0: chipselect 1 already in use

Jan  1 00:00:05 blackfin user.err kernel: bfin-spi bfin-spi.0: can't create new device for spidev

Jan  1 00:00:05 blackfin user.info kernel: bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7

Jan  1 00:00:05 blackfin user.info kernel: usbcore: registered new interface driver usbfs

Jan  1 00:00:05 blackfin user.info kernel: usbcore: registered new interface driver hub

Jan  1 00:00:05 blackfin user.info kernel: usbcore: registered new device driver usb

Jan  1 00:00:05 blackfin user.info kernel: i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc01400

Jan  1 00:00:05 blackfin user.info kernel: Advanced Linux Sound Architecture Driver Version 1.0.24.

Jan  1 00:00:05 blackfin user.info kernel: NET: Registered protocol family 2

Jan  1 00:00:05 blackfin user.info kernel: IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

Jan  1 00:00:05 blackfin user.info kernel: TCP established hash table entries: 1024 (order: 1, 8192 bytes)

Jan  1 00:00:05 blackfin user.info kernel: debug-mmrs: setting up Blackfin MMR debugfs

Jan  1 00:00:05 blackfin user.info kernel: JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

Jan  1 00:00:05 blackfin user.info kernel: msgmni has been set to 46

Jan  1 00:00:05 blackfin user.info kernel: io scheduler noop registered (default)

Jan  1 00:00:05 blackfin user.info kernel: bfin-uart: Blackfin serial driver

Jan  1 00:00:05 blackfin user.info kernel: bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

Jan  1 00:00:05 blackfin user.info kernel: bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

Jan  1 00:00:05 blackfin user.info kernel: brd: module loaded

Jan  1 00:00:05 blackfin user.notice kernel: physmap platform flash device: 00400000 at 20000000

Jan  1 00:00:05 blackfin user.err kernel: physmap-flash physmap-flash.0: map_probe failed

Jan  1 00:00:05 blackfin user.warn kernel: m25p80 spi0.1: found w25q128, expected sst25wf040

Jan  1 00:00:05 blackfin user.info kernel: m25p80 spi0.1: w25q128 (16384 Kbytes)

Jan  1 00:00:05 blackfin user.notice kernel: Creating 5 MTD partitions on "m25p80":

Jan  1 00:00:05 blackfin user.notice kernel: 0x000000000000-0x000000040000 : "bootloader"

Jan  1 00:00:05 blackfin user.notice kernel: 0x000000040000-0x0000001c0000 : "linux kernel"

Jan  1 00:00:05 blackfin user.info kernel: usbcore: registered new interface driver usb-storage

Jan  1 00:00:05 blackfin user.info kernel: USB Mass Storage support registered.

Jan  1 00:00:05 blackfin user.info kernel: bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Jan  1 00:00:05 blackfin user.warn kernel: PG12 reserved for ADC chip select

Jan  1 00:00:05 blackfin user.warn kernel: Going to read ID

Jan  1 00:00:05 blackfin user.warn kernel: read returned 0

Jan  1 00:00:05 blackfin user.warn kernel: Got ID ff

Jan  1 00:00:05 blackfin user.err kernel: ad7793 spi0.2: device ID query failed

Jan  1 00:00:05 blackfin user.err kernel: ad7793 spi0.2: setup failed

Jan  1 00:00:05 blackfin user.info kernel: bfin-i2s bfin-i2s.0: dma rx:3 tx:4, err irq:15, regs:ffc00800

Jan  1 00:00:05 blackfin user.info kernel: ALSA device list:

Jan  1 00:00:05 blackfin user.info kernel:   No soundcards found.

Jan  1 00:00:05 blackfin user.info kernel: TCP cubic registered

Jan  1 00:00:05 blackfin user.info kernel: NET: Registered protocol family 17

Jan  1 00:00:05 blackfin user.info kernel: dma_alloc_init: dma_page @ 0x017da000 - 256 pages at 0x01f00000

Jan  1 00:00:05 blackfin user.warn kernel: IP-Config: Complete:

Jan  1 00:00:05 blackfin user.warn kernel:      device=eth0, addr=10.7.143.88, mask=255.255.255.0, gw=10.7.143.22,

Jan  1 00:00:05 blackfin user.warn kernel:      host=bf526-tmbrd, domain=, nis-domain=(none),

Jan  1 00:00:05 blackfin user.warn kernel:      bootserver=10.7.143.13, rootserver=10.7.143.13, rootpath=

Jan  1 00:00:05 blackfin user.info kernel: Freeing unused kernel memory: 5300k freed

Jan  1 00:00:05 blackfin user.info kernel: PHY: 0:10 - Link is Up - 100/Full

Jan  1 00:03:24 blackfin auth.info rshd[84]: unmai@10.7.143.19 as root: cmd='rcp -f /var/log/messages'

Attachments

Outcomes