Changeset 626
- Timestamp:
- Jan 3, 2021, 9:32:51 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/Makefile
r620 r626 14 14 FILES = hda_intel.obj hda_codec.obj hda_controller.obj hda_auto_parser.obj hda_jack.obj & 15 15 hda_proc.obj hda_generic.obj hda_hwdep.obj hda_sysfs.obj hda_bind.obj & 16 patch_analog.obj patch_cmedia.obj patch_conexant.obj patch_ca0110.obj &16 patch_analog.obj patch_cmedia.obj patch_conexant.obj patch_ca0110.obj patch_cirrus.obj & 17 17 patch_realtek.obj patch_si3054.obj patch_sigmatel.obj patch_via.obj 18 18 -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_ca0132.c
r615 r626 27 27 28 28 #include "ca0132_regs.h" 29 30 #ifdef TARGET_OS2 31 #define KBUILD_MODNAME "patch_ca0132" 32 #endif 29 33 30 34 /* Enable this to see controls for tuning purpose. */ … … 1092 1096 { 0x13, 0x411111f0 }, /* N/A */ 1093 1097 { 0x18, 0x411111f0 }, /* N/A */ 1094 { }1098 {0} 1095 1099 }; 1096 1100 … … 1107 1111 { 0x13, 0x908700f0 }, /* What U Hear In*/ 1108 1112 { 0x18, 0x50d000f0 }, /* N/A */ 1109 { }1113 {0} 1110 1114 }; 1111 1115 … … 1122 1126 { 0x13, 0x908700f0 }, /* What U Hear In*/ 1123 1127 { 0x18, 0x50d000f0 }, /* N/A */ 1124 { }1128 {0} 1125 1129 }; 1126 1130 … … 1137 1141 { 0x13, 0x908700f0 }, /* What U Hear In*/ 1138 1142 { 0x18, 0x50d000f0 }, /* N/A */ 1139 { }1143 {0} 1140 1144 }; 1141 1145 … … 1152 1156 { 0x13, 0x908700f0 }, /* What U Hear In*/ 1153 1157 { 0x18, 0x50d000f0 }, /* N/A */ 1154 { }1158 {0} 1155 1159 }; 1156 1160 … … 1167 1171 { 0x13, 0x908700f0 }, /* What U Hear In*/ 1168 1172 { 0x18, 0x500000f0 }, /* N/A */ 1169 { }1173 {0} 1170 1174 }; 1171 1175 … … 1187 1191 SND_PCI_QUIRK(0x1102, 0x0051, "Sound Blaster AE-5", QUIRK_AE5), 1188 1192 SND_PCI_QUIRK(0x1102, 0x0081, "Sound Blaster AE-7", QUIRK_AE7), 1189 { }1193 {0} 1190 1194 }; 1191 1195 … … 2702 2706 u32 chip_addr; 2703 2707 u32 count; 2704 u32 data[ 0];2708 u32 data[1]; 2705 2709 }; 2706 2710 … … 2725 2729 static size_t dsp_sizeof(const struct dsp_image_seg *p) 2726 2730 { 2731 #ifndef TARGET_OS2 2727 2732 return struct_size(p, data, p->count); 2733 #else 2734 return sizeof(*p) + sizeof(int) + p->count; 2735 #endif 2728 2736 } 2729 2737 … … 6295 6303 SNDRV_CHMAP_FC, SNDRV_CHMAP_LFE, 6296 6304 SNDRV_CHMAP_RL, SNDRV_CHMAP_RR } }, 6297 { 6305 {0} 6298 6306 }; 6299 6307 … … 6304 6312 struct hda_pcm *pcm; 6305 6313 6306 list_for_each_entry(pcm, &codec->pcm_list_head, list ) {6314 list_for_each_entry(pcm, &codec->pcm_list_head, list, struct hda_pcm) { 6307 6315 struct hda_pcm_stream *hinfo = 6308 6316 &pcm->stream[SNDRV_PCM_STREAM_PLAYBACK]; … … 6344 6352 CA0132_CODEC_MUTE_MONO("AMic1/DMic Auto Detect Capture Switch", 6345 6353 VNID_AMIC1_ASEL, 1, HDA_INPUT), 6346 { 6354 {0} /* end */ 6347 6355 }; 6348 6356 … … 6367 6375 CA0132_CODEC_MUTE_MONO("HP/Speaker Auto Detect Playback Switch", 6368 6376 VNID_HP_ASEL, 1, HDA_OUTPUT), 6369 { 6377 {0} /* end */ 6370 6378 }; 6371 6379 … … 6389 6397 CA0132_CODEC_MUTE_MONO("HP/Speaker Auto Detect Playback Switch", 6390 6398 VNID_HP_ASEL, 1, HDA_OUTPUT), 6391 { 6399 {0} /* end */ 6392 6400 }; 6393 6401 … … 7675 7683 /*enable ct extension*/ 7676 7684 {0x15, VENDOR_CHIPIO_CT_EXTENSIONS_ENABLE, 0x1}, 7677 { }7685 {0} 7678 7686 }; 7679 7687 … … 7684 7692 /*disable ct extension*/ 7685 7693 {0x15, VENDOR_CHIPIO_CT_EXTENSIONS_ENABLE, 0}, 7686 { }7694 {0} 7687 7695 }; 7688 7696 … … 7718 7726 {0x15, 0x53B, 0xCE}, 7719 7727 {0x15, 0x5E8, 0xC9}, 7720 { }7728 {0} 7721 7729 }; 7722 7730 … … 7739 7747 {0x15, 0x707, 0x14}, 7740 7748 {0x15, 0x6FF, 0xC4}, 7741 { }7749 {0} 7742 7750 }; 7743 7751 … … 8901 8909 static struct hda_device_id snd_hda_id_ca0132[] = { 8902 8910 HDA_CODEC_ENTRY(0x11020011, "CA0132", patch_ca0132), 8903 { } /* terminator */8911 {0} /* terminator */ 8904 8912 }; 8905 8913 MODULE_DEVICE_TABLE(hdaudio, snd_hda_id_ca0132); -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_cirrus.c
r615 r626 16 16 #include "hda_jack.h" 17 17 #include "hda_generic.h" 18 19 #ifdef TARGET_OS2 20 #define KBUILD_MODNAME "patch_cirrus" 21 #endif 18 22 19 23 /* … … 216 220 {0x11, AC_VERB_SET_PROC_COEF, 0x0007}, /* Enable Beep thru DAC1/2/3 */ 217 221 218 { } /* terminator */222 {0} /* terminator */ 219 223 }; 220 224 … … 226 230 {0x24, AC_VERB_SET_COEF_INDEX, 0x0034}, 227 231 {0x24, AC_VERB_SET_PROC_COEF, 0x1C01}, /* A1 Enable, A Thresh = 300mV */ 228 { } /* terminator */232 {0} /* terminator */ 229 233 }; 230 234 … … 275 279 #endif 276 280 277 { } /* terminator */281 {0} /* terminator */ 278 282 }; 279 283 … … 384 388 { .id = CS420X_MBP81, .name = "mbp81" }, 385 389 { .id = CS420X_MBA42, .name = "mba42" }, 386 { }390 {0} 387 391 }; 388 392 … … 403 407 SND_PCI_QUIRK(0x106b, 0x5b00, "MacBookAir 4,2", CS420X_MBA42), 404 408 SND_PCI_QUIRK_VENDOR(0x106b, "Apple", CS420X_APPLE), 405 { } /* terminator */409 {0} /* terminator */ 406 410 }; 407 411 … … 417 421 { 0x12, 0x400000f0 }, 418 422 { 0x15, 0x400000f0 }, 419 { } /* terminator */423 {0} /* terminator */ 420 424 }; 421 425 … … 431 435 { 0x12, 0x400000f0 }, 432 436 { 0x15, 0x400000f0 }, 433 { } /* terminator */437 {0} /* terminator */ 434 438 }; 435 439 … … 445 449 { 0x12, 0x01ab9070 }, 446 450 { 0x15, 0x400000f0 }, 447 { } /* terminator */451 {0} /* terminator */ 448 452 }; 449 453 … … 452 456 { 0x0e, 0x90a600f0 }, 453 457 { 0x12, 0x50a600f0 }, 454 { } /* terminator */458 {0} /* terminator */ 455 459 }; 456 460 … … 466 470 { 0x12, 0x400000f0 }, 467 471 { 0x15, 0x400000f0 }, 468 { } /* terminator */472 {0} /* terminator */ 469 473 }; 470 474 … … 489 493 { 0x21, 0x430000f0 }, 490 494 { 0x22, 0x430000f0 }, 491 { } /* terminator */495 {0} /* terminator */ 492 496 }; 493 497 … … 549 553 .chain_id = CS420X_GPIO_13, 550 554 }, 555 #ifdef TARGET_OS2xxx 551 556 [CS420X_MBP81] = { 552 557 .type = HDA_FIXUP_VERBS, … … 555 560 {0x11, AC_VERB_SET_COEF_INDEX, IDX_ADC_CFG}, 556 561 {0x11, AC_VERB_SET_PROC_COEF, 0x102a}, 557 { }562 {0} 558 563 }, 559 564 .chained = true, 560 565 .chain_id = CS420X_GPIO_13, 561 566 }, 567 #endif 562 568 [CS420X_MBA42] = { 563 569 .type = HDA_FIXUP_PINS, … … 630 636 { .id = CS4208_MBP11, .name = "mbp11" }, 631 637 { .id = CS4208_MACMINI, .name = "macmini" }, 632 { }638 {0} 633 639 }; 634 640 635 641 static const struct snd_pci_quirk cs4208_fixup_tbl[] = { 636 642 SND_PCI_QUIRK_VENDOR(0x106b, "Apple", CS4208_MAC_AUTO), 637 { } /* terminator */643 {0} /* terminator */ 638 644 }; 639 645 … … 645 651 SND_PCI_QUIRK(0x106b, 0x7200, "MacBookAir 6,2", CS4208_MBA6), 646 652 SND_PCI_QUIRK(0x106b, 0x7b00, "MacBookPro 12,1", CS4208_MBP11), 647 { } /* terminator */653 {0} /* terminator */ 648 654 }; 649 655 … … 683 689 { 0x18, 0x00ab9150 }, /* mic (audio-in) jack: disable detect */ 684 690 { 0x21, 0x004be140 }, /* SPDIF: disable detect */ 685 { 691 {0} 686 692 }; 687 693 … … 813 819 { .id = CS421X_CDB4210, .name = "cdb4210" }, 814 820 { .id = CS421X_STUMPY, .name = "stumpy" }, 815 { }821 {0} 816 822 }; 817 823 … … 819 825 /* Test Intel board + CDB2410 */ 820 826 SND_PCI_QUIRK(0x8086, 0x5001, "DP45SG/CDB4210", CS421X_CDB4210), 821 { } /* terminator */827 {0} /* terminator */ 822 828 }; 823 829 … … 831 837 { 0x09, 0xb7a6003e }, 832 838 { 0x0a, 0x034510f0 }, 833 { } /* terminator */839 {0} /* terminator */ 834 840 }; 835 841 … … 842 848 { 0x09, 0x77a6003e }, 843 849 { 0x0a, 0x434510f0 }, 844 { } /* terminator */850 {0} /* terminator */ 845 851 }; 846 852 … … 890 896 | 0x0008 /* Enable DAC High Pass Filter */ 891 897 )}, 892 { } /* terminator */898 {0} /* terminator */ 893 899 }; 894 900 … … 926 932 {0x0B, AC_VERB_SET_PROC_COEF, 0X1006}, /* Remove noise */ 927 933 928 { } /* terminator */934 {0} /* terminator */ 929 935 }; 930 936 … … 1230 1236 HDA_CODEC_ENTRY(0x10134210, "CS4210", patch_cs4210), 1231 1237 HDA_CODEC_ENTRY(0x10134213, "CS4213", patch_cs4213), 1232 { } /* terminator */1238 {0} /* terminator */ 1233 1239 }; 1234 1240 MODULE_DEVICE_TABLE(hdaudio, snd_hda_id_cirrus); -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_hdmi.c
r615 r626 23 23 #include <linux/module.h> 24 24 #include <linux/pm_runtime.h> 25 #ifdef TARGET_OS2 26 #include <linux/mod_devicetable.h> 27 #endif 25 28 #include <sound/core.h> 26 29 #include <sound/jack.h> … … 38 41 module_param(static_hdmi_pcm, bool, 0644); 39 42 MODULE_PARM_DESC(static_hdmi_pcm, "Don't restrict PCM parameters per ELD info"); 43 44 #ifdef TARGET_OS2 45 #define KBUILD_MODNAME "patch_hdmi" 46 #endif 40 47 41 48 #define is_haswell(codec) ((codec)->core.vendor_id == 0x80862807) … … 226 233 struct hdmi_audio_infoframe hdmi; 227 234 struct dp_audio_infoframe dp; 228 u8 bytes[ 0];235 u8 bytes[1]; 229 236 }; 230 237 … … 1821 1828 SND_PCI_QUIRK(0x103c, 0x870f, "HP", 1), 1822 1829 SND_PCI_QUIRK(0x103c, 0x871a, "HP", 1), 1823 { }1830 {0} 1824 1831 }; 1825 1832 … … 3058 3065 /* enable digital output on pin widget */ 3059 3066 { 0x5, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT | 0x5 }, 3060 {0 ]/* terminator */3067 {0} /* terminator */ 3061 3068 }; 3062 3069 -
GPL/branches/uniaud32-next/lib32/initcall.h
r620 r626 123 123 extern_module_init(ca0110_driver_init) 124 124 extern_module_exit(ca0110_driver_exit) 125 extern_module_init(cirrus_driver_init) 126 extern_module_exit(cirrus_driver_exit) 125 127 extern_module_init(conexant_driver_init) 126 128 extern_module_exit(conexant_driver_exit) 129 extern_module_init(hdmi_driver_init) 130 extern_module_exit(hdmi_driver_exit) 127 131 extern_module_init(realtek_driver_init) 128 132 extern_module_exit(realtek_driver_exit) -
GPL/branches/uniaud32-next/lib32/ossidc.c
r620 r626 134 134 call_module_init(generic_driver_init); 135 135 call_module_init(analog_driver_init); 136 //call_module_init(atihdmi_driver_init);137 136 call_module_init(ca0110_driver_init); 137 call_module_init(cirrus_driver_init); 138 138 call_module_init(cmedia_driver_init); 139 139 call_module_init(conexant_driver_init); 140 // call_module_init(hdmi_driver_init); 140 141 call_module_init(realtek_driver_init); 141 142 call_module_init(sigmatel_driver_init);
Note:
See TracChangeset
for help on using the changeset viewer.