Skip to content

Commit

Permalink
ASoC: rt298: fix wrong setting of gpio2_en
Browse files Browse the repository at this point in the history
The register value to enable gpio2 was incorrect. So fix it.

Signed-off-by: Bard Liao <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Bard Liao authored and broonie committed Oct 21, 2015
1 parent 7ba6e4e commit f8f2dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/rt298.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ static int rt298_i2c_probe(struct i2c_client *i2c,
mdelay(10);

if (!rt298->pdata.gpio2_en)
regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0x4000);
regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0x40);
else
regmap_write(rt298->regmap, RT298_SET_DMIC2_DEFAULT, 0);

Expand Down

0 comments on commit f8f2dc4

Please sign in to comment.