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)
commit332719b1840b9bf3e09938d1fda566f414fcf0e6
tree6e18b6b3a3dfd04b642130fcc2bcfb5ed4e0b95a
parent00d852326e524214f046a5e1301eee84535a6863
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