bt87x.c (3eb66e91a25497065c5322b1268cbc3953642227) | bt87x.c (5116b94af07a9775ed694562f354e931b2cc04d4) |
---|---|
1/* 2 * bt87x.c - Brooktree Bt878/Bt879 driver for ALSA 3 * 4 * Copyright (c) Clemens Ladisch <clemens@ladisch.de> 5 * 6 * based on btaudio.c by Gerd Knorr <kraxel@bytesex.org> 7 * 8 * --- 700 unchanged lines hidden (view full) --- 709 struct snd_pcm *pcm; 710 711 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); 712 if (err < 0) 713 return err; 714 pcm->private_data = chip; 715 strcpy(pcm->name, name); 716 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_bt87x_pcm_ops); | 1/* 2 * bt87x.c - Brooktree Bt878/Bt879 driver for ALSA 3 * 4 * Copyright (c) Clemens Ladisch <clemens@ladisch.de> 5 * 6 * based on btaudio.c by Gerd Knorr <kraxel@bytesex.org> 7 * 8 * --- 700 unchanged lines hidden (view full) --- 709 struct snd_pcm *pcm; 710 711 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); 712 if (err < 0) 713 return err; 714 pcm->private_data = chip; 715 strcpy(pcm->name, name); 716 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_bt87x_pcm_ops); |
717 return snd_pcm_lib_preallocate_pages_for_all(pcm, 718 SNDRV_DMA_TYPE_DEV_SG, 719 snd_dma_pci_data(chip->pci), 720 128 * 1024, 721 ALIGN(255 * 4092, 1024)); | 717 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV_SG, 718 snd_dma_pci_data(chip->pci), 719 128 * 1024, 720 ALIGN(255 * 4092, 1024)); 721 return 0; |
722} 723 724static int snd_bt87x_create(struct snd_card *card, 725 struct pci_dev *pci, 726 struct snd_bt87x **rchip) 727{ 728 struct snd_bt87x *chip; 729 int err; --- 265 unchanged lines hidden --- | 722} 723 724static int snd_bt87x_create(struct snd_card *card, 725 struct pci_dev *pci, 726 struct snd_bt87x **rchip) 727{ 728 struct snd_bt87x *chip; 729 int err; --- 265 unchanged lines hidden --- |