---
name: "snd_soc_codec_init_regmap"
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_init_regmap"
---

# snd\_soc\_codec\_init\_regmap(9)

Initialize regmap instance for the CODEC

## NAME

snd\_soc\_codec\_init\_regmap - Initialize regmap instance for the CODEC

## SYNOPSIS

**void snd\_soc\_codec\_init\_regmap(struct snd\_soc\_codec \*** *codec***, struct regmap \*** *regmap***);**

## ARGUMENTS

*codec*

The CODEC for which to initialize the regmap instance

*regmap*

The regmap instance that should be used by the CODEC

## DESCRIPTION

This function allows deferred assignment of the regmap instance that is associated with the CODEC. Only use this if the regmap instance is not yet ready when the CODEC is registered. The function must also be called before the first IO attempt of the CODEC.

## COPYRIGHT
