aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r--sound/core/pcm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index f52178abf120..ed3b09469560 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -792,7 +792,8 @@ int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream,
792 kctl = snd_ctl_file(list); 792 kctl = snd_ctl_file(list);
793 if (kctl->pid == current->pid) { 793 if (kctl->pid == current->pid) {
794 prefer_subdevice = kctl->prefer_pcm_subdevice; 794 prefer_subdevice = kctl->prefer_pcm_subdevice;
795 break; 795 if (prefer_subdevice != -1)
796 break;
796 } 797 }
797 } 798 }
798 up_read(&card->controls_rwsem); 799 up_read(&card->controls_rwsem);