TB2026-YDS Firmware
Loading...
Searching...
No Matches
sink_i2s_dac.h
Go to the documentation of this file.
1
13#pragma once
14
15#include "esp_err.h"
16#include <stdbool.h>
17#include "audio_sink.h"
18
29esp_err_t sink_i2s_dac_init(void);
30
37
46esp_err_t sink_i2s_dac_output_enable(bool enable);
47
56esp_err_t sink_i2s_dac_amp_enable(bool enable);
esp_err_t sink_i2s_dac_output_enable(bool enable)
Enable or mute the DAC analog output via the PCM5242 XSMT pin.
Definition sink_i2s_dac.c:20
const audio_sink_t * sink_i2s_dac_get(void)
Get the wired-DAC sink (I2S → PCM5242 → MAX97220 → jack).
Definition sink_i2s_dac.c:85
esp_err_t sink_i2s_dac_init(void)
Bring up the wired path's I2S bus; the sink owns the channel handle.
Definition sink_i2s_dac.c:32
esp_err_t sink_i2s_dac_amp_enable(bool enable)
Enable or shut down the MAX97220 headphone amplifier via its SHDN pin.
Definition sink_i2s_dac.c:26
A PCM output backend (wired I2S DAC or Bluetooth A2DP).
Definition audio_sink.h:33