Revision acc08683 hw/intel-hda.c

b/hw/intel-hda.c
56 56
    if (dev->cad == -1) {
57 57
        dev->cad = bus->next_cad;
58 58
    }
59
    if (dev->cad > 15)
59
    if (dev->cad >= 15)
60 60
        return -1;
61 61
    bus->next_cad = dev->cad + 1;
62 62
    return info->init(dev);
......
643 643
    [ ICH6_REG_WAKEEN ] = {
644 644
        .name     = "WAKEEN",
645 645
        .size     = 2,
646
        .wmask    = 0x3fff,
646
        .wmask    = 0x7fff,
647 647
        .offset   = offsetof(IntelHDAState, wake_en),
648 648
        .whandler = intel_hda_set_wake_en,
649 649
    },
650 650
    [ ICH6_REG_STATESTS ] = {
651 651
        .name     = "STATESTS",
652 652
        .size     = 2,
653
        .wmask    = 0x3fff,
654
        .wclear   = 0x3fff,
653
        .wmask    = 0x7fff,
654
        .wclear   = 0x7fff,
655 655
        .offset   = offsetof(IntelHDAState, state_sts),
656 656
        .whandler = intel_hda_set_state_sts,
657 657
    },

Also available in: Unified diff