1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

ALSA's TinyCompress Audio Library Gets A Release

Free Software

Published on 24 February 2013 07:29 PM EST
Written by Michael Larabel in Free Software
8 Comments

Today marks the first tagged release of TinyCompress, a user-space library that takes advantage of ALSA Compressed APIs that were recently introduced in the mainline Linux kernel. This library allows for feeding compressed data like MP3 files directly to ALSA compressed audio devices. This allows for offloading more of the audio playback process to supported audio hardware.

Last August I wrote about this new support in the Linux kernel for ALSA audio compression offloading, "One of the new ALSA features is support for audio compression offloading where the DSP handling of compressed audio formats can be offloaded from the CPU to a DSP, which can be more efficient and lower the CPU usage. The kernel core API for this audio compression offloading was pushed into the Linux 3.3 kernel while with the Linux 3.7 kernel there will be ASoC integration support as well as support for compression offloading with the Intel Medfield audio driver."

There's also additional information on this ALSA audio compression API within the Linux kernel source tree at Documentation/sound/alsa/compress_offload.txt:
Since its early days, the ALSA API was defined with PCM support or constant bitrates payloads such as IEC61937 in mind. Arguments and returned values in frames are the norm, making it a challenge to extend the existing API to compressed data streams.

In recent years, audio digital signal processors (DSP) were integrated in system-on-chip designs, and DSPs are also integrated in audio codecs. Processing compressed data on such DSPs results in a dramatic reduction of power consumption compared to host-based processing. Support for such hardware has not been very good in Linux, mostly because of a lack of a generic API available in the mainline kernel.

Rather than requiring a compatibility break with an API change of the ALSA PCM interface, a new 'Compressed Data' API is introduced to provide a control and data-streaming interface for audio DSPs.

The design of this API was inspired by the 2-year experience with the Intel Moorestown SOC, with many corrections required to upstream the API in the mainline kernel instead of the staging tree and make it usable by others.
TinyCompress is a project that's been in development for nearly one year and today saw its v0.1.0 release. TinyCompress is a user-space library for taking advantage of this compressed API. Also included with TinyCompress is a sample command-line player showing how MP3 files can be fed to this audio compression kernel API. The work is dual-licensed under the LGPL and BSD.

TinyCompress was written by a developer at Intel. While it's too bad that sending compressed audio data won't work over the existing ALSA kernel APIs, it's nice that there's TinyCompress as a sample library implementation.

The Git repository for TinyCompress can be found at ALSA-Project.org. The TinyCompress 0.1.0 release announcement can be found on the ALSA mailing list.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. Intel P-State vs. CPUFreq Benchmarks On The i7-5960X
  2. RadeonSI GLAMOR Benchmarks With X.Org Server 1.16
  3. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
  4. MSAA RadeonSI Gallium3D Performance Preview
Latest Linux News
  1. X.Org Server Shatter Project Fails
  2. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  3. Fedora 21 Alpha Finally Coming Next Week
  4. Ubuntu Touch/Phone Reaches Its First RTM Image
  5. The KMS Mode-Setting Driver Was Imported For X.Org Server 1.17
  6. SNA & UXA Intel Benchmarks With X.Org Server 1.16
  7. Graphics Driver Changes Coming In The Linux 3.18 Kernel
  8. Tropico 5 Being Released For Linux Gamers This Week
  9. Eclipse IDE Starts Firing Up On Wayland's Weston
  10. OpenSUSE Announcement On SUSE's Recent Merger
Latest Forum Discussions
  1. Stop grabbing my keyboard :(
  2. New Group Calls For Boycotting Systemd
  3. Updated and Optimized Ubuntu Free Graphics Drivers
  4. Best Radeon for a Power Mac G5?
  5. New stress testing utility for GPU's
  6. Hd 6850
  7. support for first generation UVD blocks (RV6xx, RS780, RS880 and RV790)
  8. Nvidia joins the ranks of Apple and Microsoft