Changeset a64970e1 in mainline for uspace/drv/audio/hdaudio/hdactl.c


Ignore:
Timestamp:
2025-03-05T19:25:06Z (21 hours ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
07039850
Parents:
89b5a75
Message:

Implement quiesce in HD Audio and SB16 drivers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/hdactl.c

    r89b5a75 ra64970e1  
    11/*
    2  * Copyright (c) 2022 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    628628}
    629629
     630void hda_ctl_quiesce(hda_ctl_t *ctl)
     631{
     632        uint32_t gctl;
     633
     634        ddf_msg(LVL_DEBUG, "hda_ctl_quiesce(): Resetting controller.");
     635        gctl = hda_reg32_read(&ctl->hda->regs->gctl);
     636        hda_reg32_write(&ctl->hda->regs->gctl,
     637            gctl & ~BIT_V(uint32_t, gctl_crst));
     638}
     639
    630640errno_t hda_cmd(hda_t *hda, uint32_t verb, uint32_t *resp)
    631641{
Note: See TracChangeset for help on using the changeset viewer.