Hi ,
we are using AM335x and SDK-8 : for Audio codec(TLV320DAC3100) in Custom Board but the reference Sitara EVM-Starter Kit.
our Audio IOs(no change in pin-muxing) are same for the starter kit to our custom board --
only changes we have done is PIN-MUX:
tlv320aic3106: here codec is clock master so , the clocks are sourced from codec to McASP
mcasp1_pins_sleep: mcasp1_pins_sleep {
pinctrl-single,pins = <
0x10c (PIN_INPUT_PULLDOWN | MUX_MODE7)
0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
0x108 (PIN_INPUT_PULLDOWN | MUX_MODE7)
0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7)
>;
};
to : tlv320dac3100 : here codec is slave and McASP is master so changed -- this has DAC no Line-in so DAC will be slave for I2S
mcasp1_pins_sleep: mcasp1_pins_sleep {
pinctrl-single,pins = <
0x10c (PIN_OUTPUT_PULLUP | MUX_MODE7)
0x110 (PIN_OUTPUT_PULLUP | MUX_MODE7)
0x108 (PIN_OUTPUT_PULLUP | MUX_MODE7)
0x144 (PIN_INPUT_PULLDOWN | MUX_MODE7)
>;
};
So changed to output_pull up -- but we are getting a logic High signal on BCLK and WCLK IO's and no data on the DIN IO.
we are using aplay command to play the ".wav" file we are geting an Logic high signal from the AM335x to cdoec
we are suspecting the I2S bus.
one more changes we have done is :
static struct snd_soc_dai_link da830_evm_dai = {
.name = "TLV320AIC3X",
.stream_name = "AIC3X",
.cpu_dai_name = "davinci-mcasp.1",
.codec_dai_name = "tlv320aic3x-hifi",
.codec_name = "tlv320aic3x-codec.1-0018",
.platform_name = "davinci-mcasp.1",
.init = evm_aic3x_init,
.ops = &evm_ops,
.dai_fmt = SND_SOC_DAIFMT_DSP_B | SND_SOC_DAIFMT_CBM_CFM |
SND_SOC_DAIFMT_IB_NF,
};
to :
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBM_CFS |
SND_SOC_DAIFMT_NB_NF,
given in some of TI fourm thread so we tried in that way-
we tried to get some solution for No Sound.
Please correct us if we are doing wrong way
Assumption 1. McASP is master and Codec is slave -- so we changed the pinmuxing.
Assumption 2: dai_fmt is the right we changed from DSP_B to I2S and CDM_CFM to CBM_CFM and IB_NF to NB_NF.
3#:
MCLK we are getting an triangle wave form: 2.3v amplitude and looking some offset in voltage level , is that clock is OK..??? (attached the waveform)
regards,
Viswanath K