Changeset 598 for GPL/trunk/alsa-kernel/pci/bt87x.c
- Timestamp:
- Apr 3, 2017, 4:51:56 PM (8 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
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/bt87x.c
r464 r598 643 643 struct snd_ctl_elem_info *info) 644 644 { 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); 654 648 } 655 649 … … 801 795 /* driver_data is the card id for that device */ 802 796 803 static struct pci_device_id snd_bt87x_ids[]= {797 static DEFINE_PCI_DEVICE_TABLE(snd_bt87x_ids) = { 804 798 /* Hauppauge WinTV series */ 805 799 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x0070, 0x13eb, GENERIC), … … 814 808 /* Leadtek Winfast tv 2000xp delux */ 815 809 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x107d, 0x6606, GENERIC), 810 /* Pinnacle PCTV */ 811 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x11bd, 0x0012, GENERIC), 816 812 /* Voodoo TV 200 */ 817 813 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, 0x121a, 0x3000, GENERIC), … … 995 991 /* default entries for all Bt87x cards - it's not exported */ 996 992 /* driver_data is set to 0 to call detection */ 997 static struct pci_device_id snd_bt87x_default_ids[] __devinitdata= {993 static DEFINE_PCI_DEVICE_TABLE(snd_bt87x_default_ids) = { 998 994 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_878, PCI_ANY_ID, PCI_ANY_ID, UNKNOWN), 999 995 BT_DEVICE(PCI_DEVICE_ID_BROOKTREE_879, PCI_ANY_ID, PCI_ANY_ID, UNKNOWN),
Note:
See TracChangeset
for help on using the changeset viewer.