H A D | patch_realtek.c | 196 #define UPDATE_COEF(_idx, _mask, _val) UPDATE_COEFEX(0x20, _idx, _mask, _val) macro 2745 UPDATE_COEF(0x05, 0xff3f, 0x0700), /* FIFO and filter clock */ 2747 UPDATE_COEF(0x06, 0x00f0, 0), /* Analog clock */ 2748 UPDATE_COEF(0x08, 0xfffc, 0x0c2c), /* JD */ 2752 UPDATE_COEF(0x0f, 0xf800, 0x1000), /* JD */ 2753 UPDATE_COEF(0x10, 0xfc00, 0x0c00), /* Capless */ 2755 UPDATE_COEF(0x0c, 0xfe00, 0), /* IO power down directly */ 2757 UPDATE_COEF(0x16, 0x0008, 0), /* AGC MUX */ 2758 UPDATE_COEF(0x1d, 0x00e0, 0), /* DAC simple content protection */ 2759 UPDATE_COEF(0x1f, 0x00e0, 0), /* ADC simple content protection */ 2766 UPDATE_COEF(0x6d, 0x0fff, 0x0900), /* class D test 2 */ 2768 UPDATE_COEF(0x70, 0x00f8, 0x00d8), /* class D test 5 */ 2771 UPDATE_COEF(0x77, 0x0f80, 0), /* classD pure DC test */ 2856 UPDATE_COEF(0x05, 0xff3f, 0x0700), /* FIFO and filter clock */ 2858 UPDATE_COEF(0x06, 0x00f0, 0), /* Analog clock */ 2859 UPDATE_COEF(0x08, 0xfffc, 0x0c2c), /* JD */ 2863 UPDATE_COEF(0x0f, 0xf800, 0x1000), /* JD */ 2864 UPDATE_COEF(0x10, 0xfc00, 0x0c00), /* Capless */ 2866 UPDATE_COEF(0x0c, 0xfe00, 0x0), /* IO power down directly */ 2869 UPDATE_COEF(0x1d, 0x00e0, 0), /* DAC simple content protection */ 2870 UPDATE_COEF(0x1f, 0x00e0, 0), /* ADC simple content protection */ 2877 UPDATE_COEF(0x38, 0x0fff, 0x0900), /* class D test 2 */ 2879 UPDATE_COEF(0x3b, 0x00f8, 0x00d8), /* class D test 5 */ 2882 UPDATE_COEF(0x42, 0x0f80, 0x0), /* classD pure DC test */ 2884 UPDATE_COEF(0x40, 0xf800, 0x9800), /* Class D DC enable */ 2885 UPDATE_COEF(0x42, 0xf000, 0x2000), /* DC offset */ 2887 UPDATE_COEF(0x1b, 0x8000, 0), /* HP JD control */ 3643 UPDATE_COEF(0x35, 0x4000, 0), alc_headset_mode_unplugged() 3651 UPDATE_COEF(0x4f, 0xfcc0, 0xc400), alc_headset_mode_unplugged() 3652 UPDATE_COEF(0x50, 0x2000, 0x2000), alc_headset_mode_unplugged() 3653 UPDATE_COEF(0x56, 0x0006, 0x0006), alc_headset_mode_unplugged() 3654 UPDATE_COEF(0x66, 0x0008, 0), alc_headset_mode_unplugged() 3655 UPDATE_COEF(0x67, 0x2000, 0), alc_headset_mode_unplugged() 3666 UPDATE_COEF(0x10, 7<<8, 6<<8), /* SET Line1 JD to 0 */ alc_headset_mode_unplugged() 3669 UPDATE_COEF(0x1a, 1<<3, 1<<3), /* Combo JD gating with LINE1-VREFO */ alc_headset_mode_unplugged() 3671 UPDATE_COEF(0x4a, 0x000f, 0x000e), /* Combo Jack auto detect */ alc_headset_mode_unplugged() 3680 UPDATE_COEF(0x4a, 1<<8, 0), alc_headset_mode_unplugged() 3682 UPDATE_COEF(0x63, 3<<14, 3<<14), alc_headset_mode_unplugged() 3683 UPDATE_COEF(0x4a, 3<<4, 2<<4), alc_headset_mode_unplugged() 3684 UPDATE_COEF(0x4a, 3<<10, 3<<10), alc_headset_mode_unplugged() 3685 UPDATE_COEF(0x45, 0x3f<<10, 0x34<<10), alc_headset_mode_unplugged() 3686 UPDATE_COEF(0x4a, 3<<10, 0), alc_headset_mode_unplugged() 3735 UPDATE_COEF(0x35, 0, 1<<14), alc_headset_mode_mic_in() 3742 UPDATE_COEF(0x50, 0x2000, 0), alc_headset_mode_mic_in() 3743 UPDATE_COEF(0x56, 0x0006, 0), alc_headset_mode_mic_in() 3744 UPDATE_COEF(0x4f, 0xfcc0, 0xc400), alc_headset_mode_mic_in() 3745 UPDATE_COEF(0x66, 0x0008, 0x0008), alc_headset_mode_mic_in() 3746 UPDATE_COEF(0x67, 0x2000, 0x2000), alc_headset_mode_mic_in() 3757 UPDATE_COEF(0x1a, 1<<3, 0), /* Combo JD gating without LINE1-VREFO */ alc_headset_mode_mic_in() 3763 UPDATE_COEF(0xc3, 0, 1<<12), alc_headset_mode_mic_in() 3768 UPDATE_COEF(0x4a, 3<<4, 2<<4), alc_headset_mode_mic_in() 3769 UPDATE_COEF(0x63, 3<<14, 0), alc_headset_mode_mic_in() 3832 UPDATE_COEF(0x45, 0x3f<<10, 0x34<<10), alc_headset_mode_default() 3848 UPDATE_COEF(0x4f, 0xfcc0, 0xc400), /* Set to TRS type */ alc_headset_mode_default() 3849 UPDATE_COEF(0x50, 0x2000, 0x2000), alc_headset_mode_default() 3850 UPDATE_COEF(0x56, 0x0006, 0x0006), alc_headset_mode_default() 3851 UPDATE_COEF(0x66, 0x0008, 0), alc_headset_mode_default() 3852 UPDATE_COEF(0x67, 0x2000, 0), alc_headset_mode_default() 3863 UPDATE_COEF(0x4a, 0x000f, 0x000e), /* Combo Jack auto detect */ alc_headset_mode_default() 3865 UPDATE_COEF(0x1a, 1<<3, 0), /* Combo JD gating without LINE1-VREFO */ alc_headset_mode_default() 3928 UPDATE_COEF(0x50, 0x2000, 0x2000), alc_headset_mode_ctia() 3929 UPDATE_COEF(0x56, 0x0006, 0x0006), alc_headset_mode_ctia() 3930 UPDATE_COEF(0x66, 0x0008, 0), alc_headset_mode_ctia() 3931 UPDATE_COEF(0x67, 0x2000, 0), alc_headset_mode_ctia() 3942 UPDATE_COEF(0x10, 7<<8, 7<<8), /* SET Line1 JD to 1 */ alc_headset_mode_ctia() 3952 UPDATE_COEF(0x45, 0x3f<<10, 0x35<<10), alc_headset_mode_ctia() 3953 UPDATE_COEF(0x49, 1<<8, 1<<8), alc_headset_mode_ctia() 3954 UPDATE_COEF(0x4a, 7<<6, 7<<6), alc_headset_mode_ctia() 3955 UPDATE_COEF(0x4a, 3<<4, 3<<4), alc_headset_mode_ctia() 4018 UPDATE_COEF(0x50, 0x2000, 0x2000), alc_headset_mode_omtp() 4019 UPDATE_COEF(0x56, 0x0006, 0x0006), alc_headset_mode_omtp() 4020 UPDATE_COEF(0x66, 0x0008, 0), alc_headset_mode_omtp() 4021 UPDATE_COEF(0x67, 0x2000, 0), alc_headset_mode_omtp() 4032 UPDATE_COEF(0x10, 7<<8, 7<<8), /* SET Line1 JD to 1 */ alc_headset_mode_omtp() 4042 UPDATE_COEF(0x45, 0x3f<<10, 0x39<<10), alc_headset_mode_omtp() 4043 UPDATE_COEF(0x49, 1<<8, 1<<8), alc_headset_mode_omtp() 4044 UPDATE_COEF(0x4a, 7<<6, 7<<6), alc_headset_mode_omtp() 4045 UPDATE_COEF(0x4a, 3<<4, 3<<4), alc_headset_mode_omtp() 4098 UPDATE_COEF(0x4f, 0xfcc0, 0xd400), /* Check Type */ alc_determine_headset_type() 4102 UPDATE_COEF(0x4a, 0x000f, 0x0008), /* Combo Jack auto detect */ alc_determine_headset_type() 4114 UPDATE_COEF(0x45, 0x3f<<10, 0x34<<10), alc_determine_headset_type() 4115 UPDATE_COEF(0x49, 1<<8, 1<<8), alc_determine_headset_type()
|