[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>
This commit is contained in:

committed by
Jaroslav Kysela

parent
e7d24f0bbd
commit
7ab399262e
@@ -2377,7 +2377,7 @@ static int __devinit snd_m3_assp_client_init(struct snd_m3 *chip, struct m3_dma
|
||||
* shifted list address is aligned.
|
||||
* list address = (mem address >> 1) >> 7;
|
||||
*/
|
||||
data_bytes = (data_bytes + 255) & ~255;
|
||||
data_bytes = ALIGN(data_bytes, 256);
|
||||
address = 0x1100 + ((data_bytes/2) * index);
|
||||
|
||||
if ((address + (data_bytes/2)) >= 0x1c00) {
|
||||
|
Reference in New Issue
Block a user