2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 14:43:54 +08:00
linux-next/sound/soc/kirkwood
Jean-Francois Moine 8a537f85e9 ASoC: kirkwood-i2s: fix a compilation warning
In the function kirkwood_set_rate, when the rate cannot be satisfied
by the internal nor by an external clock, the clock source in undefined:

 warning: ‘clks_ctrl’ may be used uninitialized in this function

The ALSA subsystem should never gives such a rate because:
- the rates with the internal clock are limited to 44.1, 48 and 96 kHz
  as specified by the kirkwood_i2s_dai structure,
- the other rates are proposed in the structure kirkwood_i2s_dai_extclk
  only when the external clock is present.

In case of programming error (bad rate for internal clock and no
external clock), the function will simply cause a backtrace.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-07-16 11:14:24 +01:00
..
Kconfig ASoC: kirkwood: Enable build on non-Kirkwood platforms 2013-07-15 16:43:15 +01:00
kirkwood-dma.c ASoC: kirkwood-dma: Staticize non exported struct 2013-05-15 08:47:37 +04:00
kirkwood-i2s.c ASoC: kirkwood-i2s: fix a compilation warning 2013-07-16 11:14:24 +01:00
kirkwood-openrd.c ASoC: kirkwood: Remove unused headers 2013-07-15 16:43:14 +01:00
kirkwood-t5325.c ASoC: kirkwood: Remove unused headers 2013-07-15 16:43:14 +01:00
kirkwood.h ASoC: kirkwood-i2s: add support for external clock rates 2012-11-21 10:40:23 +09:00
Makefile ASoC: kirkwood: Add audio support to hp t5325 thin clients 2010-10-21 13:51:43 -07:00