---
name: "snd_soc_codec_set_sysclk"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_soc_codec_set_sysclk"
---

# snd\_soc\_codec\_set\_sysclk(9)

configure CODEC system or master clock.

## NAME

snd\_soc\_codec\_set\_sysclk - configure CODEC system or master clock.

## SYNOPSIS

**int snd\_soc\_codec\_set\_sysclk(struct snd\_soc\_codec \*** *codec***, int** *clk\_id***, int** *source***, unsigned int** *freq***, int** *dir***);**

## ARGUMENTS

*codec*

CODEC

*clk\_id*

DAI specific clock ID

*source*

Source for the clock

*freq*

new clock frequency in Hz

*dir*

new clock direction - input/output.

## DESCRIPTION

Configures the CODEC master (MCLK) or system (SYSCLK) clocking.

## COPYRIGHT
