aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ali5451
diff options
context:
space:
mode:
authorSasha Khapyorsky <sashak@smlink.com>2005-09-29 05:48:17 -0400
committerJaroslav Kysela <perex@suse.cz>2005-11-04 07:16:56 -0500
commit6632d198c6643294319a4ca3f614539dc1ad37a8 (patch)
tree84476c6179399721cd61fdd08f95001a8a2b4bc2 /sound/pci/ali5451
parentd602c885a6c30c78197b752c9241ce7e86cdf704 (diff)
[ALSA] dev_class=SNDRV_PCM_CLASS_MODEM for modem PCMs
dev_class=SNDRV_PCM_CLASS_MODEM for all supported softmodem PCMs Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ali5451')
-rw-r--r--sound/pci/ali5451/ali5451.c5
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
1837static struct ali_pcm_description ali_pcms[] = { 1838static 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
1842static int __devinit snd_ali_build_pcms(ali_t *codec) 1843static int __devinit snd_ali_build_pcms(ali_t *codec)