Use the development board MIMX8MM6DVTLZAA, the codec chip above is wm8524,
Now replace it with aw8838 and use Kconfig, then what is the method for the Android hal layer to call the kcontrol provided by the digital pa driver, or which files should be modified?
Hope that answers, thank you great gods!
Hi CheLL,
All sound card configuration files are in "/android_build/device/fsl/common/audio-json"
----------------------
ak4458_config.json ak5558_config.json cs42888_config.json readme.txt spdif_config.json wm8960_config.json
ak4497_config.json cdnhdmi_config.json micfil_config.json rpmsg_config.json wm8524_config.json xtor_config.json
----------------------
You should create a new configuration file for your own audio codec by referring to wm8524_config.json
Then add it "./imx8m/evk_8mm/evk_8mm.mk",which is samilar to that of wm8524.
~/android_build/vendor/nxp-opensource/imx/alsa/tinyalsa_hal.cpp is audio hal, but you don't need to modify it.
Have a nice day!
B.R,
Weidong
①The directory of 【/android_build/device/fsl/common/imx_path】 is as follows
--------------------------------------------
build imx_path init input kernel-headers partition recovery security tools vndk wifi
--------------------------------------------
②evk_8mm.mk is in the following directory,the content inside evk_8mm.mk does not have wm8524
--------------------------------------------
/android_build/device/fsl/imx8m/evk_8mm
--------------------------------------------
③The directory of 【/android_build/vendor/nxp-opensource/imx/alsa】 is as follows
--------------------------------------------
Android.mk config_ak5558.h config_micfil.h config_sgtl5000.h config_wm8524.h config_xtor.h pcm_ext.c
audio_hardware.h config_cdnhdmi.h config_nullcard.h config_sii902x.h config_wm8958.h config_xtor_pico.h pcm_ext.h
config_ak4458.h config_cs42888.h config_rpmsg.h config_spdif.h config_wm8960.h control.c tinyalsa_hal.c
config_ak4497.h config_hdmi.h config_rt5645.h config_usbaudio.h config_wm8962.h control.h
--------------------------------------------
Is the modified file not jason but another file?
What is the modification method?
Hope your answers!
Best Wishs
①The directory of 【/android_build/device/fsl/common/imx_path】 is as follows
--------------------------------------------
build imx_path init input kernel-headers partition recovery security tools vndk wifi
--------------------------------------------
②evk_8mm.mk is in the following directory,the content inside evk_8mm.mk does not have wm8524
--------------------------------------------
/android_build/device/fsl/imx8m/evk_8mm
--------------------------------------------
③The directory of 【/android_build/vendor/nxp-opensource/imx/alsa】 is as follows
--------------------------------------------
Android.mk config_ak5558.h config_micfil.h config_sgtl5000.h config_wm8524.h config_xtor.h pcm_ext.c
audio_hardware.h config_cdnhdmi.h config_nullcard.h config_sii902x.h config_wm8958.h config_xtor_pico.h pcm_ext.h
config_ak4458.h config_cs42888.h config_rpmsg.h config_spdif.h config_wm8960.h control.c tinyalsa_hal.c
config_ak4497.h config_hdmi.h config_rt5645.h config_usbaudio.h config_wm8962.h control.h
--------------------------------------------
Is the modified file not jason but another file?
What is the modification method?
Hope your answers!
Best Wishs