]> Git Repo - linux.git/commitdiff
ASoC: sglt5000: Provide the reg_stride field
authorFabio Estevam <[email protected]>
Thu, 4 Jul 2013 23:01:01 +0000 (20:01 -0300)
committerMark Brown <[email protected]>
Mon, 15 Jul 2013 10:13:37 +0000 (11:13 +0100)
sgtl5000 has 16-bit registers, and only even numbers are valid for its registers
addresses.

Let regmap knows about this feature by specifying the 'reg_stride' field, so
that it can access only the valid registers.

Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/sgtl5000.c

index d441559dc92caaa5f38a847effeebb681531f5a1..7c99f3ccb1c6cba377f9aad9329356696e095787 100644 (file)
@@ -1470,6 +1470,7 @@ static struct snd_soc_codec_driver sgtl5000_driver = {
 static const struct regmap_config sgtl5000_regmap = {
        .reg_bits = 16,
        .val_bits = 16,
+       .reg_stride = 2,
 
        .max_register = SGTL5000_MAX_REG_OFFSET,
        .volatile_reg = sgtl5000_volatile,
This page took 0.057047 seconds and 4 git commands to generate.