]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: atmel-pcm-pdc: Remove broken suspend/resume code
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 6 May 2014 07:39:40 +0000 (09:39 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 12 May 2014 21:08:36 +0000 (22:08 +0100)
commita52e281a4cb32f465f378dd00c1787572feb7245
tree4c643b6d13cb8ca843ee05703bd9849116a27eef
parentdd16f954c46fdae0988a8f66cff46731d4f869fc
ASoC: atmel-pcm-pdc: Remove broken suspend/resume code

Suspend/resume support for the atmel-pcm-pdc driver was broken in commit
41912c7f6 ("ASoC: multi-component - ASoC Multi-Component Support"). It
essentially reverted the modifications done in commit 105f863f ("ASoC: Change
how suspend and resume obtain the PCM runtime"). The suspend and resume handlers
at the beginning check if dai->runtime is not NULL, but dai->runtime is always
NULL, hence the code never runs. Considering that nobody noticed any problems in
the last 4 years since the code was broken and that the driver does not set
SNDRV_PCM_INFO_RESUME, which means applications are expected to stop and restart
the audio stream during suspend/resume, it is probably safe to assume that his
code is not needed and can be removed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/atmel/atmel-pcm-pdc.c