PebbleOS v4.47.0-1075-g013613c8a
Loading...
Searching...
No Matches
Cirrus Logic WM8994

Audio codec driver for the WM8994, playing to its headphone output. More...

Data Structures

struct  pbl_audio_wm8994
 WM8994 codec. More...
 

Macros

#define PBL_AUDIO_WM8994_DEFINE(sym, _name, _bus, _addr)
 Define a WM8994 codec.
 

Detailed Description

Audio codec driver for the WM8994, playing to its headphone output.

The codec is the slave of an I2S link on its first audio interface, its clocks from the master clock at 256 times the rate on MCLK1.


Data Structure Documentation

◆ pbl_audio_wm8994

struct pbl_audio_wm8994

WM8994 codec.

Data Fields
struct pbl_audio_codec codec Codec.
struct pbl_i2c_dev i2c Control port.

Macro Definition Documentation

◆ PBL_AUDIO_WM8994_DEFINE

#define PBL_AUDIO_WM8994_DEFINE (   sym,
  _name,
  _bus,
  _addr 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_audio_wm8994, struct pbl_audio_codec, codec) { \
.codec = PBL_AUDIO_CODEC_INIT(sym, _name, pbl_audio_wm8994_init, &(_bus)->dev, \
&pbl_audio_wm8994_ops), \
.i2c = PBL_I2C_DEV(_bus, _addr), \
}
WM8994 codec.
Definition wm8994.h:22
A codec: a separate chip converting between the link and the analog side.
Definition audio.h:263
#define PBL_AUDIO_CODEC_INIT(sym, _name, _init, _parent, _ops)
Initializer of a struct pbl_audio_codec.
Definition audio.h:300
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:132
#define PBL_I2C_DEV(_bus, _addr)
Initializer for a struct pbl_i2c_dev.
Definition i2c.h:136

Define a WM8994 codec.

Parameters
symSymbol of the codec.
_nameDevice name.
_busI2C bus.
_addr7-bit I2C address.