diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-03 12:36:55 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:00 -0400 |
commit | 95b14fb23b543e0a9213b4ba3cc4fc640d9e453f (patch) | |
tree | 262291eaf367022b9d2f12cb35a3e424cf8460af /drivers/media/video/cx25840/cx25840-audio.c | |
parent | 149783b58170da0b7ebe9e86995f8cb350f33b6d (diff) |
V4L/DVB (10953): cx25840: Fix CodingStyle errors introduced by the last patch
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx25840/cx25840-audio.c')
-rw-r--r-- | drivers/media/video/cx25840/cx25840-audio.c | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/drivers/media/video/cx25840/cx25840-audio.c b/drivers/media/video/cx25840/cx25840-audio.c index d2faeaa79759..2f846f5e0f9f 100644 --- a/drivers/media/video/cx25840/cx25840-audio.c +++ b/drivers/media/video/cx25840/cx25840-audio.c | |||
@@ -45,12 +45,11 @@ static int set_audclk_freq(struct i2c_client *client, u32 freq) | |||
45 | } | 45 | } |
46 | 46 | ||
47 | if (!state->is_cx231xx) { | 47 | if (!state->is_cx231xx) { |
48 | /* VID_PLL and AUX_PLL */ | ||
49 | cx25840_write4(client, 0x108, 0x1006040f); | ||
48 | 50 | ||
49 | /* VID_PLL and AUX_PLL */ | 51 | /* AUX_PLL_FRAC */ |
50 | cx25840_write4(client, 0x108, 0x1006040f); | 52 | cx25840_write4(client, 0x110, 0x01bb39ee); |
51 | |||
52 | /* AUX_PLL_FRAC */ | ||
53 | cx25840_write4(client, 0x110, 0x01bb39ee); | ||
54 | } | 53 | } |
55 | 54 | ||
56 | if (state->is_cx25836) | 55 | if (state->is_cx25836) |
@@ -70,7 +69,6 @@ static int set_audclk_freq(struct i2c_client *client, u32 freq) | |||
70 | } | 69 | } |
71 | 70 | ||
72 | if (!state->is_cx231xx) { | 71 | if (!state->is_cx231xx) { |
73 | |||
74 | /* VID_PLL and AUX_PLL */ | 72 | /* VID_PLL and AUX_PLL */ |
75 | cx25840_write4(client, 0x108, 0x1009040f); | 73 | cx25840_write4(client, 0x108, 0x1009040f); |
76 | 74 | ||
@@ -95,12 +93,11 @@ static int set_audclk_freq(struct i2c_client *client, u32 freq) | |||
95 | } | 93 | } |
96 | 94 | ||
97 | if (!state->is_cx231xx) { | 95 | if (!state->is_cx231xx) { |
96 | /* VID_PLL and AUX_PLL */ | ||
97 | cx25840_write4(client, 0x108, 0x100a040f); | ||
98 | 98 | ||
99 | /* VID_PLL and AUX_PLL */ | 99 | /* AUX_PLL_FRAC */ |
100 | cx25840_write4(client, 0x108, 0x100a040f); | 100 | cx25840_write4(client, 0x110, 0x0098d6e5); |
101 | |||
102 | /* AUX_PLL_FRAC */ | ||
103 | cx25840_write4(client, 0x110, 0x0098d6e5); | ||
104 | } | 101 | } |
105 | 102 | ||
106 | if (state->is_cx25836) | 103 | if (state->is_cx25836) |
@@ -122,12 +119,11 @@ static int set_audclk_freq(struct i2c_client *client, u32 freq) | |||
122 | } | 119 | } |
123 | 120 | ||
124 | if (!state->is_cx231xx) { | 121 | if (!state->is_cx231xx) { |
122 | /* VID_PLL and AUX_PLL */ | ||
123 | cx25840_write4(client, 0x108, 0x1e08040f); | ||
125 | 124 | ||
126 | /* VID_PLL and AUX_PLL */ | 125 | /* AUX_PLL_FRAC */ |
127 | cx25840_write4(client, 0x108, 0x1e08040f); | 126 | cx25840_write4(client, 0x110, 0x012a0869); |
128 | |||
129 | /* AUX_PLL_FRAC */ | ||
130 | cx25840_write4(client, 0x110, 0x012a0869); | ||
131 | } | 127 | } |
132 | 128 | ||
133 | if (state->is_cx25836) | 129 | if (state->is_cx25836) |
@@ -154,12 +150,11 @@ static int set_audclk_freq(struct i2c_client *client, u32 freq) | |||
154 | 150 | ||
155 | 151 | ||
156 | if (!state->is_cx231xx) { | 152 | if (!state->is_cx231xx) { |
153 | /* VID_PLL and AUX_PLL */ | ||
154 | cx25840_write4(client, 0x108, 0x1809040f); | ||
157 | 155 | ||
158 | /* VID_PLL and AUX_PLL */ | 156 | /* AUX_PLL_FRAC */ |
159 | cx25840_write4(client, 0x108, 0x1809040f); | 157 | cx25840_write4(client, 0x110, 0x00ec6bd6); |
160 | |||
161 | /* AUX_PLL_FRAC */ | ||
162 | cx25840_write4(client, 0x110, 0x00ec6bd6); | ||
163 | } | 158 | } |
164 | 159 | ||
165 | if (state->is_cx25836) | 160 | if (state->is_cx25836) |
@@ -247,10 +242,9 @@ void cx25840_audio_set_path(struct i2c_client *client) | |||
247 | /* deassert soft reset */ | 242 | /* deassert soft reset */ |
248 | cx25840_and_or(client, 0x810, ~0x1, 0x00); | 243 | cx25840_and_or(client, 0x810, ~0x1, 0x00); |
249 | 244 | ||
250 | if (state->is_cx23885 || state->is_cx231xx) { | 245 | /* Ensure the controller is running when we exit */ |
251 | /* Ensure the controller is running when we exit */ | 246 | if (state->is_cx23885 || state->is_cx231xx) |
252 | cx25840_and_or(client, 0x803, ~0x10, 0x10); | 247 | cx25840_and_or(client, 0x803, ~0x10, 0x10); |
253 | } | ||
254 | } | 248 | } |
255 | 249 | ||
256 | static int get_volume(struct i2c_client *client) | 250 | static int get_volume(struct i2c_client *client) |