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/core/sgbuf.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/core/sgbuf.c')
-rw-r--r-- | sound/core/sgbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/sgbuf.c b/sound/core/sgbuf.c index c30669f14ac..cefd228cd2a 100644 --- a/sound/core/sgbuf.c +++ b/sound/core/sgbuf.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | /* table entries are align to 32 */ | 28 | /* table entries are align to 32 */ |
29 | #define SGBUF_TBL_ALIGN 32 | 29 | #define SGBUF_TBL_ALIGN 32 |
30 | #define sgbuf_align_table(tbl) ((((tbl) + SGBUF_TBL_ALIGN - 1) / SGBUF_TBL_ALIGN) * SGBUF_TBL_ALIGN) | 30 | #define sgbuf_align_table(tbl) ALIGN((tbl), SGBUF_TBL_ALIGN) |
31 | 31 | ||
32 | int snd_free_sgbuf_pages(struct snd_dma_buffer *dmab) | 32 | int snd_free_sgbuf_pages(struct snd_dma_buffer *dmab) |
33 | { | 33 | { |