projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a019f5e
)
ALSA: line6: Don't handle PCM trigger for other cards
author
Takashi Iwai
<tiwai@suse.de>
Mon, 19 Jan 2015 14:11:17 +0000
(15:11 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 20 Jan 2015 07:16:10 +0000
(08:16 +0100)
Otherwise it oopses.
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/pcm.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/line6/pcm.c
b/sound/usb/line6/pcm.c
index 520cf540e83c3202032a647bf542fcbd681e3216..932cc7e194e2a2d8297a5be70bff0a984e230455 100644
(file)
--- a/
sound/usb/line6/pcm.c
+++ b/
sound/usb/line6/pcm.c
@@
-233,6
+233,8
@@
int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd)
clear_bit(LINE6_INDEX_PREPARED, &line6pcm->flags);
snd_pcm_group_for_each_entry(s, substream) {
+ if (s->pcm->card != substream->pcm->card)
+ continue;
switch (s->stream) {
case SNDRV_PCM_STREAM_PLAYBACK:
err = snd_line6_playback_trigger(line6pcm, cmd);