Add check to avoid assertion panic on duplicate stop.
Reported by: Yuri Pankov <yuri.pankov@gmail.com> MFC after: 2 months
This commit is contained in:
parent
213db2103e
commit
bba60d8920
@ -1351,6 +1351,8 @@ hdaa_channel_stop(struct hdaa_chan *ch)
|
||||
struct hdaa_widget *w;
|
||||
int i;
|
||||
|
||||
if ((ch->flags & HDAA_CHN_RUNNING) == 0)
|
||||
return;
|
||||
ch->flags &= ~HDAA_CHN_RUNNING;
|
||||
HDAC_STREAM_STOP(device_get_parent(devinfo->dev), devinfo->dev,
|
||||
ch->dir == PCMDIR_PLAY ? 1 : 0, ch->sid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user