Other Parts Discussed in Thread: TLV320AIC3106
Tool/software: TI C/C++ Compiler
Hi,
I am working on multi channel audio on customer board based dra76p.
I'm able to back port kernel patches from 3.14 to 4.4 version and now each stereo CODEC instance receives two channels of the stereo stream.
+--o tlv320aic3106 (Instance A)
tdm |
McASP3 o-------- |--o tlv320aic3106 (Instance B)
|
+--o tlv320aic3106 (Instance C)
But I need that each stereo CODEC two channels of the 6ch stream.
ch1-2 codecA
ch2-3 codecB
ch4-5 codecC
here my dts config :
sound0:multicodec_sound {
compatible = "ti,dra7xx-jamr3-multicodec-evm";
ti,model = "ACTIA SOUND CARD";
ti,always-on;
clocks = <&atl_clkin2_ck>;
clock-names = "ti,codec-clock";
ti,audio-routing =
"J3A LINE1L", "JAMR3 Stereo Aux In",
"J3A LINE1R", "JAMR3 Stereo Aux In",
"J3B LINE1L", "JAMR3 Mono Mic 1",
"J3B LINE1R", "JAMR3 Mono Mic 2",
"JAMR3 Line Out 1", "J3A LLOUT",
"JAMR3 Line Out 1", "J3A RLOUT",
"JAMR3 Line Out 2", "J3B LLOUT",
"JAMR3 Line Out 2", "J3B RLOUT",
"JAMR3 Line Out 3", "J3C LLOUT",
"JAMR3 Line Out 3", "J3C RLOUT";
/* Multichannel DAI link */
ti,multichannel-cpu = <&mcasp3>;
ti,multichannel-codec-a = <&tlv320aic3106a>;
ti,multichannel-codec-b = <&tlv320aic3106b>;
ti,multichannel-codec-c = <&tlv320aic3106c>;
ti,multichannel-slots = <8>;
ti,multichannel-mclk-freq = <11289600>;
};
&mcasp3 {
#sound-dai-cells = <0>;
assigned-clocks = <&mcasp3_ahclkx_mux>;
assigned-clock-parents = <&atl_clkin2_ck>;
status = "okay";
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <8>;
num-serializer = <4>;
/* 4 serializer */
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
1 2 0 0
>;
tx-num-evt = <32>;
rx-num-evt = <32>;
};
act1000:/ $ cat /proc/asound/pcm
00-00: (null) multicodec-0 : : playback 1 : capture 1
02-00: HDMI 58040000.encoder snd-soc-dummy-dai-0 : : playback 1
act1000:/ $ cat /proc/asound/devices
2: [ 0] : control
3: [ 0- 0]: digital audio playback
4: [ 0- 0]: digital audio capture
5: [ 2] : control
6: [ 2- 0]: digital audio playback
33: : timer
act1000:/ $
Do you know please how to fix it ?
Thank you !