Blaze AIC AIC3262 SW Release1

= Introduction = This document explains the steps involved in enabling the AIC3262 Audio playback/recording on Blaze Tablet2 platform

Blaze_AIC_Tablet2 = Blaze_Tablet2 + OMAP4 processor card with AIC3262 audio codec

This software release has been developed and verified in the following software and hardware environment.

OS Kernel: Linux® 3.0 Android:  Android IcecreamSandwich 4.0.1 Toolchain: CodeSourcery compiler version Sourcery G++ Lite 2010q1-202 for ARM GNU/Linux Reference hardware platforms: TI OMAP4 4460 ES1.1 HS blaze_aic_tablet2 with Build Host OS: Ubuntu Reference software release http://omapedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Downloading_Release_Software

This document assumes that
 * The user is famillier with Blaze Tablet2 platform. Please refer the info given here http://omapedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes.
 * User has access to Blaze Tablet2 platform
 * User has access to "OMAP4 Processor card with AIC3262 audio codec"

=Installation=
 * Hardware
 * Install the Processor card (OMAP4+AIC3262) onto Blaze Tablet2 platoform. This platform is referred as Blaze_AIC_Tablet2

=Release Content= This priliminary release Blaze_AIC_AIC3262_SW_Release1.zip contains two objects
 * Patch to be applied on top of the Kernel. Kernel can be pulled from http://omapedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Downloading_Release_Software
 * Release document (this document) to explain the steps involved to enable AIC3262 Audio playback/recording

Features supported in this release
 * 1) Fully compliant with ALSA
 * 2) Integrated the driver with OMAP4 ABE
 * 3) Tested Multimedia Headphone playback and headset microphone recording
 * 4) Tested for single I2S
 * 5) Multi I2S support is 'not' enabled in this release

=Build Instructions=

Kernel
This section explains the how to patch and build the kernel Unzip Blaze_AIC_AIC3262_SW_Release1.zip into a temporary directory. cd kernel/android-3.0 patch -p1 /Blaze_AIC_AIC3262_SW_Release1.patch Follow the build instructions given here http://omapedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Building_Kernel under http://omapedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Build_Instructions

tinyalsa utils
Build the tinyalsa utils. These utilities are needed for playing back and recording wav files.

cd  mydroid make tinycap make tinyplay make tinymix

Flashing
follow the steps given in http://omapedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Preparing_eMMC_images

= AIC3262 Audio = This sections explains the top level audio architecture of Blaze_AIC_Tablet2

ABE
ABE audio routing is shown in this diagram

AIC3262
AIC3262 audio routing is shown in this diagram

Important mixer commands are shown in red color

Audio Architecture


= AIC3262 Audio Playback and Recording = Plugin a headset with L,R,M,G connections as shown here

Legacy Mode
tinymix 172 1 tinymix 169 1 tinymix 65  6 tinyplay data/ -d 6
 * Playback on heaphones

tinymix 126 1 tinymix 135 1 tinymix 69 60 tinymix 73 17152 tinycap data/ -d 6 -c 2 -r 48000 -b 16
 * Record from headset microphone

ABE Mode
tinymix 23 120 tinymix 6 120 tinymix 51  1 tinymix 32  1 tinymix 36  1 tinymix 172 1 tinymix 169 1 tinymix 65  6 tinyplay data/ tinyplay data/ -d 5
 * Playback on heaphones
 * to playback on multimedia Front end
 * to playback on low power front end

tinymix 55  9 tinymix 54 10 tinymix 126 1 tinymix 135 1 tinymix 69 60 tinymix 73 17152 tinycap data/ -d 1 -c 2 -r 48000 -b 16
 * Record from headset microphone

Known Issues

 * Release is Tested only on Blaze_AIC Tablet 2
 * Preliminary release. Originally intended to be used for board bring up, targeted towards uncovering hardware issues.
 * Headphone Music playback and Headset mic recording features are functional. however,
 * Headphone playback has pop noise at start/stop
 * Headset mic recording works only on stereo configuration
 * Playback and recording from ICS GUI are not functional in this release.