aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/cmipci.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-11-16 12:43:35 -0500
committerJaroslav Kysela <perex@suse.cz>2006-01-03 06:16:21 -0500
commitc3e6f7d8763fa0400d28c57633eb323515ba05fc (patch)
treeb0803843b710ac74fc1399910445a8ff2cf396a5 /sound/pci/cmipci.c
parentf31a31b9024f21b2ad8f5a7c30e265a652e2e211 (diff)
[ALSA] Remove superfluous pcm_free callbacks
Remove superflous pcm_free callbacks. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cmipci.c')
-rw-r--r--sound/pci/cmipci.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c
index db605373b3bc..0309689f37f5 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
1696static void snd_cmipci_pcm_free(snd_pcm_t *pcm)
1697{
1698 snd_pcm_lib_preallocate_free_for_all(pcm);
1699}
1700
1701static int __devinit snd_cmipci_pcm_new(cmipci_t *cm, int device) 1696static 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;