Skip to content

Commit

Permalink
ASoC: si476x: Fix IO setup
Browse files Browse the repository at this point in the history
The si476x is a MFD device and the CODEC driver is using the regmap struct of
the parent device, hence automatic IO setup will not work and we need to
manually call snd_soc_codec_set_cache_io(). The issue was introduced commit
d6173df ("ASoC: si476x: Remove custom register I/O implementation")

Fixes: d6173df ("ASoC: si476x: Remove custom register I/O implementation")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Mar 10, 2014
1 parent 38dbfb5 commit 58d4d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/si476x.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static int si476x_codec_hw_params(struct snd_pcm_substream *substream,
static int si476x_codec_probe(struct snd_soc_codec *codec)
{
codec->control_data = dev_get_regmap(codec->dev->parent, NULL);
return 0;
return snd_soc_codec_set_cache_io(codec, 0, 0, SND_SOC_REGMAP);
}

static struct snd_soc_dai_ops si476x_dai_ops = {
Expand Down

0 comments on commit 58d4d3c

Please sign in to comment.