Blaze AIC AIC3262 SW Release2

From OMAPpedia

Jump to: navigation, search

Contents

[edit] Introduction

This document explains the steps involved in enabling the AIC3262 Audio playback/recording on Blaze_Tablet2 and Blaze platform.

Blaze_AIC_Tablet2 = Blaze_Tablet2 + OMAP4 processor card with AIC3262 audio codec

Blaze_AIC = Blaze + 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_tablet and TI OMAP4 4460 ES1.1 HS blaze
Build Host OS: Ubuntu
Daily Build Blaze_Tablet Version: IceCream_Blaze_Tablet_DailyBuild_270
Daily Build Blaze Version: IceCream_Blaze_DailyBuild_327

Reference software releasehttp://omapedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Downloading_Release_Software


This document assumes that


Release summary

[edit] Installation

Blaze_AIC_Tablet2
Blaze_AIC

[edit] Release Content

This release Blaze_AIC_AIC3262_SW_Release2.zip contains three files

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 Recording from Main Mic and Sub Mic on Blaze_AIC
  5. Tested Receiver(Earpiece) on Blaze_AIC
  6. Tested External Speaker playback on Blaze_AIC_Tablet2 and Blaze_AIC
  7. Tested for single I2S
  8. Multi I2S support is 'not' enabled in this release

[edit] Build Instructions

[edit] Android File System

This section explains how to patch and build the Android File System

Unzip Blaze_AIC_AIC3262_SW_Release2.zip into a temporary directory.
cd mydroid/device/ti/common-open
patch -p1 < {temporary directory}/Blaze_AIC_AIC3262_sw_release2_Audio_HAL.patch

Follow the build instructions given here: http://omappedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Building_Android_Filesystem_.28AFS.29_with_TI_Codecs_enabled under http://omappedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Build_Instructions

[edit] tinyalsa utils

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

cd   mydroid
make tinycap
make tinyplay
make tinymix

[edit] Kernel

This section explains how to patch and build the kernel

Unzip Blaze_AIC_AIC3262_SW_Release2.zip into a temporary directory.
cd kernel/android-3.0
patch -p1 < {temporary directory}/Blaze_AIC_AIC3262_sw_release2_kernel.patch

Follow the build instructions given here:http://omappedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Building_Kernel under http://omappedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Build_Instructions

[edit] Flashing

Follow the steps given in http://omapedia.org/wiki/L27.IS.1_OMAP4_Icecream_Sandwich_Release_Notes#Flashing_the_OMAP4_Hardware

[edit] AIC3262 Audio

This sections explains the top level audio architecture of Blaze_AIC_Tablet2/Blaze_AIC

[edit] ABE

ABE audio routing is shown in this diagram
OMAP4_ABE

[edit] AIC3262

AIC3262 audio routing is shown in this diagram
AIC3262_Routing

Important mixer commands are shown in red color

[edit] Audio Architecture

OMAP4_AIC3262_Audio_system_architecture

[edit] AIC3262 Audio Playback and Recording

Plugin a headset with L,R,M,G connections as shown here
Headset_L_R_M_G

[edit] Playback and Recording on Command Line

[edit] Legacy Mode

tinymix 172  1
tinymix 169  1
tinymix 65   6
tinyplay data/<wav file> -d 6
tinymix 66 1
tinymix 154 127
tinymix 157 127
tinymix 160 1
tinymix 165 1
 to playback on multimedia Front end
tinyplay data/<wav file>
 to playback on low power front end
tinyplay data/<wav file> -d 6
tinymix 126  1
tinymix 135  1
tinymix  69 60
tinymix  73 17152
tinycap data/<wav file> -d 6 -c 2 -r 48000 -b 16
tinymix 69  90
tinymix 83  1 
tinymix 117 1 
tinymix 126 0
tinymix 127 1
tinymix 128 1
tinymix 131 0
tinymix 132 0
tinymix 135 0
tinymix  73 17152
tinycap data/<wav file> -d 1 -c 2 -r 48000 -b 16
tinymix 69  90
tinymix 83  1 
tinymix 117 1 
tinymix 126 0
tinymix 127 1
tinymix 128 1
tinymix 131 0
tinymix 132 0
tinymix 135 0
tinymix  73 17152
tinycap data/<wav file> -d 1 -c 2 -r 48000 -b 16

[edit] ABE Mode

tinymix   6 120
tinymix  23 120
tinymix  32 1 
tinymix  36 1 
tinymix  51 1 
tinymix  65 6 
tinymix 169 1
tinymix 172 1 
 to playback on multimedia Front end
tinyplay data/<wav file>
 to playback on low power front end
tinyplay data/<wav file> -d 5
tinymix  66 1
tinymix 154 127
tinymix 157 127
tinymix 160 1
tinymix 165 1
 to playback on multimedia Front end
tinyplay data/<wav file>
 to playback on low power front end
tinyplay data/<wav file> -d 5
tinymix  54 10 
tinymix  55 9 
tinymix  69 60
tinymix 126 1 
tinymix 135 1 
tinymix  73 17152
tinycap data/<wav file> -d 1 -c 2 -r 48000 -b 16
tinymix  69 90
tinymix  83 1 
tinymix 117 1 
tinymix 126 0
tinymix 127 1
tinymix 128 1
tinymix 131 0
tinymix 132 0
tinymix 135 0
tinymix  73 17152
tinycap data/<wav file> -d 1 -c 2 -r 48000 -b 16
tinymix  69 90
tinymix  83 1 
tinymix 117 1 
tinymix 126 0
tinymix 127 1
tinymix 128 1
tinymix 131 0
tinymix 132 0
tinymix 135 0
tinymix  73 17152
tinycap data/<wav file> -d 1 -c 2 -r 48000 -b 16

[edit] Playback and Recording from ICS GUI on Blaze and Blaze Tablet2

Push the <media file> into the /sdcard directory of ICS filesystem.

[edit] Playback on headphone/headset

Insert the headphone/headset. In ICS GUI select music player application and select the <media file> from sdcard to playback the file.

[edit] Playback on speakers

Remove the headphone/headset. In ICS GUI select music player application and select the <media file> from sdcard to playback the file.

[edit] Recording from headset microphone on Blaze and Blaze Tablet2

Insert the headset.In ICS GUI select Sound Recorder application and select start recording.

[edit] Recording from main microphone on Blaze

Remove the headset.In ICS GUI select Sound Recorder application and select start recording.

[edit] Testing

Android Audio CTS and OMAP Audio TC tests are performed. Test results are captured in Blaze_AIC_AIC3262_SW_Release2_test_results.zip

The tests covered in this release are Unit tests, Functional tests and Reference Application tests.

The Audio TC is a system reliability test, the test cases were executed for audio functionality on Blaze_AIC_Tablet2 and Blaze_AIC.

[edit] Known Issues

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox