Date:2012-06-22 14:04:02 (11 years 5 months ago)
Author:Mark Brown
Message:ASoC: core: Try to use regmap if the driver doesn't set up any I/O

Since most new drivers are expected to use regmap and since frequently the
only thing we need to do in the CODEC probe function is configure the I/O
try to initialise the register I/O using regmap if the driver hasn't done
so after probe().

Signed-off-by: Mark Brown <>
Acked-by: Liam Girdwood <>
Files: sound/soc/soc-core.c (1 diff)

Change Details

10541054        }
10551055    }
1057    /* If the driver didn't set I/O up try regmap */
1058    if (!codec->control_data)
1059        snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP);
10571061    if (driver->controls)
10581062        snd_soc_add_codec_controls(codec, driver->controls,
10591063                     driver->num_controls);

Archive Download the corresponding diff file