diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2015-06-08 08:19:52 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-08 13:53:18 -0400 |
commit | 4afdd89df0bd094015b2cc7504421ec3ece3ae35 (patch) | |
tree | 20433fcfb42ed3ed503e9f3f4168758775ac805e /sound | |
parent | 2a9dd1db70688203e5699f6ea074d41a7ac86378 (diff) |
ASoC: tas2552: Code, define alignment changes for uniformity
Align the numbers in the header file to the same column.
At the same time change the wrapping of CFG_2 register write in the probe
function to be uniform with the other calls.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/tas2552.c | 4 | ||||
-rw-r--r-- | sound/soc/codecs/tas2552.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index 202c3f4a6390..5e6490c19b7e 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c | |||
@@ -604,8 +604,8 @@ static int tas2552_codec_probe(struct snd_soc_codec *codec) | |||
604 | snd_soc_write(codec, TAS2552_BOOST_APT_CTRL, TAS2552_APT_DELAY_200 | | 604 | snd_soc_write(codec, TAS2552_BOOST_APT_CTRL, TAS2552_APT_DELAY_200 | |
605 | TAS2552_APT_THRESH_20_17); | 605 | TAS2552_APT_THRESH_20_17); |
606 | 606 | ||
607 | snd_soc_write(codec, TAS2552_CFG_2, TAS2552_BOOST_EN | | 607 | snd_soc_write(codec, TAS2552_CFG_2, TAS2552_BOOST_EN | TAS2552_APT_EN | |
608 | TAS2552_APT_EN | TAS2552_LIM_EN); | 608 | TAS2552_LIM_EN); |
609 | 609 | ||
610 | return 0; | 610 | return 0; |
611 | 611 | ||
diff --git a/sound/soc/codecs/tas2552.h b/sound/soc/codecs/tas2552.h index f62a1bcb2e49..5746f8fd0afd 100644 --- a/sound/soc/codecs/tas2552.h +++ b/sound/soc/codecs/tas2552.h | |||
@@ -19,7 +19,7 @@ | |||
19 | #define __TAS2552_H__ | 19 | #define __TAS2552_H__ |
20 | 20 | ||
21 | /* Register Address Map */ | 21 | /* Register Address Map */ |
22 | #define TAS2552_DEVICE_STATUS 0x00 | 22 | #define TAS2552_DEVICE_STATUS 0x00 |
23 | #define TAS2552_CFG_1 0x01 | 23 | #define TAS2552_CFG_1 0x01 |
24 | #define TAS2552_CFG_2 0x02 | 24 | #define TAS2552_CFG_2 0x02 |
25 | #define TAS2552_CFG_3 0x03 | 25 | #define TAS2552_CFG_3 0x03 |
@@ -33,12 +33,12 @@ | |||
33 | #define TAS2552_BTIP 0x0b | 33 | #define TAS2552_BTIP 0x0b |
34 | #define TAS2552_BTS_CTRL 0x0c | 34 | #define TAS2552_BTS_CTRL 0x0c |
35 | #define TAS2552_RESERVED_0D 0x0d | 35 | #define TAS2552_RESERVED_0D 0x0d |
36 | #define TAS2552_LIMIT_RATE_HYS 0x0e | 36 | #define TAS2552_LIMIT_RATE_HYS 0x0e |
37 | #define TAS2552_LIMIT_RELEASE 0x0f | 37 | #define TAS2552_LIMIT_RELEASE 0x0f |
38 | #define TAS2552_LIMIT_INT_COUNT 0x10 | 38 | #define TAS2552_LIMIT_INT_COUNT 0x10 |
39 | #define TAS2552_PDM_CFG 0x11 | 39 | #define TAS2552_PDM_CFG 0x11 |
40 | #define TAS2552_PGA_GAIN 0x12 | 40 | #define TAS2552_PGA_GAIN 0x12 |
41 | #define TAS2552_EDGE_RATE_CTRL 0x13 | 41 | #define TAS2552_EDGE_RATE_CTRL 0x13 |
42 | #define TAS2552_BOOST_APT_CTRL 0x14 | 42 | #define TAS2552_BOOST_APT_CTRL 0x14 |
43 | #define TAS2552_VER_NUM 0x16 | 43 | #define TAS2552_VER_NUM 0x16 |
44 | #define TAS2552_VBAT_DATA 0x19 | 44 | #define TAS2552_VBAT_DATA 0x19 |