Add fix emu-0404-USB-automatic-sample-rate (#47)

Thx to khseal
This commit is contained in:
Sergey
2019-03-18 11:52:00 +03:00
committed by Maxim
parent 4fa7dc8703
commit 430518f6e6

View File

@ -724,7 +724,8 @@ static void set_format_emu_quirk(struct snd_usb_substream *subs,
* by playback substream
*/
if (subs->direction == SNDRV_PCM_STREAM_PLAYBACK) {
if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].interface != -1)
if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].interface != -1 &&
subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].running)
return;
}