You are viewing outdated content for BUG. If you have a BUG Y.T. edition or 2.0 series device, please visit our updated wiki: http://wiki.buglabs.net



BUGsound

From BUG Wiki

Jump to: navigation, search

The Audio Module

With BUGsound, the BUG is a portable music player, speakerphone, audio processor, and more. BUGsound provides a flush-mount 20-mm speaker and omnidirectional microphone with hardware stereo codecs and four 3.5-mm stereo jacks for third-party inputs, outputs, headphones and microphones.

BUGsound
BUGsound


Contents

Product Specifications

  • Speaker:
    • Built-in mono micro-speaker, 20mm diameter
    • Impedance is 8Ω ±15% at 1.5kHz 1V
    • Input power is 0.5W nominal, 1.0W handling capacity
    • Sound pressure level is 82dB/w ±3 dB
  • Microphone:
    • Built-in electret microphone (mono)
    • Sensitivity: −45 ±4 dB (0dB=1V/Pa, 1kHz)
    • Omnidirectional
    • 20-16,000 Hz
    • > 58dB SNR
  • Stereo Codec:
    • DAC SNR 102 dBA
    • ADC SNR 92dB, THD -89dB (48ksps, 1kHz, 0dB PGA gain, -2dB full-scale input)
    • On-chip Headphone driver, 30mW per channel into 16Ω / 3.3V SPKVDD
    • 16/20/24/32-bit data
    • Data rates from 8 kHz to 96kHz
    • 3-D/Bass/Treble/EQ/De-Emphasis effects
    • Serial data bus supports I2S, left/right-justified, DSP, and TDM modes
    • ADC with programmable preamp gain or Automatic Gain Control (AGC) for record
    • Programmable filters for audible noise reduction
    • Codec Datasheet


Hardware Documentation


Software Documentation

Drivers

All BUG drivers can be found in the BUGlabs SVN.

The BUGsound drivers handle the basic operation of the module, including:

  • Tracking the number of BUGsound modules attached to the BUGbase
  • Resetting the audio codec
  • Detecting the insertion of devices into any of the four jacks (microphone, speaker, line in, line out)
  • Detecting the use of the volume control buttons
  • Controlling analog-to-digital and digital-to-analog conversion processes


IOCTL commands can be used to:

  • Activate, deactivate, and reset the module
  • Control LED operation
  • Read IOX register
  • Control speaker operation
  • Read and write the audio codec


OSGi Services

Method documentation for all OSGi services (from BUG and from other users) is available in the javadocs. The services listed below can be found in the com.buglabs.bug.module.audio.pub package in the latest revision of the BUG javadocs. Each service is an interface with its own methods.


Web Services

When a BUGsound module is attached, the Audio web service becomes available.