ASoC: atmel_ssc_dai: move set dma data to startup callback
authorBo Shen <voice.shen@atmel.com>
Wed, 3 Jul 2013 08:37:56 +0000 (16:37 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 15 Jul 2013 10:07:55 +0000 (11:07 +0100)
commit01f00d55a7f21b966417fece78214154f01590ed
tree279da23c190e2224d342ec16cd73dff879cc69ea
parentad81f0545ef01ea651886dddac4bef6cec930092
ASoC: atmel_ssc_dai: move set dma data to startup callback

move set dma data to startup callback function, if the set dma
data exist in hw_params callback, so the dma data only usable when
call hw_params, if want use it before hw_params callback, it will
cause NULL pointer access oops

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/atmel/atmel_ssc_dai.c