summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-11-04 10:10:02 +0100
committerTakashi Iwai <tiwai@suse.de>2013-11-04 10:10:02 +0100
commitfce762ed9ffa0192d8f77f60d98f84b4cfbe4517 (patch)
tree993c8a2bd09bbc7c7e76e25d578972e16489db3d /sound
parentebfe1068f9ca4d0f25beca7a65d652380c40f226 (diff)
parenta4461f41b94cb52e0141af717dcf4ef6558c8e2e (diff)
downloadop-kernel-dev-fce762ed9ffa0192d8f77f60d98f84b4cfbe4517.zip
op-kernel-dev-fce762ed9ffa0192d8f77f60d98f84b4cfbe4517.tar.gz
Merge branch 'for-linus' into for-next
Diffstat (limited to 'sound')
-rw-r--r--sound/core/pcm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index 17f45e8..e1e9e0c 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -49,6 +49,8 @@ static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device)
struct snd_pcm *pcm;
list_for_each_entry(pcm, &snd_pcm_devices, list) {
+ if (pcm->internal)
+ continue;
if (pcm->card == card && pcm->device == device)
return pcm;
}
@@ -60,6 +62,8 @@ static int snd_pcm_next(struct snd_card *card, int device)
struct snd_pcm *pcm;
list_for_each_entry(pcm, &snd_pcm_devices, list) {
+ if (pcm->internal)
+ continue;
if (pcm->card == card && pcm->device > device)
return pcm->device;
else if (pcm->card->number > card->number)
OpenPOWER on IntegriCloud