mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
ALSA: hda - Fix double creation of SPDIF input controls
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
40c20fa05a
commit
60e53882ac
1 changed files with 3 additions and 6 deletions
|
@ -471,12 +471,9 @@ static int parse_digital_input(struct hda_codec *codec)
|
|||
struct auto_pin_cfg *cfg = &spec->autocfg;
|
||||
int idx;
|
||||
|
||||
if (!cfg->dig_in_pin)
|
||||
return 0;
|
||||
if (cfg->dig_in_pin)
|
||||
spec->dig_in = get_adc(codec, cfg->dig_in_pin, &idx);
|
||||
if (!spec->dig_in)
|
||||
return 0;
|
||||
return snd_hda_create_spdif_in_ctls(codec, spec->dig_in);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue