lkml.org 
[lkml]   [2016]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.16.y-ckt 098/128] ASoC: wm8974: set cache type for regmap
    Date
    3.16.7-ckt23 -stable review patch.  If anyone has any objections, please let me know.

    ---8<------------------------------------------------------------

    From: Mans Rullgard <mans@mansr.com>

    commit 1ea5998afe903384ddc16391d4c023cd4c867bea upstream.

    Attempting to use this codec driver triggers a BUG() in regcache_sync()
    since no cache type is set. The register map of this device is fairly
    small and has few holes so a flat cache is suitable.

    Signed-off-by: Mans Rullgard <mans@mansr.com>
    Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
    Signed-off-by: Mark Brown <broonie@kernel.org>
    Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
    ---
    sound/soc/codecs/wm8974.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c
    index 0627c56fa44e..c2248db97fc4 100644
    --- a/sound/soc/codecs/wm8974.c
    +++ b/sound/soc/codecs/wm8974.c
    @@ -587,6 +587,7 @@ static const struct regmap_config wm8974_regmap = {
    .max_register = WM8974_MONOMIX,
    .reg_defaults = wm8974_reg_defaults,
    .num_reg_defaults = ARRAY_SIZE(wm8974_reg_defaults),
    + .cache_type = REGCACHE_FLAT,
    };

    static int wm8974_probe(struct snd_soc_codec *codec)
    \
     
     \ /
      Last update: 2016-01-24 23:21    [W:4.109 / U:1.628 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site