aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/rack-meter.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/macintosh/rack-meter.c')
-rw-r--r--drivers/macintosh/rack-meter.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/macintosh/rack-meter.c b/drivers/macintosh/rack-meter.c
index 4192901cab40..048901a1111a 100644
--- a/drivers/macintosh/rack-meter.c
+++ b/drivers/macintosh/rack-meter.c
@@ -182,31 +182,31 @@ static void rackmeter_setup_dbdma(struct rackmeter *rm)
182 182
183 /* Prepare 4 dbdma commands for the 2 buffers */ 183 /* Prepare 4 dbdma commands for the 2 buffers */
184 memset(cmd, 0, 4 * sizeof(struct dbdma_cmd)); 184 memset(cmd, 0, 4 * sizeof(struct dbdma_cmd));
185 st_le16(&cmd->req_count, 4); 185 cmd->req_count = cpu_to_le16(4);
186 st_le16(&cmd->command, STORE_WORD | INTR_ALWAYS | KEY_SYSTEM); 186 cmd->command = cpu_to_le16(STORE_WORD | INTR_ALWAYS | KEY_SYSTEM);
187 st_le32(&cmd->phy_addr, rm->dma_buf_p + 187 cmd->phy_addr = cpu_to_le32(rm->dma_buf_p +
188 offsetof(struct rackmeter_dma, mark)); 188 offsetof(struct rackmeter_dma, mark));
189 st_le32(&cmd->cmd_dep, 0x02000000); 189 cmd->cmd_dep = cpu_to_le32(0x02000000);
190 cmd++; 190 cmd++;
191 191
192 st_le16(&cmd->req_count, SAMPLE_COUNT * 4); 192 cmd->req_count = cpu_to_le16(SAMPLE_COUNT * 4);
193 st_le16(&cmd->command, OUTPUT_MORE); 193 cmd->command = cpu_to_le16(OUTPUT_MORE);
194 st_le32(&cmd->phy_addr, rm->dma_buf_p + 194 cmd->phy_addr = cpu_to_le32(rm->dma_buf_p +
195 offsetof(struct rackmeter_dma, buf1)); 195 offsetof(struct rackmeter_dma, buf1));
196 cmd++; 196 cmd++;
197 197
198 st_le16(&cmd->req_count, 4); 198 cmd->req_count = cpu_to_le16(4);
199 st_le16(&cmd->command, STORE_WORD | INTR_ALWAYS | KEY_SYSTEM); 199 cmd->command = cpu_to_le16(STORE_WORD | INTR_ALWAYS | KEY_SYSTEM);
200 st_le32(&cmd->phy_addr, rm->dma_buf_p + 200 cmd->phy_addr = cpu_to_le32(rm->dma_buf_p +
201 offsetof(struct rackmeter_dma, mark)); 201 offsetof(struct rackmeter_dma, mark));
202 st_le32(&cmd->cmd_dep, 0x01000000); 202 cmd->cmd_dep = cpu_to_le32(0x01000000);
203 cmd++; 203 cmd++;
204 204
205 st_le16(&cmd->req_count, SAMPLE_COUNT * 4); 205 cmd->req_count = cpu_to_le16(SAMPLE_COUNT * 4);
206 st_le16(&cmd->command, OUTPUT_MORE | BR_ALWAYS); 206 cmd->command = cpu_to_le16(OUTPUT_MORE | BR_ALWAYS);
207 st_le32(&cmd->phy_addr, rm->dma_buf_p + 207 cmd->phy_addr = cpu_to_le32(rm->dma_buf_p +
208 offsetof(struct rackmeter_dma, buf2)); 208 offsetof(struct rackmeter_dma, buf2));
209 st_le32(&cmd->cmd_dep, rm->dma_buf_p); 209 cmd->cmd_dep = cpu_to_le32(rm->dma_buf_p);
210 210
211 rackmeter_do_pause(rm, 0); 211 rackmeter_do_pause(rm, 0);
212} 212}