Changeset 598 for GPL/trunk/alsa-kernel/pci/ymfpci
- Timestamp:
- Apr 3, 2017, 4:51:56 PM (9 years ago)
- Location:
- GPL/trunk
- Files:
-
- 1 added
- 3 edited
-
. (modified) (1 prop)
-
alsa-kernel/pci/ymfpci/ymfpci.c (modified) (1 diff)
-
alsa-kernel/pci/ymfpci/ymfpci_image.h (added)
-
alsa-kernel/pci/ymfpci/ymfpci_main.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
-
Property svn:mergeinfo
set to
/GPL/branches/uniaud32-2.1.x merged eligible
-
Property svn:mergeinfo
set to
-
GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci.c
r464 r598 67 67 MODULE_PARM_DESC(rear_switch, "Enable shared rear/line-in switch"); 68 68 69 static struct pci_device_id snd_ymfpci_ids[]= {69 static DEFINE_PCI_DEVICE_TABLE(snd_ymfpci_ids) = { 70 70 { PCI_VDEVICE(YAMAHA, 0x0004), 0, }, /* YMF724 */ 71 71 { PCI_VDEVICE(YAMAHA, 0x000d), 0, }, /* YMF724F */ -
GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci_main.c
r587 r598 847 847 { 848 848 .info = (SNDRV_PCM_INFO_MMAP | 849 SNDRV_PCM_INFO_MMAP_VALID | 849 SNDRV_PCM_INFO_MMAP_VALID | 850 850 SNDRV_PCM_INFO_INTERLEAVED | 851 851 SNDRV_PCM_INFO_BLOCK_TRANSFER | … … 1390 1390 static int snd_ymfpci_drec_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *info) 1391 1391 { 1392 static char *texts[3] = {"AC'97", "IEC958", "ZV Port"}; 1393 1394 info->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 1395 info->count = 1; 1396 info->value.enumerated.items = 3; 1397 if (info->value.enumerated.item > 2) 1398 info->value.enumerated.item = 2; 1399 strcpy(info->value.enumerated.name, texts[info->value.enumerated.item]); 1400 return 0; 1392 static const char *const texts[3] = {"AC'97", "IEC958", "ZV Port"}; 1393 1394 return snd_ctl_enum_info(info, 1, 3, texts); 1401 1395 } 1402 1396 … … 1958 1952 */ 1959 1953 1960 static void snd_ymfpci_proc_read(struct snd_info_entry *entry, 1954 static void snd_ymfpci_proc_read(struct snd_info_entry *entry, 1961 1955 struct snd_info_buffer *buffer) 1962 1956 { … … 2112 2106 covered with the kernel page allocation mechanism */ 2113 2107 if (snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, snd_dma_pci_data(chip->pci), 2114 size, &chip->work_ptr) < 0) 2108 size, &chip->work_ptr) < 0) 2115 2109 return -ENOMEM; 2116 2110 ptr = chip->work_ptr.area; … … 2218 2212 #if 0 2219 2213 /* FIXME: temporarily disabled, otherwise we cannot fire up 2220 * the chip again unless reboot. 2214 * the chip again unless reboot. ACPI bug? 2221 2215 */ 2222 2216 pci_set_power_state(chip->pci, 3);
Note:
See TracChangeset
for help on using the changeset viewer.
