Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dsp.c

    r09ab0a9a ra64970e1  
    11/*
     2 * Copyright (c) 2025 Jiri Svoboda
    23 * Copyright (c) 2011 Jan Vesely
    34 * All rights reserved.
     
    7475                [DSP_READY] = "READY",
    7576                [DSP_NO_BUFFER] = "NO BUFFER",
     77                [DSP_QUIESCED] = "QUIESCED"
    7678        };
    7779        if ((size_t)state < ARRAY_SIZE(state_names))
     
    8385{
    8486        assert(dsp);
     87        if (dsp->state == DSP_QUIESCED)
     88                return;
     89
    8590        ddf_log_verbose("Changing state from %s to %s",
    8691            dsp_state_to_str(dsp->state), dsp_state_to_str(state));
     
    230235
    231236        return ret;
     237}
     238
     239void sb_dsp_quiesce(sb_dsp_t *dsp)
     240{
     241        dsp->state = DSP_QUIESCED;
     242        dsp_reset(dsp);
    232243}
    233244
Note: See TracChangeset for help on using the changeset viewer.