This solution provides detailed steps for adding a new sound device on MSM8x60 Linux Android Platform.
Below steps to be followed for adding a new sound device
1. Add new sound device profile in the kernel sound driver
2. Add new sound device in ACDB file
3. Add new sound device in the user-space ACDB library
4. Add new sound device in Audio HAL
1. Add New sound device in the Kernel Sound Driver
For adding new sound device below parameters need to consider :
a. Number of channel supported by the new device
b. Copp_id for the new device - This ID is different for RX and TX devices and depends on different I2S channels
c. Supported sample rate by the device
d. Codec Hardware profile for the new device if needed any
e. MIC bias for TX and Power Amp for RX device if needed any
In the kernel Audio sound driver below two files needs to be modified for adding the new sound device:
a. Kernel/arch/arm/mach-msm/qdsp6v2/board-msm8x60-audio.c - In this file new device profile needs to be added
b. Kernel/arch/arm/mach-msm/qdsp6v2/timpani_profile_8x60.h � In this codec hardware profile needs to be added
Adding new Sound Device � Step by Step Instructions :
a. Insert the new Sound Device into Platform Devices list in board-msm8x60-audio.c file. This platform list will be auto populated and new device can be accessed from user-space .
static struct platform_device *snd_devices_ffa[] __initdata = {
…
…
…
#ifdef NEW_DEVICE
&msm_imic_new_device, //new device
No comments:
Post a Comment