Add regmap init and dac volume config i2c_direct_rw
authorTracy Yi <tracy-yi@ti.com>
Thu, 22 Feb 2018 07:14:08 +0000 (15:14 +0800)
committerTracy Yi <tracy-yi@ti.com>
Thu, 22 Feb 2018 07:14:08 +0000 (15:14 +0800)
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
tas2770-codec.c

index 8238b7b7cd987d0c3d9cb7d9080500ad0d2ebcb6..e736c9d34c3fd8928f1a21098d0d17783965f713 100644 (file)
@@ -532,6 +532,7 @@ static int tas2770_codec_probe(struct snd_soc_codec *codec)
        struct tas2770_priv *pTAS2770 = snd_soc_codec_get_drvdata(codec);
 
        dev_err(pTAS2770->dev, "%s\n", __func__);
+       snd_soc_codec_init_regmap(codec, pTAS2770->regmap);
 
        return 0;
 }
@@ -549,7 +550,7 @@ static const struct snd_kcontrol_new tas2770_snd_controls[] = {
                0, TAS2770_PlaybackConfigurationReg0_AmplifierLevel40_Mask, 0,
                tas2770_digital_tlv),
        SOC_SINGLE_TLV("Playback Volume", TAS2770_PlaybackConfigurationReg2,
-               0, TAS2770_PlaybackConfigurationReg2_DVCPCM70_Mask, 0,
+               0, TAS2770_PlaybackConfigurationReg2_DVCPCM70_Mask, 1,
                tas2770_playback_volume),
 };