Lines Matching defs:pcmtst
93 struct pcmtst {
451 static int snd_pcmtst_free(struct pcmtst *pcmtst)
453 if (!pcmtst)
455 kfree(pcmtst);
548 static int snd_pcmtst_new_pcm(struct pcmtst *pcmtst)
553 err = snd_pcm_new(pcmtst->card, "PCMTest", 0, PLAYBACK_SUBSTREAM_CNT,
557 pcm->private_data = pcmtst;
559 pcmtst->pcm = pcm;
563 err = snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, &pcmtst->pdev->dev,
569 struct pcmtst **r_pcmtst)
571 struct pcmtst *pcmtst;
577 pcmtst = kzalloc(sizeof(*pcmtst), GFP_KERNEL);
578 if (!pcmtst)
580 pcmtst->card = card;
581 pcmtst->pdev = pdev;
583 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, pcmtst, &ops);
587 err = snd_pcmtst_new_pcm(pcmtst);
591 *r_pcmtst = pcmtst;
595 snd_pcmtst_free(pcmtst);
602 struct pcmtst *pcmtst;
612 err = snd_pcmtst_create(card, pdev, &pcmtst);
624 platform_set_drvdata(pdev, pcmtst);
631 struct pcmtst *pcmtst = platform_get_drvdata(pdev);
633 snd_pcmtst_free(pcmtst);