X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=sound%2Fcore%2Fsgbuf.c;h=cefd228cd2aafb964b61150a7a2d9931459a7fe8;hb=908cf4b925e419bc74f3297b2f0e51d6f8a81da2;hp=c30669f14ac0f2f386ba524aae4eaba5add06c03;hpb=a05ef8bfdc03c5061f44d91826caa855b0aae481;p=linux-2.6 diff --git a/sound/core/sgbuf.c b/sound/core/sgbuf.c index c30669f14a..cefd228cd2 100644 --- a/sound/core/sgbuf.c +++ b/sound/core/sgbuf.c @@ -27,7 +27,7 @@ /* table entries are align to 32 */ #define SGBUF_TBL_ALIGN 32 -#define sgbuf_align_table(tbl) ((((tbl) + SGBUF_TBL_ALIGN - 1) / SGBUF_TBL_ALIGN) * SGBUF_TBL_ALIGN) +#define sgbuf_align_table(tbl) ALIGN((tbl), SGBUF_TBL_ALIGN) int snd_free_sgbuf_pages(struct snd_dma_buffer *dmab) {