Ignore:
Timestamp:
2014-08-26T11:35:23Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c67195c
Parents:
159c722d
Message:

Playback stopping and restart.

File:
1 edited

Legend:

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

    r159c722d r6747b929  
    228228static int hda_stop_playback(ddf_fun_t *fun, bool immediate)
    229229{
     230        hda_t *hda = fun_to_hda(fun);
     231
    230232        ddf_msg(LVL_NOTE, "hda_stop_playback()");
    231         return ENOTSUP;
     233        hda_stream_stop(hda->pcm_stream);
     234        hda_stream_reset(hda->pcm_stream);
     235
     236        hda_pcm_event(hda, PCM_EVENT_PLAYBACK_TERMINATED);
     237        return EOK;
    232238}
    233239
Note: See TracChangeset for help on using the changeset viewer.