lkml.org 
[lkml]   [2014]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.13 112/149] ASoC: si476x: Fix IO setup
    Date
    3.13-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Lars-Peter Clausen <lars@metafoo.de>

    commit 58d4d3c976b33784a1443c446a3d7203bf2153f0 upstream.

    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
    d6173df35f ("ASoC: si476x: Remove custom register I/O implementation")

    Fixes: d6173df35f ("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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    sound/soc/codecs/si476x.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/sound/soc/codecs/si476x.c
    +++ b/sound/soc/codecs/si476x.c
    @@ -210,7 +210,7 @@ out:
    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 = {



    \
     
     \ /
      Last update: 2014-03-21 02:41    [W:2.465 / U:0.420 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site