Skip to content
  • Georg Chini's avatar
    sink, source: Call sink input suspend callback also on suspend cause change · acb02d9e
    Georg Chini authored and Arun Raghavan's avatar Arun Raghavan committed
    Currently, virtual sinks and sources are not suspended when the master sink
    or source is suspended. To implement this, the slave must be able to track
    the suspend cause of the master.
    
    With this patch, the sink input suspend callback will not only be called
    when the sink or source is changing state, but also when the suspend cause
    changes. Similar to the set_state_in_*_thread_cb() functions, the suspend
    callback receives a state and a suspend cause as additional arguments.
    Because the new state and suspend cause of the sink or source have already
    been set, the old values are passed to the callback.
    acb02d9e