![]() |
piSmasher Configuration Libraries
piSmasher peripheral device configuration libraries
|
Functions | |
| int | tda998x_aud_set_port_enable (struct tda998x_dev *dev, uint8_t en) |
| Set Audio Port Enable. More... | |
| int | tda998x_aud_set_clk_enable (struct tda998x_dev *dev, uint8_t en) |
| Set Audio Clock Port Enable. More... | |
| int | tda998x_aud_reset_cts (struct tda998x_dev *dev) |
| Reset Audio CTS. More... | |
| static int | tda998x_aud_set_config (struct tda998x_dev *dev, enum tda998x_aud_fmt aud_fmt, enum tda998x_aud_i2s_fmt i2s_fmt, uint8_t i2s_chan, uint8_t dsd_chan, enum tda998x_clkpol_dsd dsd_clkpol, enum tda998x_swap_dsd dsd_swap, uint8_t layout, uint16_t latency, enum tda998x_dst_rate dst_rate) |
| Set Audio Input Configuration. More... | |
| static int | tda998x_aud_set_cts (struct tda998x_dev *dev, enum tda998x_cts_ref cts_ref, enum tda998x_aud_rate afs, enum tda998x_vid_fmt vout_fmt, enum tda998x_vert_freq vout_freq, uint32_t cts, uint16_t ctsX, enum tda998x_ctsk ctsK, enum tda998x_ctsm ctsM, enum tda998x_dst_rate dst_rate) |
| Set Audio CTS. More... | |
| static int | tda998x_aud_set_chan_status (struct tda998x_dev *dev, uint8_t pcm_id, uint8_t fmt_info, uint8_t copyright, uint8_t categoryCode, enum tda998x_aud_rate samp_freq, uint8_t clk_acc, uint8_t maxword_len, uint8_t word_len, uint8_t origsamp_freq) |
| Set Audio Output Channel Status. More... | |
| static int | tda998x_aud_set_chan_status_mapping (struct tda998x_dev *dev, uint8_t src_left[4], uint8_t chan_left[4], uint8_t src_right[4], uint8_t chan_right[4]) |
| Set Audio Channel Status Mapping. More... | |
| static int | tda998x_aud_set_mute (struct tda998x_dev *dev, bool mute) |
| Set Audio Mute. More... | |
| int | tda998x_aud_set_input (struct tda998x_dev *dev, struct tda998x_audin_cfg *audin_cfg) |
| int tda998x_aud_reset_cts | ( | struct tda998x_dev * | dev | ) |
#include <projects/lib/tda998x.c>
Reset Audio CTS.
| dev | TDA998x device structure pointer |
|
static |
#include <projects/lib/tda998x.c>
Set Audio Output Channel Status.
| dev | TDA998x device structure pointer |
|
static |
#include <projects/lib/tda998x.c>
Set Audio Channel Status Mapping.
| dev | TDA998x device structure pointer |
| src_left | Left channel source |
| chan_left | Left channel output |
| src_right | Right channel source |
| chan_right | Right channel output |
| int tda998x_aud_set_clk_enable | ( | struct tda998x_dev * | dev, |
| uint8_t | en | ||
| ) |
#include <projects/lib/tda998x.c>
Set Audio Clock Port Enable.
| dev | TDA998x device structure pointer |
| en | Clock port enable register value |
|
static |
#include <projects/lib/tda998x.c>
Set Audio Input Configuration.
| dev | TDA998x device structure pointer |
|
static |
#include <projects/lib/tda998x.c>
Set Audio CTS.
| dev | TDA998x device structure pointer |
| int tda998x_aud_set_input | ( | struct tda998x_dev * | dev, |
| struct tda998x_audin_cfg * | audin_cfg | ||
| ) |
#include <projects/lib/tda998x.c>
< Number of channels - 1
< Channel allocation code
|
static |
#include <projects/lib/tda998x.c>
Set Audio Mute.
| dev | TDA998x device structure pointer |
| mute | Mute enable value |
| int tda998x_aud_set_port_enable | ( | struct tda998x_dev * | dev, |
| uint8_t | en | ||
| ) |
#include <projects/lib/tda998x.c>
Set Audio Port Enable.
Lookup table for each pixel clock frequency's CTS value in kHz according to SCS table "Audio Clock Recovery CTS Values" Lookup table for each pixel clock frequency's Audio Clock Regeneration N, according to SCS Table "Audio Clock Recovery N Values" Lookup table for each pixel clock frequency's Audio Divider, according to SCS Table "Audio Clock Recovery Divider Values" Lookup table for converting a sampling frequency into the values required in channel status byte 3 according to IEC60958-3 Lookup table for each CTS X factor's k and m register values Table of registers to reset and release the CTS generator
| dev | TDA998x device structure pointer |
| en | Audio port enable register value |