@@ -2963,6 +2963,11 @@ static void alc282_init(struct hda_codec *codec)
2963
2963
bool hp_pin_sense ;
2964
2964
int coef78 ;
2965
2965
2966
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
2967
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
2968
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
2969
+ }
2970
+
2966
2971
alc282_restore_default_value (codec );
2967
2972
2968
2973
if (!hp_pin )
@@ -3000,6 +3005,11 @@ static void alc282_shutup(struct hda_codec *codec)
3000
3005
bool hp_pin_sense ;
3001
3006
int coef78 ;
3002
3007
3008
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
3009
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
3010
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
3011
+ }
3012
+
3003
3013
if (!hp_pin ) {
3004
3014
alc269_shutup (codec );
3005
3015
return ;
@@ -3159,6 +3169,11 @@ static void alc256_init(struct hda_codec *codec)
3159
3169
hda_nid_t hp_pin = spec -> gen .autocfg .hp_pins [0 ];
3160
3170
bool hp_pin_sense ;
3161
3171
3172
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
3173
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
3174
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
3175
+ }
3176
+
3162
3177
if (!hp_pin )
3163
3178
return ;
3164
3179
@@ -3195,6 +3210,11 @@ static void alc256_shutup(struct hda_codec *codec)
3195
3210
hda_nid_t hp_pin = spec -> gen .autocfg .hp_pins [0 ];
3196
3211
bool hp_pin_sense ;
3197
3212
3213
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
3214
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
3215
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
3216
+ }
3217
+
3198
3218
if (!hp_pin ) {
3199
3219
alc269_shutup (codec );
3200
3220
return ;
@@ -3231,6 +3251,11 @@ static void alc225_init(struct hda_codec *codec)
3231
3251
hda_nid_t hp_pin = spec -> gen .autocfg .hp_pins [0 ];
3232
3252
bool hp1_pin_sense , hp2_pin_sense ;
3233
3253
3254
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
3255
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
3256
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
3257
+ }
3258
+
3234
3259
if (!hp_pin )
3235
3260
return ;
3236
3261
@@ -3274,6 +3299,11 @@ static void alc225_shutup(struct hda_codec *codec)
3274
3299
hda_nid_t hp_pin = spec -> gen .autocfg .hp_pins [0 ];
3275
3300
bool hp1_pin_sense , hp2_pin_sense ;
3276
3301
3302
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
3303
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
3304
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
3305
+ }
3306
+
3277
3307
if (!hp_pin ) {
3278
3308
alc269_shutup (codec );
3279
3309
return ;
@@ -3318,6 +3348,11 @@ static void alc_default_init(struct hda_codec *codec)
3318
3348
hda_nid_t hp_pin = spec -> gen .autocfg .hp_pins [0 ];
3319
3349
bool hp_pin_sense ;
3320
3350
3351
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
3352
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
3353
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
3354
+ }
3355
+
3321
3356
if (!hp_pin )
3322
3357
return ;
3323
3358
@@ -3347,6 +3382,11 @@ static void alc_default_shutup(struct hda_codec *codec)
3347
3382
hda_nid_t hp_pin = spec -> gen .autocfg .hp_pins [0 ];
3348
3383
bool hp_pin_sense ;
3349
3384
3385
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
3386
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
3387
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
3388
+ }
3389
+
3350
3390
if (!hp_pin ) {
3351
3391
alc269_shutup (codec );
3352
3392
return ;
@@ -3379,6 +3419,11 @@ static void alc294_hp_init(struct hda_codec *codec)
3379
3419
hda_nid_t hp_pin = spec -> gen .autocfg .hp_pins [0 ];
3380
3420
int i , val ;
3381
3421
3422
+ if (!spec -> gen .autocfg .hp_outs && spec -> gen .suppress_auto_mute ) {
3423
+ if (spec -> gen .autocfg .line_out_type == AC_JACK_HP_OUT )
3424
+ hp_pin = spec -> gen .autocfg .line_out_pins [0 ];
3425
+ }
3426
+
3382
3427
if (!hp_pin )
3383
3428
return ;
3384
3429
0 commit comments