]> 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)
commit5edf33ee1e36b4fd54ef28f85983cee01e74fb56
tree6e18b6b3a3dfd04b642130fcc2bcfb5ed4e0b95a
parent78bf99a97d3478a5bb4d64ca079e3876ce7059d0
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