diff options
Diffstat (limited to 'sound/pci/ali5451/ali5451.c')
-rw-r--r-- | sound/pci/ali5451/ali5451.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index f35b558c29b2..01d971c89e43 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -1795,6 +1795,7 @@ struct ali_pcm_description { | |||
1795 | unsigned int capture_num; | 1795 | unsigned int capture_num; |
1796 | snd_pcm_ops_t *playback_ops; | 1796 | snd_pcm_ops_t *playback_ops; |
1797 | snd_pcm_ops_t *capture_ops; | 1797 | snd_pcm_ops_t *capture_ops; |
1798 | unsigned short class; | ||
1798 | }; | 1799 | }; |
1799 | 1800 | ||
1800 | 1801 | ||
@@ -1818,7 +1819,6 @@ static int __devinit snd_ali_pcm(ali_t * codec, int device, struct ali_pcm_descr | |||
1818 | } | 1819 | } |
1819 | pcm->private_data = codec; | 1820 | pcm->private_data = codec; |
1820 | pcm->private_free = snd_ali_pcm_free; | 1821 | pcm->private_free = snd_ali_pcm_free; |
1821 | pcm->info_flags = 0; | ||
1822 | if (desc->playback_ops) | 1822 | if (desc->playback_ops) |
1823 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, desc->playback_ops); | 1823 | snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, desc->playback_ops); |
1824 | if (desc->capture_ops) | 1824 | if (desc->capture_ops) |
@@ -1828,6 +1828,7 @@ static int __devinit snd_ali_pcm(ali_t * codec, int device, struct ali_pcm_descr | |||
1828 | snd_dma_pci_data(codec->pci), 64*1024, 128*1024); | 1828 | snd_dma_pci_data(codec->pci), 64*1024, 128*1024); |
1829 | 1829 | ||
1830 | pcm->info_flags = 0; | 1830 | pcm->info_flags = 0; |
1831 | pcm->dev_class = desc->class; | ||
1831 | pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; | 1832 | pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; |
1832 | strcpy(pcm->name, desc->name); | 1833 | strcpy(pcm->name, desc->name); |
1833 | codec->pcm[0] = pcm; | 1834 | codec->pcm[0] = pcm; |
@@ -1836,7 +1837,7 @@ static int __devinit snd_ali_pcm(ali_t * codec, int device, struct ali_pcm_descr | |||
1836 | 1837 | ||
1837 | static struct ali_pcm_description ali_pcms[] = { | 1838 | static struct ali_pcm_description ali_pcms[] = { |
1838 | { "ALI 5451", ALI_CHANNELS, 1, &snd_ali_playback_ops, &snd_ali_capture_ops }, | 1839 | { "ALI 5451", ALI_CHANNELS, 1, &snd_ali_playback_ops, &snd_ali_capture_ops }, |
1839 | { "ALI 5451 modem", 1, 1, &snd_ali_modem_playback_ops, &snd_ali_modem_capture_ops } | 1840 | { "ALI 5451 modem", 1, 1, &snd_ali_modem_playback_ops, &snd_ali_modem_capture_ops, SNDRV_PCM_CLASS_MODEM } |
1840 | }; | 1841 | }; |
1841 | 1842 | ||
1842 | static int __devinit snd_ali_build_pcms(ali_t *codec) | 1843 | static int __devinit snd_ali_build_pcms(ali_t *codec) |