sama5d2 + tlv32aic33

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

A09353
Posts: 3
Joined: Fri Mar 30, 2018 5:20 pm

sama5d2 + tlv32aic33

Sat Mar 31, 2018 9:40 am

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 = <???>;
	};
}
A09353
Posts: 3
Joined: Fri Mar 30, 2018 5:20 pm

Re: sama5d2 + tlv32aic33

Tue May 08, 2018 1:39 pm

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?
blue_z
Location: USA
Posts: 1677
Joined: Thu Apr 19, 2007 10:15 pm

Re: sama5d2 + tlv32aic33

Wed May 09, 2018 10:11 pm

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
A09353
Posts: 3
Joined: Fri Mar 30, 2018 5:20 pm

Re: sama5d2 + tlv32aic33

Thu May 10, 2018 12:10 pm

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.

Return to “LINUX”

Who is online

Users browsing this forum: Google [Bot] and 2 guests