Page 1 of 1

sama5d2 + tlv32aic33

Posted: Sat Mar 31, 2018 9:40 am
by A09353
Hello,
i want to connect tlv320aic33 codec to sama5d2 xplained board through i2c. I have tlv320aic33evm-pdk evaluation module. Connect it to i2c of sama5d2.
I enable tlv320aic3x driver in linux kernel and edit the dts file

Code: Select all

i2c0: i2c@f8028000 {
				tlv320aic3x: tlv320aic3x@1b {
					compatible = "ti,tlv320aic3x";
					reg = <0x1b>;
				};
				...
			};
but i understand what i need to do aplay use this codec. Do I need add sound section in dts?
I try to do it use "simple-audio-card", but what do i need write in "simple-audio-card,cpu"? Or use something other than "simple-audio-card"?

Code: Select all

sound {
	compatible = "simple-audio-card";
	...
	simple-audio-card,codec {
		sound-dai = <&tlv320aic3x>;
		...
	};
	simple-audio-card,cpu {
		sound-dai = <???>;
	};
}

Re: sama5d2 + tlv32aic33

Posted: Tue May 08, 2018 1:39 pm
by A09353
I connected the codec (through i2c/i2s), I can play sound or record.
But when I simultaneously play and record, I get a continuous error:

Code: Select all

...
atmel_i2s f8050000.i2s: TX underrun on channel 1
atmel_i2s f8050000.i2s: TX underrun on channel 0
...
or

Code: Select all

...
atmel_i2s f8050000.i2s: RX overrun on channel 1
atmel_i2s f8050000.i2s: RX overrun on channel 0
...
What could be the problem?

Re: sama5d2 + tlv32aic33

Posted: Wed May 09, 2018 10:11 pm
by blue_z
A09353 wrote:What could be the problem?
You neglect to provide any salient details such as sampling rates, sample sizes, and source and destination media.
You could be trying to exceed the bandwidth of the memory and/or storage media.

Regards

Re: sama5d2 + tlv32aic33

Posted: Thu May 10, 2018 12:10 pm
by A09353
blue_z wrote:
Wed May 09, 2018 10:11 pm
You neglect to provide any salient details such as sampling rates, sample sizes, and source and destination media.
You could be trying to exceed the bandwidth of the memory and/or storage media.

Regards
Tried different formats, last 16000Hz, 16-bit, mono for play (from wav file) and rec (to wav file or /dev/null). I rec file no more than 30 seconds.
Same error when starting pulseaudio.