diff options
| author | wangdicheng <wangdicheng@kylinos.cn> | 2026-04-01 11:26:25 +0300 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-04-01 12:01:33 +0300 |
| commit | 579e7b820de5dd5124585413bb5e9c278d255436 (patch) | |
| tree | 480e5f021668e2c95344897aebcd44593482fe11 | |
| parent | 5ed060d5491597490fb53ec69da3edc4b1e8c165 (diff) | |
| download | linux-579e7b820de5dd5124585413bb5e9c278d255436.tar.xz | |
ALSA: hda/cmedia: Remove duplicate pin configuration parsing
The cmedia_probe() function calls snd_hda_parse_pin_defcfg() and
snd_hda_gen_parse_auto_config() twice unnecessarily. Remove The
duplicate code.
Fixes: 0f1e8306dcbe ("ALSA: hda/cmedia: Rewrite to new probe method")
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
Link: https://patch.msgid.link/20260401082625.157868-1-wangdich9700@163.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/hda/codecs/cmedia.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sound/hda/codecs/cmedia.c b/sound/hda/codecs/cmedia.c index e6e12c01339f..88dd80d987d4 100644 --- a/sound/hda/codecs/cmedia.c +++ b/sound/hda/codecs/cmedia.c @@ -46,13 +46,6 @@ static int cmedia_probe(struct hda_codec *codec, const struct hda_device_id *id) if (err < 0) goto error; - err = snd_hda_parse_pin_defcfg(codec, cfg, NULL, 0); - if (err < 0) - goto error; - err = snd_hda_gen_parse_auto_config(codec, cfg); - if (err < 0) - goto error; - if (is_cmi8888) { if (get_defcfg_device(snd_hda_codec_get_pincfg(codec, 0x10)) == AC_JACK_HP_OUT) { |
