Home
last modified time | relevance | path

Searched refs:newpcm (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835.c56 int (*newpcm)(struct bcm2835_chip *chip, const char *name, member
98 .newpcm = bcm2835_audio_dual_newpcm,
111 .newpcm = bcm2835_audio_simple_newpcm,
167 err = audio_driver->newpcm(chip, audio_driver->shortname, in snd_add_child_device()
/linux-6.6.21/sound/core/
Dpcm.c62 static int snd_pcm_add(struct snd_pcm *newpcm) in snd_pcm_add() argument
66 if (newpcm->internal) in snd_pcm_add()
70 if (pcm->card == newpcm->card && pcm->device == newpcm->device) in snd_pcm_add()
72 if (pcm->card->number > newpcm->card->number || in snd_pcm_add()
73 (pcm->card == newpcm->card && in snd_pcm_add()
74 pcm->device > newpcm->device)) { in snd_pcm_add()
75 list_add(&newpcm->list, pcm->list.prev); in snd_pcm_add()
79 list_add_tail(&newpcm->list, &snd_pcm_devices); in snd_pcm_add()