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


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

Implement quiesce in HD Audio and SB16 drivers.

File:
1 edited

Legend:

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

    r89b5a75 ra64970e1  
    11/*
    2  * Copyright (c) 2022 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5555static errno_t hda_dev_remove(ddf_dev_t *dev);
    5656static errno_t hda_dev_gone(ddf_dev_t *dev);
     57static errno_t hda_dev_quiesce(ddf_dev_t *dev);
    5758static errno_t hda_fun_online(ddf_fun_t *fun);
    5859static errno_t hda_fun_offline(ddf_fun_t *fun);
     
    6162
    6263static driver_ops_t driver_ops = {
    63         .dev_add = &hda_dev_add,
    64         .dev_remove = &hda_dev_remove,
    65         .dev_gone = &hda_dev_gone,
    66         .fun_online = &hda_fun_online,
    67         .fun_offline = &hda_fun_offline
     64        .dev_add = hda_dev_add,
     65        .dev_remove = hda_dev_remove,
     66        .dev_gone = hda_dev_gone,
     67        .dev_quiesce = hda_dev_quiesce,
     68        .fun_online = hda_fun_online,
     69        .fun_offline = hda_fun_offline
    6870};
    6971
     
    362364        }
    363365
     366        return EOK;
     367}
     368
     369static errno_t hda_dev_quiesce(ddf_dev_t *dev)
     370{
     371        hda_t *hda = (hda_t *)ddf_dev_data_get(dev);
     372
     373        ddf_msg(LVL_DEBUG, "hda_dev_quiesce(%p)", dev);
     374
     375        hda_ctl_quiesce(hda->ctl);
    364376        return EOK;
    365377}
Note: See TracChangeset for help on using the changeset viewer.