SlideShare a Scribd company logo
Linux Audio for Smartphones
A b i f i t d tiA brief introduction
www.wolfsonmicro.com1 April 2011© 2011 Wolfson Microelectronics plc
Overview
• Modern smartphone audio subsystems
di i l b dd d l i• Traditional embedded OS solutions
• ASoC – the Linux solution
D i i• Design overview
• Brief introduction to chip drivers
• Walk through of system audio driver construction• Walk through of system audio driver construction
• Future directions
www.wolfsonmicro.com2 © 2011 Wolfson Microelectronics plc April 2011
Modern smartphone audio subsystems
HDMI
CPU Mixing
Earpiece Speaker
CPU Mixing
Headset Dock
Bluetooth
Cellular
dmodem
www.wolfsonmicro.com3 April 2011© 2011 Wolfson Microelectronics plc
Flexibility and complexity
www.wolfsonmicro.com4 © 2011 Wolfson Microelectronics plc April 2011
Android audio stack
www.wolfsonmicro.com5 © 2011 Wolfson Microelectronics plc April 2011
Traditional software driver model
Memory Processing OutputMemory Processing Output
www.wolfsonmicro.com6 © 2011 Wolfson Microelectronics plc April 2011
Traditional software model
• Monolithic driver for entire subsystem
• N t t f i ff CPU h d• No structure for managing off‐CPU hardware
• Very little reuse
• Detailed register level knowledge of componentsDetailed register level knowledge of components
• Time consuming
• Tight coupling between application and kernel codeTight coupling between application and kernel code
www.wolfsonmicro.com7 © 2011 Wolfson Microelectronics plc April 2011
The Linux solution
• ASoC embedded audio framework
• P id t d d ALSA i t f t li ti• Provides standard ALSA interface to applications
• Merged since 2.6.21, April 2007
• Reusable drivers for each chipReusable drivers for each chip
• CPU audio interface, DMA controller and “CODEC”
• Minimal per‐system drivers linking themMinimal per system drivers linking them
• Automatic and transparent power management
• Configuration done by applicationsConfiguration done by applications
• Allows interactive tuning of system
• Keeps flexibility for application layer
• More reuse, less coupling
www.wolfsonmicro.com8 © 2011 Wolfson Microelectronics plc April 2011
Dynamic Audio Power Management
• Looks for audio paths connecting inputs to outputs
l i i h• Powers only components in an active path
• Automatically activates DACs and ADCs
DAC Speaker
Mixer
FM radio Headset
www.wolfsonmicro.com9 © 2011 Wolfson Microelectronics plc April 2011
ASoC CODEC driver
• Four classes of control
• A di i t l ( l ff t )• Audio processing controls (eg, volume, effects)
• Audio routing controls (DAPM controls and routes)
• Power controls (DAPM widgets, bias)Power controls (DAPM widgets, bias)
• Stream control (Digital audio streaming)
• Mostly direct mapping into register mapy pp g g p
• SOC_DOUBLE_R_TLV("DAC1 Volume", WM8994_DAC1_LEFT_VOLUME,
WM8994_DAC1_RIGHT_VOLUME, 1, 96, 0, digital_tlv),
www.wolfsonmicro.com10 © 2011 Wolfson Microelectronics plc April 2011
Application layer integration
• CPU audio stream management provided by the OS
• A di Fli P l A di• AudioFlinger or PulseAudio
• Determine and apply use case
• Run external utilities simple but slow• Run external utilities – simple but slow
• Call raw ALSA control APIs – maximum control, maximum effort
• Apply settings with ALSA UCM – standard configuration file formatpp y g g
• Stream audio
• ALSA PCM API
www.wolfsonmicro.com11 © 2011 Wolfson Microelectronics plc April 2011
System integration walkthrough
“Baseband” Headset
Speaker
S3C6410
WM8996
CODEC
Mics
WM9081
Amplifier Subwoofer
http://opensource.wolfsonmicro.com/content/speyside‐audio
p
http://opensource.wolfsonmicro.com/content/speyside audio
www.wolfsonmicro.com12 © 2011 Wolfson Microelectronics plc April 2011
Future directions
• Nicer handling of digital basebands
f• Greater use of DSP
• Enhanced features – ambient noise cancellation, beam forming, 
echo cancellation, offloaded decompression, speaker compensationecho cancellation, offloaded decompression, speaker compensation
• Even more dynamic reconfiguration of the audio subsystem
• Coefficient management and in‐system calibrationg y
• Use case development and management
• Greater adoption of UCM
• User interfaces for configuration development
• ASoC conference, 4th‐5th May
• http://www.slimlogic.co.uk/?p=268
www.wolfsonmicro.com13 © 2011 Wolfson Microelectronics plc April 2011

