]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: bytcr_rt5640: Remove code duplication in byt_rt5640_codec_fixup
authorErik Bussing <eabbussing@outlook.com>
Wed, 15 Jan 2020 16:46:16 +0000 (17:46 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jan 2020 15:41:42 +0000 (15:41 +0000)
commit132f20701f387f2ac43103fa16f73981d017ad94
tree6e18b6b3a3dfd04b642130fcc2bcfb5ed4e0b95a
parent53a1e952e3e747ee9d99a3b07d3028a6a1efbb0e
ASoC: Intel: bytcr_rt5640: Remove code duplication in byt_rt5640_codec_fixup

The 16 and 24 bit paths in byt_rt5640_codec_fixup are mostly identical,
introduce a local bits variable to address the only difference and move
the common bits out of the if ... else ... .

Signed-off-by: Erik Bussing <eabbussing@outlook.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200115164619.101705-2-hdegoede@redhat.com
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c