aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c108
1 files changed, 54 insertions, 54 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 104d2a37f45a..c8b0ec814375 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -2819,28 +2819,28 @@ static struct hda_verb alc260_fujitsu_init_verbs[] = {
2819 {0x10, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, 2819 {0x10, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP},
2820 /* Headphone/Line-out jack connects to Line1 pin; make it an output */ 2820 /* Headphone/Line-out jack connects to Line1 pin; make it an output */
2821 {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, 2821 {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
2822 /* Mic/Line-in jack is connected to mic1 pin, so make it an input */ 2822 /* Mic/Line-in jack is connected to mic1 pin, so make it an input */
2823 {0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, 2823 {0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
2824 /* Ensure all other unused pins are disabled and muted. 2824 /* Ensure all other unused pins are disabled and muted. */
2825 * Note: trying to set widget 0x15 to anything blocks all audio 2825 {0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, 0},
2826 * output for some reason, so just leave that at the default. 2826 {0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
2827 */
2828 {0x0f, AC_VERB_SET_PIN_WIDGET_CONTROL, 0},
2829 {0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
2830 {0x11, AC_VERB_SET_PIN_WIDGET_CONTROL, 0}, 2827 {0x11, AC_VERB_SET_PIN_WIDGET_CONTROL, 0},
2831 {0x11, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, 2828 {0x11, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
2832 {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, 0}, 2829 {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, 0},
2833 {0x13, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, 2830 {0x13, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
2834 /* Disable digital (SPDIF) pins */ 2831 {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, 0},
2835 {0x03, AC_VERB_SET_DIGI_CONVERT_1, 0}, 2832 {0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
2836 {0x06, AC_VERB_SET_DIGI_CONVERT_1, 0}, 2833
2834 /* Disable digital (SPDIF) pins */
2835 {0x03, AC_VERB_SET_DIGI_CONVERT_1, 0},
2836 {0x06, AC_VERB_SET_DIGI_CONVERT_1, 0},
2837 2837
2838 /* Ensure Line1 pin widget takes its input from the OUT1 sum bus 2838 /* Ensure Line1 pin widget takes its input from the OUT1 sum bus
2839 * when acting as an output. 2839 * when acting as an output.
2840 */ 2840 */
2841 {0x0d, AC_VERB_SET_CONNECT_SEL, 0}, 2841 {0x0d, AC_VERB_SET_CONNECT_SEL, 0},
2842 2842
2843 /* Start with output sum widgets muted and their output gains at min */ 2843 /* Start with output sum widgets muted and their output gains at min */
2844 {0x08, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, 2844 {0x08, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
2845 {0x08, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)}, 2845 {0x08, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)},
2846 {0x08, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_ZERO}, 2846 {0x08, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_ZERO},
@@ -2851,42 +2851,42 @@ static struct hda_verb alc260_fujitsu_init_verbs[] = {
2851 {0x0a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)}, 2851 {0x0a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)},
2852 {0x0a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_ZERO}, 2852 {0x0a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_ZERO},
2853 2853
2854 /* Unmute HP pin widget amp left and right (no equiv mixer ctrl) */ 2854 /* Unmute HP pin widget amp left and right (no equiv mixer ctrl) */
2855 {0x10, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, 2855 {0x10, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE},
2856 /* Unmute Line1 pin widget output buffer since it starts as an output. 2856 /* Unmute Line1 pin widget output buffer since it starts as an output.
2857 * If the pin mode is changed by the user the pin mode control will 2857 * If the pin mode is changed by the user the pin mode control will
2858 * take care of enabling the pin's input/output buffers as needed. 2858 * take care of enabling the pin's input/output buffers as needed.
2859 * Therefore there's no need to enable the input buffer at this 2859 * Therefore there's no need to enable the input buffer at this
2860 * stage. 2860 * stage.
2861 */ 2861 */
2862 {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, 2862 {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE},
2863 /* Unmute input buffer of pin widget used for Line-in (no equiv 2863 /* Unmute input buffer of pin widget used for Line-in (no equiv
2864 * mixer ctrl) 2864 * mixer ctrl)
2865 */ 2865 */
2866 {0x12, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, 2866 {0x12, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
2867 2867
2868 /* Mute capture amp left and right */ 2868 /* Mute capture amp left and right */
2869 {0x04, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, 2869 {0x04, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
2870 /* Set ADC connection select to match default mixer setting - line 2870 /* Set ADC connection select to match default mixer setting - line
2871 * in (on mic1 pin) 2871 * in (on mic1 pin)
2872 */ 2872 */
2873 {0x04, AC_VERB_SET_CONNECT_SEL, 0x00}, 2873 {0x04, AC_VERB_SET_CONNECT_SEL, 0x00},
2874 2874
2875 /* Do the same for the second ADC: mute capture input amp and 2875 /* Do the same for the second ADC: mute capture input amp and
2876 * set ADC connection to line in 2876 * set ADC connection to line in (on mic1 pin)
2877 */ 2877 */
2878 {0x05, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, 2878 {0x05, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
2879 {0x05, AC_VERB_SET_CONNECT_SEL, 0x00}, 2879 {0x05, AC_VERB_SET_CONNECT_SEL, 0x00},
2880 2880
2881 /* Mute all inputs to mixer widget (even unconnected ones) */ 2881 /* Mute all inputs to mixer widget (even unconnected ones) */
2882 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, /* mic1 pin */ 2882 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, /* mic1 pin */
2883 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)}, /* mic2 pin */ 2883 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(1)}, /* mic2 pin */
2884 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(2)}, /* line1 pin */ 2884 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(2)}, /* line1 pin */
2885 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(3)}, /* line2 pin */ 2885 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(3)}, /* line2 pin */
2886 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(4)}, /* CD pin */ 2886 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(4)}, /* CD pin */
2887 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(5)}, /* Beep-gen pin */ 2887 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(5)}, /* Beep-gen pin */
2888 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(6)}, /* Line-out pin */ 2888 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(6)}, /* Line-out pin */
2889 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(7)}, /* HP-pin pin */ 2889 {0x07, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(7)}, /* HP-pin pin */
2890 2890
2891 { } 2891 { }
2892}; 2892};
@@ -3068,7 +3068,7 @@ static struct hda_verb alc260_test_init_verbs[] = {
3068 {0x03, AC_VERB_SET_DIGI_CONVERT_1, 0}, 3068 {0x03, AC_VERB_SET_DIGI_CONVERT_1, 0},
3069 {0x06, AC_VERB_SET_DIGI_CONVERT_1, 0}, 3069 {0x06, AC_VERB_SET_DIGI_CONVERT_1, 0},
3070 3070
3071 /* Ensure mic1, mic2, line1 and line2 pin widget take input from the 3071 /* Ensure mic1, mic2, line1 and line2 pin widgets take input from the
3072 * OUT1 sum bus when acting as an output. 3072 * OUT1 sum bus when acting as an output.
3073 */ 3073 */
3074 {0x0b, AC_VERB_SET_CONNECT_SEL, 0}, 3074 {0x0b, AC_VERB_SET_CONNECT_SEL, 0},
@@ -3103,13 +3103,13 @@ static struct hda_verb alc260_test_init_verbs[] = {
3103 3103
3104 /* Mute capture amp left and right */ 3104 /* Mute capture amp left and right */
3105 {0x04, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, 3105 {0x04, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
3106 /* Set ADC connection select to match default mixer setting - line 3106 /* Set ADC connection select to match default mixer setting (mic1
3107 * in (on mic1 pin) 3107 * pin)
3108 */ 3108 */
3109 {0x04, AC_VERB_SET_CONNECT_SEL, 0x00}, 3109 {0x04, AC_VERB_SET_CONNECT_SEL, 0x00},
3110 3110
3111 /* Do the same for the second ADC: mute capture input amp and 3111 /* Do the same for the second ADC: mute capture input amp and
3112 * set ADC connection to line in 3112 * set ADC connection to mic1 pin
3113 */ 3113 */
3114 {0x05, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, 3114 {0x05, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)},
3115 {0x05, AC_VERB_SET_CONNECT_SEL, 0x00}, 3115 {0x05, AC_VERB_SET_CONNECT_SEL, 0x00},