pebble
  • Tutorials
  • Get the SDK
  • Guides
  • Documentation
  • PebbleOS
  • Mobile App
  • Examples
  • Index 01
  • Community
  • Blog
  • More
Privacy
Cookies
Publish

PebbleOS

  • Overview
  • Start here
    • Getting started guide
  • Pebble Firmware
    • Overview
    • Playground
    • Application SDK
  • Development
    • The pbl CLI
    • Build system
    • Samples
    • Emulator and simulator
    • Testing
    • Debugging
    • Conventions
  • System
    • Architecture overview
    • Kernel
    • Drivers
      • Device model
      • Simulators
      • Buses and I/O
      • Clocks, power and timing
      • Memory and storage
      • Display and graphics
      • Sensors and input
      • Audio and haptics
      • Power supply
      • System
    • Subsystems
    • Libraries
    • Third-party
  • Hardware
    • Boards
    • Board Add-ons
    • Programmers
  • Community
    • Contribution Guidelines
  • Reference
    • Reference
    • Kconfig options

Audio

An audio device streams one direction, playback or capture, between a ring of periods in memory and the hardware. The class calls the client back as each period completes, and the client refills or releases it. Codecs, digital audio interfaces and amplifiers are devices of their own, chained by the devicetree.

Directory

drivers/audio

Header

pbl/drivers/audio.h

Kconfig

CONFIG_AUDIO, enabled by the application

Role

MIC, SPEAKER

Sample

Microphone: Audio levels, Speaker: Streaming a tone

API

API reference

Drivers

Driver

Compatible

Kconfig

GPIO amplifier

awinic,aw8155

CONFIG_AUDIO_AMP_GPIO

SiFli SF32LB52 audio codec

sifli,sf32lb52-audcodec

CONFIG_AUDIO_SF32LB52_AUDCODEC

SiFli SF32LB52 PDM

sifli,sf32lb52-pdm

CONFIG_AUDIO_SF32LB52_PDM

QEMU audio device

qemu,pebble-audio

CONFIG_AUDIO_QEMU

Simulated microphone

—

CONFIG_AUDIO_SIM_MIC

Nordic nRF5 PDM

nordic,nrf52832-pdm

CONFIG_AUDIO_NRF5_PDM

Nordic nRF5 I2S

nordic,nrf52832-i2s

CONFIG_AUDIO_NRF5_I2S

Digital microphones

dmic-codec

CONFIG_AUDIO_DMIC

Dialog DA7212 codec

dlg,da7212

CONFIG_AUDIO_DA7212

Generated from PebbleOS 12b6c531f. This page is maintained in the pebbleos repository: docs/drivers/audio.md.