Changeset 607 for GPL/trunk/alsa-kernel/pci/ens1370.c
- Timestamp:
- Nov 17, 2018, 4:23:38 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/pci/ens1370.c
r598 r607 23 23 * for ens1371 only ( FIXME ) 24 24 * derived from cs4281.c, atiixp.c and via82xx.c 25 * using http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ 25 * using http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ 26 26 * by Kurt J. Bosch 27 27 */ … … 468 468 {5512, 11025, 22050, 44100}; 469 469 static struct snd_pcm_hw_constraint_list snd_es1370_hw_constraints_rates = { 470 .count = 4, 470 .count = 4, 471 471 .list = snd_es1370_fixed_rates, 472 472 .mask = 0, … … 474 474 static struct snd_ratnum es1370_clock = { 475 475 .num = ES_1370_SRCLOCK, 476 .den_min = 29, 476 .den_min = 29, 477 477 .den_max = 353, 478 478 .den_step = 1, … … 495 495 static struct snd_ratnum es1371_adc_clock = { 496 496 .num = 48000 << 15, 497 .den_min = 32768, 497 .den_min = 32768, 498 498 .den_max = 393216, 499 499 .den_step = 1, … … 1055 1055 #else 1056 1056 (SNDRV_PCM_RATE_KNOT | /* 5512Hz rate */ 1057 SNDRV_PCM_RATE_11025 | SNDRV_PCM_RATE_22050 | 1057 SNDRV_PCM_RATE_11025 | SNDRV_PCM_RATE_22050 | 1058 1058 SNDRV_PCM_RATE_44100), 1059 1059 #endif … … 1074 1074 .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | 1075 1075 SNDRV_PCM_INFO_BLOCK_TRANSFER | 1076 SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE | 1076 SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE | 1077 1077 SNDRV_PCM_INFO_SYNC_START), 1078 1078 .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE, … … 1866 1866 */ 1867 1867 1868 static void snd_ensoniq_proc_read(struct snd_info_entry *entry, 1868 static void snd_ensoniq_proc_read(struct snd_info_entry *entry, 1869 1869 struct snd_info_buffer *buffer) 1870 1870 { … … 2489 2489 }; 2490 2490 2491 static int __init alsa_card_ens137x_init(void) 2491 #ifdef CHIP1370 2492 static int __init alsa_card_ens1370_init(void) 2492 2493 { 2493 2494 return pci_register_driver(&driver); 2494 2495 } 2495 2496 2496 static void __exit alsa_card_ens137 x_exit(void)2497 static void __exit alsa_card_ens1370_exit(void) 2497 2498 { 2498 2499 pci_unregister_driver(&driver); 2499 2500 } 2500 2501 module_init(alsa_card_ens137x_init) 2502 module_exit(alsa_card_ens137x_exit) 2501 module_init(alsa_card_ens1370_init) 2502 module_exit(alsa_card_ens1370_exit) 2503 #endif 2504 2505 #ifdef CHIP1371 2506 static int __init alsa_card_ens1371_init(void) 2507 { 2508 return pci_register_driver(&driver); 2509 } 2510 2511 static void __exit alsa_card_ens1371_exit(void) 2512 { 2513 pci_unregister_driver(&driver); 2514 } 2515 module_init(alsa_card_ens1371_init) 2516 module_exit(alsa_card_ens1371_exit) 2517 #endif 2518 2519
Note:
See TracChangeset
for help on using the changeset viewer.