• Eric Bénard's avatar
    ASoC: tlv312aic23: unbreak resume · e875c1e3
    Eric Bénard authored
    * commit f9dfbf91 "ASoC: tlv320aic23: convert to soc-cache" leads to
    a bug preventing resumeof the codec as regmap expects a 9 bits data
    register but 0xFFFF is passed in tlv320aic23_set_bias_level and this
    values gets cached preventing any write to the TLV320AIC23_PWR
    register as the final value produced by regmap is (register << 9) | value
    
    * this patch solves the problem by only working on the 9 bits the
    register contains.
    Signed-off-by: default avatarEric Bénard <eric@eukrea.com>
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Cc: stable@vger.kernel.org
    e875c1e3
tlv320aic23.c 18.8 KB