Audio driver of imax8mm platform

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Audio driver of imax8mm platform

1,270 次查看
CheLL
Contributor III

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!

0 项奖励
回复
4 回复数

1,256 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

1,217 次查看
CheLL
Contributor III

①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

0 项奖励
回复

1,216 次查看
CheLL
Contributor III

①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

0 项奖励
回复

1,247 次查看
CheLL
Contributor III
Hi weidong_sun: Thank you for your answer, There are also the following questions ①If I want to add a codec, the Android upper layer can be automatically called, what should I do? Codec is the way of Kconfig. ②[Sample rate is 88200Hz, device only supports <= 48000HZ] error log appears in the playback of the currently used codec, but I cannot find the position of this sentence in the source code. Hope you answer! Best wishes. CheLL
0 项奖励
回复