PebbleOS v4.45.0-50-g17e860a43
Loading...
Searching...
No Matches
pbl_audio_codec_ops Struct Reference

Codec driver operations, called with the lock of the linked device held. More...

#include <audio.h>

Data Fields

void(* get_caps )(const struct pbl_audio_codec *codec, struct pbl_audio_caps *caps)
 Report the gain range in the gain fields of caps.
 
int(* enable )(const struct pbl_audio_codec *codec, const struct pbl_audio_codec_cfg *cfg)
 Power up for a stream whose clocks run, ending with the gain and mute applied.
 
int(* disable )(const struct pbl_audio_codec *codec)
 Power down.
 
int(* set_gain )(const struct pbl_audio_codec *codec, int32_t gain_mdb)
 Set the gain while enabled.
 
int(* set_mute )(const struct pbl_audio_codec *codec, bool mute)
 Set the mute while enabled.
 

Detailed Description

Codec driver operations, called with the lock of the linked device held.

Field Documentation

◆ disable

int(* pbl_audio_codec_ops::disable) (const struct pbl_audio_codec *codec)

Power down.

◆ enable

int(* pbl_audio_codec_ops::enable) (const struct pbl_audio_codec *codec, const struct pbl_audio_codec_cfg *cfg)

Power up for a stream whose clocks run, ending with the gain and mute applied.

Powers down again on failure.

◆ get_caps

void(* pbl_audio_codec_ops::get_caps) (const struct pbl_audio_codec *codec, struct pbl_audio_caps *caps)

Report the gain range in the gain fields of caps.

◆ set_gain

int(* pbl_audio_codec_ops::set_gain) (const struct pbl_audio_codec *codec, int32_t gain_mdb)

Set the gain while enabled.

◆ set_mute

int(* pbl_audio_codec_ops::set_mute) (const struct pbl_audio_codec *codec, bool mute)

Set the mute while enabled.


The documentation for this struct was generated from the following file: