]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/ca0132: Delete pointless assignments to struct auto_pin_cfg fields
authorAlastair Bridgewater <alastair.bridgewater@gmail.com>
Sat, 16 Jun 2018 01:56:15 +0000 (21:56 -0400)
committerTakashi Iwai <tiwai@suse.de>
Sun, 17 Jun 2018 06:39:44 +0000 (08:39 +0200)
commit6e2ab5d8e45644f7739cb59410f11bbef7b7a10f
tree654fdc72d1b5de686c8404b338ebe248efe14f9c
parent5ffed0545ba92de4747e063e2616245543986492
ALSA: hda/ca0132: Delete pointless assignments to struct auto_pin_cfg fields

ca0132_config() was setting some values in the auto_pin_cfg for
the codec... but it is called prior to snd_hda_parse_pin_defcfg(),
which does a memset() to clear the entire structure as one of its
first actions, making the entire exercise pointless.

Kill all use of struct auto_pin_cfg from ca0132_config().

Signed-off-by: Alastair Bridgewater <alastair.bridgewater@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c