p16v.c (3eb66e91a25497065c5322b1268cbc3953642227) | p16v.c (5116b94af07a9775ed694562f354e931b2cc04d4) |
---|---|
1/* 2 * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk> 3 * Driver p16v chips 4 * Version: 0.25 5 * 6 * FEATURES currently supported: 7 * Output fixed at S32_LE, 2 channel to hw:0,0 8 * Rates: 44.1, 48, 96, 192. --- 642 unchanged lines hidden (view full) --- 651 pcm->info_flags = 0; 652 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; 653 strcpy(pcm->name, "p16v"); 654 emu->pcm_p16v = pcm; 655 656 for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; 657 substream; 658 substream = substream->next) { | 1/* 2 * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk> 3 * Driver p16v chips 4 * Version: 0.25 5 * 6 * FEATURES currently supported: 7 * Output fixed at S32_LE, 2 channel to hw:0,0 8 * Rates: 44.1, 48, 96, 192. --- 642 unchanged lines hidden (view full) --- 651 pcm->info_flags = 0; 652 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; 653 strcpy(pcm->name, "p16v"); 654 emu->pcm_p16v = pcm; 655 656 for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; 657 substream; 658 substream = substream->next) { |
659 if ((err = snd_pcm_lib_preallocate_pages(substream, 660 SNDRV_DMA_TYPE_DEV, 661 snd_dma_pci_data(emu->pci), 662 ((65536 - 64) * 8), ((65536 - 64) * 8))) < 0) 663 return err; | 659 snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV, 660 snd_dma_pci_data(emu->pci), 661 (65536 - 64) * 8, 662 (65536 - 64) * 8); |
664 /* 665 dev_dbg(emu->card->dev, 666 "preallocate playback substream: err=%d\n", err); 667 */ 668 } 669 670 for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; 671 substream; 672 substream = substream->next) { | 663 /* 664 dev_dbg(emu->card->dev, 665 "preallocate playback substream: err=%d\n", err); 666 */ 667 } 668 669 for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; 670 substream; 671 substream = substream->next) { |
673 if ((err = snd_pcm_lib_preallocate_pages(substream, 674 SNDRV_DMA_TYPE_DEV, 675 snd_dma_pci_data(emu->pci), 676 65536 - 64, 65536 - 64)) < 0) 677 return err; | 672 snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV, 673 snd_dma_pci_data(emu->pci), 674 65536 - 64, 65536 - 64); |
678 /* 679 dev_dbg(emu->card->dev, 680 "preallocate capture substream: err=%d\n", err); 681 */ 682 } 683 684 return 0; 685} --- 224 unchanged lines hidden --- | 675 /* 676 dev_dbg(emu->card->dev, 677 "preallocate capture substream: err=%d\n", err); 678 */ 679 } 680 681 return 0; 682} --- 224 unchanged lines hidden --- |