]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: arizona: In arizona_calc_fratio make new codecs the default case
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 16 Dec 2015 17:06:24 +0000 (17:06 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 16 Dec 2015 19:17:50 +0000 (19:17 +0000)
commit0e8aca96b0171679bb6bba33e818048ea708d9c3
treec36930bbbae35bdcdaabeb813b327d947deb4b3f
parent011b45a868411472e7aa566814df26631797853f
ASoC: arizona: In arizona_calc_fratio make new codecs the default case

This patch rearranges the switch statement in arizona_calc_fratio so
that older codecs are the special cases, with the default case
applying to newer codecs (WM8998 and later). This is preferable
because it avoids having to patch new cases in every time a new
codec is added.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.c