ASoC: pxa: remove pxa2xx-pcm driver, which caused regression

Petr Cvek petrcvekcz at gmail.com
Sun Sep 2 09:40:20 PDT 2018



Dne 2.9.2018 v 17:47 Robert Jarzmik napsal(a):
> Petr Cvek <petrcvekcz at gmail.com> writes:
> 
>> Dne 29.8.2018 v 16:11 Robert Jarzmik napsal(a):
>>> Petr Cvek <petrcvekcz at gmail.com> writes:
>>> If that's the case, Daniel would you have a look into it please ?
>>>
>> I've put printks in almost every sound function by now ;-). It gets
>> I got this log:
> ...zip...
> I got this log :
> [14540.460575]  ac97-0: adapter registered by pxa2xx-ac97
> [14540.474726]  ac97-0: snd_ac97_bus_scan_one(codec_num=0): vendor_id=0x574d4c13
> [14541.003160] mioa701-wm9713 mioa701-wm9713: ASoC: CODEC DAI wm9713-hifi not registered
> [14541.978576] wm97xx-core pxa2xx-ac97:0: wm97xx core found, id=0x574d4c13
> [14542.010897] wm9713-codec wm9713-codec: Control not supported for path Mic B Source -> [MPB] -> Mic B Pre Amp
> [14542.096874] wm9713-codec wm9713-codec: ASoC: no dapm match for Mic B Source --> MPB --> Mic B Pre Amp
> [14542.149488] wm9713-codec wm9713-codec: ASoC: Failed to add route Mic B Source -> MPB -> Mic B Pre Amp
> [14542.195525] TEST component: 5c700a04 pxa2xx-ac97
> [14542.201547] actually called=0
> [14542.205938] TEST component: 3b89ec70 wm9713-codec
> [14542.209549] TEST component: 58f79ee1 pxa-pcm-audio
> [14542.215826] actually called=0
> [14542.219567] mioa701-wm9713 mioa701-wm9713: wm9713-hifi <-> pxa2xx-ac97 mapping ok
> [14542.227201] TEST component: 5c700a04 pxa2xx-ac97
> [14542.232090] actually called=0
> [14542.236140] TEST component: 3b89ec70 wm9713-codec
> [14542.239595] TEST component: 58f79ee1 pxa-pcm-audio
> [14542.244281] actually called=0
> [14542.247944] mioa701-wm9713 mioa701-wm9713: wm9713-aux <-> pxa2xx-ac97-aux mapping ok
> [14542.255778] wm9713-codec wm9713-codec: ASoC: mux Sidetone Mux has no paths
> [14542.312582] mioa701-wm9713 mioa701-wm9713: Be warned that incorrect mixers/muxes setup will lead to overheating and possible destruction of your device. Do not use without a good knowledge of mio's board design!
> 

So it does call pxa2xx_pcm_preallocate_dma_buffer() twice on pxa2xx-ac97
too. The weird thing is it doesn't cause warning at rmmod or playback close.

>> It may be possible to remove the block bellow from SSP and I2S drivers
>> but it will change the situation for every platform which uses SSP or I2S:
>>
>> 	.ops		= &pxa2xx_pcm_ops,
>> 	.pcm_new	= pxa2xx_soc_pcm_new,
>> 	.pcm_free	= pxa2xx_pcm_free_dma_buffers,
>>
>> The generic functions would be then called just from pxa-pcm-audio
>> component.
> That's up to Daniel and you.
> 
OK, I will send patches soon, with AC97 patched too... Thanks for helping.

Best regards,
Petr



More information about the linux-arm-kernel mailing list