1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-03 12:35:02 +00:00

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:
Alexander Motin 2012-01-16 00:26:52 +00:00
parent 0b05cac3d2
commit 20332cc2b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230181

View File

@ -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);