|
PebbleOS v4.45.0-50-g17e860a43
|
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. | |
Codec driver operations, called with the lock of the linked device held.
| int(* pbl_audio_codec_ops::disable) (const struct pbl_audio_codec *codec) |
Power down.
| 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.
| 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.
| int(* pbl_audio_codec_ops::set_gain) (const struct pbl_audio_codec *codec, int32_t gain_mdb) |
Set the gain while enabled.
| int(* pbl_audio_codec_ops::set_mute) (const struct pbl_audio_codec *codec, bool mute) |
Set the mute while enabled.