mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
Merge branch 'for-linus' into for-next
This commit is contained in:
commit
fce762ed9f
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,8 @@ static struct snd_pcm *snd_pcm_get(struct snd_card *card, int device)
|
||||||
struct snd_pcm *pcm;
|
struct snd_pcm *pcm;
|
||||||
|
|
||||||
list_for_each_entry(pcm, &snd_pcm_devices, list) {
|
list_for_each_entry(pcm, &snd_pcm_devices, list) {
|
||||||
|
if (pcm->internal)
|
||||||
|
continue;
|
||||||
if (pcm->card == card && pcm->device == device)
|
if (pcm->card == card && pcm->device == device)
|
||||||
return pcm;
|
return pcm;
|
||||||
}
|
}
|
||||||
|
@ -60,6 +62,8 @@ static int snd_pcm_next(struct snd_card *card, int device)
|
||||||
struct snd_pcm *pcm;
|
struct snd_pcm *pcm;
|
||||||
|
|
||||||
list_for_each_entry(pcm, &snd_pcm_devices, list) {
|
list_for_each_entry(pcm, &snd_pcm_devices, list) {
|
||||||
|
if (pcm->internal)
|
||||||
|
continue;
|
||||||
if (pcm->card == card && pcm->device > device)
|
if (pcm->card == card && pcm->device > device)
|
||||||
return pcm->device;
|
return pcm->device;
|
||||||
else if (pcm->card->number > card->number)
|
else if (pcm->card->number > card->number)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue