ASoC: intel: Use kvzalloc() for suspend buffers
authorTakashi Iwai <tiwai@suse.de>
Fri, 16 Jun 2017 09:20:29 +0000 (11:20 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 16 Jun 2017 10:26:36 +0000 (11:26 +0100)
commit75bd90860a1f6d4671403f5b7beb9c4430ca9750
tree65ba2883b8cd5f7cb3c40728932fa4b53872ea13
parentad7fb5a3b89a7a11d3306948c6954de7a999be40
ASoC: intel: Use kvzalloc() for suspend buffers

Intel SST driver allocates lots of pages at suspend for saving the
firmware states, and this may occasionally lead to the allocation
error due to the high order, ending up with the suspend failure.

Use kvzalloc() so that it can fall back to vmalloc() gracefully.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst.c
sound/soc/intel/atom/sst/sst.h