Other Parts Discussed in Thread: TAS2110, AM62L
Tool/software:
Hi,
We are working on AM62L and communicating TAS2110 over i2s and i2c.
codec_audio: sound { compatible = "simple-audio-card"; simple-audio-card,name = "AM62L-HAVN"; simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&cpu_codec>; simple-audio-card,frame-master = <&cpu_codec>; // <== this controls WCLK! simple-audio-card,bitclock-inversion; cpu_codec:simple-audio-card,cpu { sound-dai = <&mcasp0>; //clocks = <&clk_24mhz>; dai-tdm-slot-num = <2>; dai-tdm-slot-width = <24>; // or 24 depending on TAS2110 config dai-format = "i2s"; dai-tdm-slot-mask = <1 0>; // L channel only if mono //frame-inversion; // Optional, if required status = "okay"; }; sound_master: simple-audio-card,codec { sound-dai = <&tas2120>; status = "okay"; //clocks = <&tlv320_mclk>; }; }; i2c1 node: tas2120: audio-codec@4f { #sound-dai-cells = <0>; compatible = "ti,tas2110", "ti,tas2562"; reg = <0x4F>; // TODO address need to confirm from. ai3x-micbias-vg = <1>; //* 2.0V status="okay"; ti,imon-slot-no = <0>; /* Current sense slot, default */ ti,vmon-slot-no = <1>; /* Voltage sense slot, default */ //* Regulators AVDD-supply = <&vcc_3v3_sys>; IOVDD-supply = <&vcc_3v3_sys>; DRVDD-supply = <&vcc_3v3_sys>; DVDD-supply = <&vcc_1v8>; };
$ amixer
Simple mixer control 'ASI1 Sel',0
Capabilities: enum
Items: 'I2C offset' 'Left' 'Right' 'LeftRightDiv2'
Item0: 'I2C offset'
Simple mixer control 'Amp Gain',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 28
Mono: 20 [71%] [18.50dB]
Simple mixer control 'Digital Volume Control',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 110
Mono: 50 [45%] [-60.00dB]
$aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AM62LHAVN [AM62L-HAVN], device 0: davinci-mcasp.0-tas2562-amplifier tas2562-amplifier-0 [davinci-mcasp.0-tas2562-amplifier tas2562-amplifier-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ aplay -Dplughw:0,0 -f S24_LE -r 44100 Bontempi-B3-C5.wav
Warning: format is changed to S16_LE
Playing WAVE 'Bontempi-B3-C5.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
But aplay command is hang no response, no sound over i2s and also no clock over bclk line.
Please help me.
Thanks,