diff options
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
| -rw-r--r-- | sound/pci/hda/patch_analog.c | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index d694e9d4921d..1362c8ba4d1f 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c @@ -213,7 +213,9 @@ static int ad198x_build_controls(struct hda_codec *codec)  			return err;  	}  	if (spec->multiout.dig_out_nid) { -		err = snd_hda_create_spdif_out_ctls(codec, spec->multiout.dig_out_nid); +		err = snd_hda_create_spdif_out_ctls(codec, +						    spec->multiout.dig_out_nid, +						    spec->multiout.dig_out_nid);  		if (err < 0)  			return err;  		err = snd_hda_create_spdif_share_sw(codec, @@ -1920,7 +1922,8 @@ static int patch_ad1981(struct hda_codec *codec)  		spec->mixers[0] = ad1981_hp_mixers;  		spec->num_init_verbs = 2;  		spec->init_verbs[1] = ad1981_hp_init_verbs; -		spec->multiout.dig_out_nid = 0; +		if (!is_jack_available(codec, 0x0a)) +			spec->multiout.dig_out_nid = 0;  		spec->input_mux = &ad1981_hp_capture_source;  		codec->patch_ops.init = ad1981_hp_init;  |