Hi,
We are using OMAP-L138 CPU and TLV320AIC3256 codec in our custom board. We are using kernel 3.3.0 provided in davinci package. We are using "tlv320aic32x4" driver files for using TLV320AIC3256 codec (initially) without DSP. We are using codec in MASTER mode and a 25MHz crystal is using to generate the various clocks (BCLK/WCLK).
After lots of struggle, we successfully able to detect the codec and play the WAV file. But while playing a WAV file using aplay utility we are getting noisy sounds only instead of actual sound.
As per the "tlv320aic32x4" driver files, we have following controls and all are in OFF condition by default.
# amixer controls numid=1,iface=MIXER,name='PCM Playback Volume' numid=6,iface=MIXER,name='Mic PGA Switch' numid=9,iface=MIXER,name='ADC Level Volume' numid=7,iface=MIXER,name='ADCFGA Left Mute Switch' numid=8,iface=MIXER,name='ADCFGA Right Mute Switch' numid=19,iface=MIXER,name='AGC Attack Time' numid=20,iface=MIXER,name='AGC Decay Time' numid=15,iface=MIXER,name='AGC Gain Hysteresis' numid=16,iface=MIXER,name='AGC Hysteresis' numid=12,iface=MIXER,name='AGC Left Switch' numid=18,iface=MIXER,name='AGC Max PGA' numid=21,iface=MIXER,name='AGC Noise Debounce' numid=17,iface=MIXER,name='AGC Noise Threshold' numid=13,iface=MIXER,name='AGC Right Switch' numid=22,iface=MIXER,name='AGC Signal Debounce' numid=14,iface=MIXER,name='AGC Target Level' numid=11,iface=MIXER,name='Auto-mute Switch' numid=4,iface=MIXER,name='HP DAC Playback Switch' numid=2,iface=MIXER,name='HP Driver Gain Volume' numid=34,iface=MIXER,name='HPL Output Mixer IN1_L Switch' numid=33,iface=MIXER,name='HPL Output Mixer L_DAC Switch' numid=31,iface=MIXER,name='HPR Output Mixer IN1_R Switch' numid=30,iface=MIXER,name='HPR Output Mixer R_DAC Switch' numid=5,iface=MIXER,name='LO DAC Playback Switch' numid=3,iface=MIXER,name='LO Driver Gain Volume' numid=32,iface=MIXER,name='LOL Output Mixer L_DAC Switch' numid=29,iface=MIXER,name='LOR Output Mixer R_DAC Switch' numid=26,iface=MIXER,name='Left Input Mixer IN1_L P Switch' numid=27,iface=MIXER,name='Left Input Mixer IN2_L P Switch' numid=28,iface=MIXER,name='Left Input Mixer IN3_L P Switch' numid=10,iface=MIXER,name='PGA Level Volume' numid=23,iface=MIXER,name='Right Input Mixer IN1_R P Switch' numid=24,iface=MIXER,name='Right Input Mixer IN2_R P Switch' numid=25,iface=MIXER,name='Right Input Mixer IN3_R P Switch'
To get the sound on HeadPhone or LineOut, we are enabling following control set using amixer command:
amixer cset numid=4,iface=MIXER,name='HP DAC Playback Switch' 1 amixer cset numid=33,iface=MIXER,name='HPL Output Mixer L_DAC Switch' 1 amixer cset numid=30,iface=MIXER,name='HPR Output Mixer R_DAC Switch' 1 amixer cset numid=5,iface=MIXER,name='LO DAC Playback Switch' 1 amixer cset numid=32,iface=MIXER,name='LOL Output Mixer L_DAC Switch' 1 amixer cset numid=29,iface=MIXER,name='LOR Output Mixer R_DAC Switch' 1
After enabling above controls, we are able to listen noise only during playback of WAV using aplay command. We tried to connect the headphone jack to HPL and LOL as well but both are behaving same.
Please help us to identify, what we are doing wrong?
Regards,
Rahul Panwar