diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2006-10-09 02:13:32 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@server.perex.cz> | 2006-12-20 02:55:36 -0500 |
commit | 7ab399262ee636d19db5163a35ac406d5b892a0a (patch) | |
tree | 6cfe6267feb4a8d56114e282d41b683946c6eaf0 /sound/pci/maestro3.c | |
parent | e7d24f0bbd0eb0d9a6d337ef67d5e2ad78900488 (diff) |
[ALSA] use the ALIGN macro
Use the ALIGN macro instead of manual calculations.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/maestro3.c')
-rw-r--r-- | sound/pci/maestro3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/maestro3.c b/sound/pci/maestro3.c index 8cab342bbaaf..563c9ec49830 100644 --- a/sound/pci/maestro3.c +++ b/sound/pci/maestro3.c | |||
@@ -2377,7 +2377,7 @@ static int __devinit snd_m3_assp_client_init(struct snd_m3 *chip, struct m3_dma | |||
2377 | * shifted list address is aligned. | 2377 | * shifted list address is aligned. |
2378 | * list address = (mem address >> 1) >> 7; | 2378 | * list address = (mem address >> 1) >> 7; |
2379 | */ | 2379 | */ |
2380 | data_bytes = (data_bytes + 255) & ~255; | 2380 | data_bytes = ALIGN(data_bytes, 256); |
2381 | address = 0x1100 + ((data_bytes/2) * index); | 2381 | address = 0x1100 + ((data_bytes/2) * index); |
2382 | 2382 | ||
2383 | if ((address + (data_bytes/2)) >= 0x1c00) { | 2383 | if ((address + (data_bytes/2)) >= 0x1c00) { |