Hello,
I am using Compulab-CM510 SoM (armada 510 processor), and I am trying to set the sound system, using Device Tree, Simple-Audio-Card, and of course TLV320AIC23 audio codec (included in the SoM), in 3.19 kernel version.
The driver for the TLV320AIC23 is located in ./KERNEL/soc/codecs/tlv320aic23.c
This is my boot trace regarding to audio:
...
asoc-simple-card sound: tlv320aic23-hifi <-> i2s mapping ok
...
...
ALSA device list:
#0: OnboardTLV320AIC23B
...
In reference to the card, I get the following info:
root@192:~#cat /proc/asound/cards
0 [OnboardTLV320AI]: OnboardTLV320AI - OnboardTLV320AIC23B
OnboardTLV320AIC23B
root@192:~# tree /proc/asound/card0/
/proc/asound/card0/
|-- id
|-- pcm0c
| |-- info
| `-- sub0
| |-- hw_params
| |-- info
| |-- status
| `-- sw_params
`-- pcm0p
|-- info
`-- sub0
|-- hw_params
|-- info
|-- status
`-- sw_params
4 directories, 11 files
But, if I try to reproduce some noise:
root@192:~# cat /dev/urandom | aplay
Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
set_sample_rate_control:Invalid rate 48000,48000 requested
tlv320aic23-codec 1-001a: ASoC: can't set tlv320aic23-hifi hw params: -22
aplay: set_params:1145: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: U8
SUBFORMAT: STD
SAMPLE_BITS: 8
FRAME_BITS: 8
CHANNELS: 1
RATE: 8000
PERIOD_TIME: (125333 125334)
PERIOD_SIZE: (1002 1003)
PERIOD_BYTES: (1002 1003)
PERIODS: (3 4)
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 4000
TICK_TIME: 0
It seems to be there is some kind of problem with audio codec driver:
set_sample_rate_control:Invalid rate 48000,48000 requested
tlv320aic23-codec 1-001a: ASoC: can't set tlv320aic23-hifi hw params: -22
I would really appreciate some kind of help
Thank you