snd_soc_test_bits
Prev | ASoC Core API | Next

## Name

snd_soc_test_bits — test register for change

## Synopsis

`int snd_soc_test_bits (` | struct snd_soc_codec * codec,
| unsigned int reg,
| unsigned int mask,
| unsigned int value`)`;

## Arguments

`codec`

  audio codec

`reg`

  codec register

`mask`

  register mask

`value`

  new value

## Description

Tests a register with a new value and checks if the new value is different from the old value.

Returns 1 for change else 0.

Prev | Up | Next
snd_soc_update_bits | Home | snd_soc_set_runtime_hwparams