Ignore:
Timestamp:
Apr 3, 2017, 4:51:56 PM (9 years ago)
Author:
David Azarewicz
Message:

Merged/reintegrated v2 branch into trunk. Trunk is now v2

Location:
GPL/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci.c

    r464 r598  
    6767MODULE_PARM_DESC(rear_switch, "Enable shared rear/line-in switch");
    6868
    69 static struct pci_device_id snd_ymfpci_ids[] = {
     69static DEFINE_PCI_DEVICE_TABLE(snd_ymfpci_ids) = {
    7070        { PCI_VDEVICE(YAMAHA, 0x0004), 0, },   /* YMF724 */
    7171        { PCI_VDEVICE(YAMAHA, 0x000d), 0, },   /* YMF724F */
  • GPL/trunk/alsa-kernel/pci/ymfpci/ymfpci_main.c

    r587 r598  
    847847{
    848848        .info =                 (SNDRV_PCM_INFO_MMAP |
    849                                  SNDRV_PCM_INFO_MMAP_VALID |
     849                                 SNDRV_PCM_INFO_MMAP_VALID | 
    850850                                 SNDRV_PCM_INFO_INTERLEAVED |
    851851                                 SNDRV_PCM_INFO_BLOCK_TRANSFER |
     
    13901390static int snd_ymfpci_drec_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *info)
    13911391{
    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);
    14011395}
    14021396
     
    19581952 */
    19591953
    1960 static void snd_ymfpci_proc_read(struct snd_info_entry *entry,
     1954static void snd_ymfpci_proc_read(struct snd_info_entry *entry, 
    19611955                                 struct snd_info_buffer *buffer)
    19621956{
     
    21122106           covered with the kernel page allocation mechanism */
    21132107        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) 
    21152109                return -ENOMEM;
    21162110        ptr = chip->work_ptr.area;
     
    22182212#if 0
    22192213        /* FIXME: temporarily disabled, otherwise we cannot fire up
    2220          * the chip again unless reboot.
     2214         * the chip again unless reboot.  ACPI bug?
    22212215         */
    22222216        pci_set_power_state(chip->pci, 3);
Note: See TracChangeset for help on using the changeset viewer.