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

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

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

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

    r464 r598  
    643643                                         struct snd_ctl_elem_info *info)
    644644{
    645         static char *texts[3] = {"TV Tuner", "FM", "Mic/Line"};
    646 
    647         info->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
    648         info->count = 1;
    649         info->value.enumerated.items = 3;
    650         if (info->value.enumerated.item > 2)
    651                 info->value.enumerated.item = 2;
    652         strcpy(info->value.enumerated.name, texts[info->value.enumerated.item]);
    653         return 0;
     645        static const char *const texts[3] = {"TV Tuner", "FM", "Mic/Line"};
     646
     647        return snd_ctl_enum_info(info, 1, 3, texts);
    654648}
    655649
     
    801795/* driver_data is the card id for that device */
    802796
    803 static struct pci_device_id snd_bt87x_ids[] = {
     797static DEFINE_PCI_DEVICE_TABLE(snd_bt87x_ids) = {
    804798        /* Hauppauge WinTV series */
    805799        BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x0070, 0x13eb, GENERIC),
     
    814808        /* Leadtek Winfast tv 2000xp delux */
    815809        BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x107d, 0x6606, GENERIC),
     810        /* Pinnacle PCTV */
     811        BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x11bd, 0x0012, GENERIC),
    816812        /* Voodoo TV 200 */
    817813        BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x121a, 0x3000, GENERIC),
     
    995991/* default entries for all Bt87x cards - it's not exported */
    996992/* driver_data is set to 0 to call detection */
    997 static struct pci_device_id snd_bt87x_default_ids[] __devinitdata = {
     993static DEFINE_PCI_DEVICE_TABLE(snd_bt87x_default_ids) = {
    998994        BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, PCI_ANY_ID, PCI_ANY_ID, UNKNOWN),
    999995        BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_879, PCI_ANY_ID, PCI_ANY_ID, UNKNOWN),
Note: See TracChangeset for help on using the changeset viewer.