More Related Content

PPTX
Computer parts
PPT
S2C China ICCAD 2010 Presentation
PDF
PDF
Useful USB Gadgets on Linux
PDF
Embedded Android Market Development
PDF
PDF
PDF
MusicComputingControlBLADEGen5ManualWindows
Computer parts
S2C China ICCAD 2010 Presentation
Useful USB Gadgets on Linux
Embedded Android Market Development
MusicComputingControlBLADEGen5ManualWindows

What's hot (12)

PPTX
Introduction To The Beagleboard
PDF
MSI 300-Series Gaming Motherboard Brochure
PDF
Beaglebone And Android
PDF
Asus Tinker Board
PDF
my Windows 7 info
PPT
Putting an Apple IIgs BBS on the internet
PPTX
PCB Business Card
PDF
Mickey threats inside your platform final
PDF
Cyberhijacking Airplanes Truth or Fiction
ODP
Thotcon2013
PDF
Polstra 44con2012
Introduction To The Beagleboard
MSI 300-Series Gaming Motherboard Brochure
Beaglebone And Android
Asus Tinker Board
my Windows 7 info
Putting an Apple IIgs BBS on the internet
PCB Business Card
Mickey threats inside your platform final
Cyberhijacking Airplanes Truth or Fiction
Thotcon2013
Polstra 44con2012
Ad

Viewers also liked (6)

PDF
Kernelci.org needs you!
PDF
What's going on with SPI
PDF
Regulators learning to play with others
PDF
LCU13: Linaro Stable Kernel
PDF
regmap: The power of subsystems and abstractions
PDF
I2C Subsystem In Linux-2.6.24
Kernelci.org needs you!
What's going on with SPI
Regulators learning to play with others
LCU13: Linaro Stable Kernel
regmap: The power of subsystems and abstractions
I2C Subsystem In Linux-2.6.24
Ad

Similar to Linux audio for smartphones (20)

PPT
Corp ppt03deck 8.18.11
PPT
Track F- Designing the kiler soc - sonics
PDF
Track 1 session 2 - st dev con 2016 - dsp concepts - innovating iot+wearab...
PPTX
mobile-application_develop_android_MOD1.pptx
PPTX
mobile-application_develop_android_MOD1.pptx
PPTX
Mobile Ecosystem
PDF
ELCE 2010 - State Of Multimedia In 2010 Embedded Linux Devices
PPTX
889448 634356855122132416
DOC
Copy of [ForKernelWifi]sudharsan-resume-2016
PPTX
Mobile phones
PDF
mobile ecosystem and mobile 2.0
PDF
Operating systems essentials & Android OS concepts
PDF
BSP Developer Must Know about Android.pdf
PPTX
Ppt on android
PPTX
Mobile operating system
PDF
mobileoperatingsystem-150823181359-lva1-app6892.pdf
PPT
Tips for Startups
PPTX
Lesson 02 operating system
PDF
14180203 an-introduction-to-android
PDF
Seminar report on Symbian OS
Corp ppt03deck 8.18.11
Track F- Designing the kiler soc - sonics
Track 1 session 2 - st dev con 2016 - dsp concepts - innovating iot+wearab...
mobile-application_develop_android_MOD1.pptx
mobile-application_develop_android_MOD1.pptx
Mobile Ecosystem
ELCE 2010 - State Of Multimedia In 2010 Embedded Linux Devices
889448 634356855122132416
Copy of [ForKernelWifi]sudharsan-resume-2016
Mobile phones
mobile ecosystem and mobile 2.0
Operating systems essentials & Android OS concepts
BSP Developer Must Know about Android.pdf
Ppt on android
Mobile operating system
mobileoperatingsystem-150823181359-lva1-app6892.pdf
Tips for Startups
Lesson 02 operating system
14180203 an-introduction-to-android
Seminar report on Symbian OS

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Big Data Technologies - Introduction.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
cuic standard and advanced reporting.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Diabetes mellitus diagnosis method based random forest with bat algorithm
Big Data Technologies - Introduction.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Mobile App Security Testing_ A Comprehensive Guide.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
cuic standard and advanced reporting.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf

Linux audio for smartphones