Skip to contentSkip to conversation

wm8731 capture -dapm failure

DISCUSSION Alan Horstmann 2 participants 3 messages Sep 9, 2008

lore
Share & tools
lore
#0 lore raw

I've started a new thread to avoid confusion, and copied bits here:

Quoted 11 lines · Mark Brown
Quoted 3 lines · Alan Horstmann

With just this one change we have been successful in running the codec over spi.  At present we do have an issue with dapm during capture -nothing is being turned on!  Any pointers would be appreciated.

If you define DEBUG when building soc-dapm.c (a define at the top of the source file will do the trick) then it will be very verbose about the decisions it's making - that will normally point out the problem. Probably either one of the input controls is not configured to make a path from the input pins to the ADC or the input has been mistakenly marked as disabled.

That gets us lots of info to digest, and it does look like there are no dapm capture paths -listing below. What we cannot fathom is why!

Can users of wm8731 confirm successful capture with dapm on any platform? It is not clear at this stage whether we are looking for a problem on our platform, or a general bug in the driver dapm code.

Any assistance would be appreciated.

Alan

widget ADC
HiFi Capture stream Capture event 1
widget DAC
HiFi Playback stream Capture event 1
reg old 5f new 5f change 0
reg old 5f new 5f change 0
DAPM WM8731 snd_soc_dapm_stream_event
Ext Spk: Off in 0 out 1
in static LHPOUT
Int Mic: Off in 1 out 0
out static Mic Bias
LLINEIN: Off in 0 out 1
out static Line Input
RLINEIN: Off in 0 out 1
out static Line Input
MICIN: Off in 1 out 0
in static Mic Bias
out static Mic Bias
Mic Bias: Off in 1 out 0
in static Int Mic
in static MICIN
out static MICIN
Line Input: Off in 0 out 1
in static RLINEIN
in static LLINEIN
out Line In Input Mux
Input Mux: Off in 0 out 1
in Line In Line Input
out static ADC
ADC: Off in 0 out 1
in static Input Mux
RHPOUT: Off in 0 out 1
in static Output Mixer
ROUT: Off in 0 out 1
in static Output Mixer
LHPOUT: Off in 0 out 1
in static Output Mixer
out static Ext Spk
LOUT: Off in 0 out 1
in static Output Mixer
DAC: Off in 0 out 4
out HiFi Playback Switch Output Mixer
Output Mixer: Off in 0 out 4
in HiFi Playback Switch DAC
out static LOUT
out static LHPOUT
out static ROUT
out static RHPOUT

#1 lore raw
Quoted 15 lines · Alan Horstmann

I've started a new thread to avoid confusion, and copied bits here:

Quoted 11 lines · Mark Brown
Quoted 3 lines · Alan Horstmann

With just this one change we have been successful in running the codec over spi. At present we do have an issue with dapm during capture -nothing is being turned on! Any pointers would be appreciated.

If you define DEBUG when building soc-dapm.c (a define at the top of the source file will do the trick) then it will be very verbose about the decisions it's making - that will normally point out the problem. Probably either one of the input controls is not configured to make a path from the input pins to the ADC or the input has been mistakenly marked as disabled.

Quoted 7 lines

That gets us lots of info to digest, and it does look like there are no dapm capture paths -listing below. What we cannot fathom is why!

Can users of wm8731 confirm successful capture with dapm on any platform? It is not clear at this stage whether we are looking for a problem on our platform, or a general bug in the driver dapm code.

Afaik, it works on corgi.

Quoted 2 lines

Any assistance would be appreciated.

Could you define your _intended_ input path i.e.

Mic --> Mixer --> ADC

Quoted 25 lines

Alan

widget ADC
HiFi Capture stream Capture event 1
widget DAC
HiFi Playback stream Capture event 1
reg old 5f new 5f change 0
reg old 5f new 5f change 0
DAPM WM8731 snd_soc_dapm_stream_event
Ext Spk: Off in 0 out 1
in static LHPOUT
Int Mic: Off in 1 out 0
out static Mic Bias
LLINEIN: Off in 0 out 1
out static Line Input
RLINEIN: Off in 0 out 1
out static Line Input
MICIN: Off in 1 out 0
in static Mic Bias
out static Mic Bias
Mic Bias: Off in 1 out 0
in static Int Mic
in static MICIN
out static MICIN
Line Input: Off in 0 out 1

Quoted 8 lines

in static RLINEIN
in static LLINEIN
out Line In Input Mux
Input Mux: Off in 0 out 1
in Line In Line Input
out static ADC
ADC: Off in 0 out 1
in static Input Mux

No valid input to ADC.

We currently have

R/LLINEIN --> Input Mux --> ADC

but R/LLINEIN are not active. Call snd_soc_dapm_enable_pin(codec, pin) to activate.

Liam

#2 lore raw
Quoted 11 lines · you

No valid input to ADC.

We currently have

R/LLINEIN --> Input Mux --> ADC

but R/LLINEIN are not active. Call snd_soc_dapm_enable_pin(codec, pin) to activate.

Liam

Thanks, Liam; I think we had failed to realise the significance of machine-specific code in the dapm system, rather expecting everything to be available. Indeed the line inputs are set not active. Will pursue this tomorrow.

Alan