Date:2012-06-22 14:04:02 (11 years 9 months ago)
Author:Mark Brown
Commit:90ff1252b873baaf628e43eec55769f7d8faeba3
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 <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Files: sound/soc/soc-core.c (1 diff)

Change Details

sound/soc/soc-core.c
10541054        }
10551055    }
10561056
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);
1060
10571061    if (driver->controls)
10581062        snd_soc_add_codec_controls(codec, driver->controls,
10591063                     driver->num_controls);

Archive Download the corresponding diff file



interactive