Sound Open Firmware
Loading...
Searching...
No Matches
clk.h File Reference
Include dependency graph for clk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  clock_notify_data
struct  freq_table
struct  clock_info

Macros

#define __SOF_LIB_CLK_H__
#define CLOCK_NOTIFY_PRE   0
#define CLOCK_NOTIFY_POST   1

Functions

uint32_t clock_get_freq (int clock)
void clock_set_freq (int clock, uint32_t hz)
void clock_low_power_mode (int clock, bool enable)
uint64_t clock_ticks_per_sample (int clock, uint32_t sample_rate)
static k_spinlock_key_t clock_lock (void)
static void clock_unlock (k_spinlock_key_t key)
static struct clock_info * clocks_get (void)

Variables

struct k_spinlock clk_lock

Macro Definition Documentation

◆ __SOF_LIB_CLK_H__

#define __SOF_LIB_CLK_H__

◆ CLOCK_NOTIFY_POST

#define CLOCK_NOTIFY_POST   1

◆ CLOCK_NOTIFY_PRE

#define CLOCK_NOTIFY_PRE   0

Function Documentation

◆ clock_get_freq()

uint32_t clock_get_freq ( int clock)

◆ clock_lock()

k_spinlock_key_t clock_lock ( void )
inlinestatic

◆ clock_low_power_mode()

void clock_low_power_mode ( int clock,
bool enable )

◆ clock_set_freq()

void clock_set_freq ( int clock,
uint32_t hz )

◆ clock_ticks_per_sample()

uint64_t clock_ticks_per_sample ( int clock,
uint32_t sample_rate )

◆ clock_unlock()

void clock_unlock ( k_spinlock_key_t key)
inlinestatic

◆ clocks_get()

struct clock_info * clocks_get ( void )
inlinestatic

Variable Documentation

◆ clk_lock

struct k_spinlock clk_lock
extern