Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ diff -uNp azalia.c.orig azalia.c
- --- azalia.c.orig Fri Feb 21 21:30:22 2014
- +++ azalia.c Fri Feb 21 21:59:10 2014
- @@ -1108,7 +1108,7 @@ azalia_halt_rirb(azalia_t *az)
- int
- azalia_init_rirb(azalia_t *az, int resuming)
- {
- - int err;
- + int err, i;
- uint16_t rirbwp;
- uint8_t rirbctl;
- @@ -1159,6 +1159,14 @@ azalia_init_rirb(azalia_t *az, int resuming)
- rirbctl = AZ_READ_1(az, RIRBCTL);
- AZ_WRITE_1(az, RIRBCTL, rirbctl |
- HDA_RIRBCTL_RIRBDMAEN | HDA_RIRBCTL_RINTCTL);
- +
- + /* wait for RIRB DMA engine is running */
- + for (i = 1000; i >= 0; i--) {
- + if (AZ_READ_1(az, RIRBCTL) & HDA_RIRBCTL_RIRBDMAEN)
- + break;
- + DELAY(1);
- + }
- + DPRINTF(("%s: wait counter = %d\n", __func__, i));
- return (0);
- }
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement