File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -971,19 +971,22 @@ static void had_process_buffer_done(struct snd_intelhad *intelhaddata)
971
971
{
972
972
struct snd_pcm_substream * substream ;
973
973
974
- if (!intelhaddata -> connected )
975
- return ; /* disconnected? - bail out */
976
-
977
974
substream = had_substream_get (intelhaddata );
978
975
if (!substream )
979
976
return ; /* no stream? - bail out */
980
977
978
+ if (!intelhaddata -> connected ) {
979
+ snd_pcm_stop_xrun (substream );
980
+ goto out ; /* disconnected? - bail out */
981
+ }
982
+
981
983
/* process or stop the stream */
982
984
if (had_process_ringbuf (substream , intelhaddata ) < 0 )
983
985
snd_pcm_stop_xrun (substream );
984
986
else
985
987
snd_pcm_period_elapsed (substream );
986
988
989
+ out :
987
990
had_substream_put (intelhaddata );
988
991
}
989
992
You can’t perform that action at this time.
0 commit comments