[alsa-devel] TLV320AIC32x4 driver configuration for playing wav file using aplay

Rahul Panwar panwar.rahul at gmail.com
Tue Jun 17 17:00:35 CEST 2014


Hi,

We integrated TLV320AIC32x4  codec to OMAP-L138 Soc board. We are using
Linux kernel 3.3.0 with driver of TLV320AIC32x4. Driver is successfully
detecting.

But we are not able to play a wav file using aplay. When we are trying to
play any WAV file using aplay, it is not enabling the DAC and file failed
to play.

When we try to debug that using debugfs, it look like, it is only setting
"LOR" ==> "LOR Powe" ==> "LOR Output Mixer".
But after that there is no further Input / path / output configuration
found. As per the driver it should enable the "Right DAC" via "R_DAC
Switch".
When it will enable "Right DAC", DAC will be enabled and it may start
playing WAV file after that.

We are not able the get the cause, what we are doing wrong. What should we
need to do to enable DAC.

I am attaching the debugfs log for TLV320AIC32x4 dapm, it may be helpful to
understand the cause, which we are unable to get.

-- 
Thanks and Regards,
Rahul Panwar
www.linuxexplore.com
-------------- next part --------------
==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Headphone Jack <==
Headphone Jack: Off  in 0 out 1
 in  "static" "HPR"
 in  "static" "HPL"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Line Out <==
Line Out: Off  in 0 out 1
 in  "static" "LOR"
 in  "static" "LOL"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Line In <==
Line In: Off  in 1 out 0
 out "static" "IN1_R"
 out "static" "IN1_L"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Onboard Mic <==
Onboard Mic: Off  in 1 out 0
 out "static" "IN3_R"
 out "static" "IN3_L"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Left DAC <==
Left DAC: Off  in 0 out 0 - R63(0x3f) bit 7
 stream Left Playback inactive

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/HPL Output Mixer <==
HPL Output Mixer: Off  in 0 out 1
 out "static" "HPL Power"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/HPL Power <==
HPL Power: Off  in 0 out 1 - R137(0x89) bit 5
 in  "static" "HPL Output Mixer"
 out "static" "HPL"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/LOL Output Mixer <==
LOL Output Mixer: Off  in 0 out 1
 out "static" "LOL Power"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/LOL Power <==
LOL Power: Off  in 0 out 1 - R137(0x89) bit 3
 in  "static" "LOL Output Mixer"
 out "static" "LOL"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Right DAC <==
Right DAC: Off  in 0 out 0 - R63(0x3f) bit 6
 stream Right Playback inactive

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/HPR Output Mixer <==
HPR Output Mixer: Off  in 0 out 1
 out "static" "HPR Power"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/HPR Power <==
HPR Power: Off  in 0 out 1 - R137(0x89) bit 4
 in  "static" "HPR Output Mixer"
 out "static" "HPR"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/LOR Output Mixer <==
LOR Output Mixer: Off  in 0 out 1
 out "static" "LOR Power"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/LOR Power <==
LOR Power: Off  in 0 out 1 - R137(0x89) bit 2
 in  "static" "LOR Output Mixer"
 out "static" "LOR"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Left Input Mixer <==
Left Input Mixer: Off  in 0 out 0
 out "static" "Left ADC"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Right Input Mixer <==
Right Input Mixer: Off  in 0 out 0
 out "static" "Right ADC"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Left ADC <==
Left ADC: Off  in 0 out 0 - R81(0x51) bit 7
 stream Left Capture inactive
 in  "static" "Left Input Mixer"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Right ADC <==
Right ADC: Off  in 0 out 0 - R81(0x51) bit 6
 stream Right Capture inactive
 in  "static" "Right Input Mixer"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/Mic Bias <==
Mic Bias: Off  in 0 out 0 - R179(0xb3) bit 6

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/HPL <==
HPL: Off  in 0 out 1
 in  "static" "HPL Power"
 out "static" "Headphone Jack"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/HPR <==
HPR: Off  in 0 out 1
 in  "static" "HPR Power"
 out "static" "Headphone Jack"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/LOL <==
LOL: Off  in 0 out 1
 in  "static" "LOL Power"
 out "static" "Line Out"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/LOR <==
LOR: Off  in 0 out 1
 in  "static" "LOR Power"
 out "static" "Line Out"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/IN1_L <==
IN1_L: Off  in 1 out 0
 in  "static" "Line In"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/IN1_R <==
IN1_R: Off  in 1 out 0
 in  "static" "Line In"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/IN2_L <==
IN2_L: Off  in 1 out 0

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/IN2_R <==
IN2_R: Off  in 1 out 0

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/IN3_L <==
IN3_L: Off  in 1 out 0
 in  "static" "Onboard Mic"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/IN3_R <==
IN3_R: Off  in 1 out 0
 in  "static" "Onboard Mic"

==> /sys/kernel/debug/tlv320aic32x4.5-0018/dapm/bias_level <==
Standby



More information about the Alsa-devel mailing list