diff options
Diffstat (limited to 'sound/pci/cmipci.c')
-rw-r--r-- | sound/pci/cmipci.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index db605373b3b..0309689f37f 100644 --- a/sound/pci/cmipci.c +++ b/sound/pci/cmipci.c | |||
@@ -1693,11 +1693,6 @@ static snd_pcm_ops_t snd_cmipci_capture_spdif_ops = { | |||
1693 | /* | 1693 | /* |
1694 | */ | 1694 | */ |
1695 | 1695 | ||
1696 | static void snd_cmipci_pcm_free(snd_pcm_t *pcm) | ||
1697 | { | ||
1698 | snd_pcm_lib_preallocate_free_for_all(pcm); | ||
1699 | } | ||
1700 | |||
1701 | static int __devinit snd_cmipci_pcm_new(cmipci_t *cm, int device) | 1696 | static int __devinit snd_cmipci_pcm_new(cmipci_t *cm, int device) |
1702 | { | 1697 | { |
1703 | snd_pcm_t *pcm; | 1698 | snd_pcm_t *pcm; |
@@ -1711,7 +1706,6 @@ static int __devinit snd_cmipci_pcm_new(cmipci_t *cm, int device) | |||
1711 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_ops); | 1706 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_ops); |
1712 | 1707 | ||
1713 | pcm->private_data = cm; | 1708 | pcm->private_data = cm; |
1714 | pcm->private_free = snd_cmipci_pcm_free; | ||
1715 | pcm->info_flags = 0; | 1709 | pcm->info_flags = 0; |
1716 | strcpy(pcm->name, "C-Media PCI DAC/ADC"); | 1710 | strcpy(pcm->name, "C-Media PCI DAC/ADC"); |
1717 | cm->pcm = pcm; | 1711 | cm->pcm = pcm; |
@@ -1734,7 +1728,6 @@ static int __devinit snd_cmipci_pcm2_new(cmipci_t *cm, int device) | |||
1734 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback2_ops); | 1728 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_cmipci_playback2_ops); |
1735 | 1729 | ||
1736 | pcm->private_data = cm; | 1730 | pcm->private_data = cm; |
1737 | pcm->private_free = snd_cmipci_pcm_free; | ||
1738 | pcm->info_flags = 0; | 1731 | pcm->info_flags = 0; |
1739 | strcpy(pcm->name, "C-Media PCI 2nd DAC"); | 1732 | strcpy(pcm->name, "C-Media PCI 2nd DAC"); |
1740 | cm->pcm2 = pcm; | 1733 | cm->pcm2 = pcm; |
@@ -1758,7 +1751,6 @@ static int __devinit snd_cmipci_pcm_spdif_new(cmipci_t *cm, int device) | |||
1758 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_spdif_ops); | 1751 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_cmipci_capture_spdif_ops); |
1759 | 1752 | ||
1760 | pcm->private_data = cm; | 1753 | pcm->private_data = cm; |
1761 | pcm->private_free = snd_cmipci_pcm_free; | ||
1762 | pcm->info_flags = 0; | 1754 | pcm->info_flags = 0; |
1763 | strcpy(pcm->name, "C-Media PCI IEC958"); | 1755 | strcpy(pcm->name, "C-Media PCI IEC958"); |
1764 | cm->pcm_spdif = pcm; | 1756 | cm->pcm_spdif = pcm; |