diff options
author | Takashi Iwai | 2013-11-04 10:10:02 +0100 |
---|---|---|
committer | Takashi Iwai | 2013-11-04 10:10:02 +0100 |
commit | fce762ed9ffa0192d8f77f60d98f84b4cfbe4517 (patch) | |
tree | 993c8a2bd09bbc7c7e76e25d578972e16489db3d /sound/core | |
parent | ebfe1068f9ca4d0f25beca7a65d652380c40f226 (diff) | |
parent | a4461f41b94cb52e0141af717dcf4ef6558c8e2e (diff) |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index 17f45e8aa89c..e1e9e0c999fe 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) |