X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=sound%2Farm%2Fpxa2xx-pcm-lib.c;h=108b643229baecc3ec592eb300fbd4f332936c8c;hp=75a0d746fb60ff50a8eccdefab76e67c380d3e9d;hb=b7d4de7ff03085fda8310b2983b907166dd40f43;hpb=cf76dddb22c019f03ada6479210f894f19bd591b diff --git a/sound/arm/pxa2xx-pcm-lib.c b/sound/arm/pxa2xx-pcm-lib.c index 75a0d746fb60..6205f37d547c 100644 --- a/sound/arm/pxa2xx-pcm-lib.c +++ b/sound/arm/pxa2xx-pcm-lib.c @@ -12,8 +12,7 @@ #include #include -#include -#include +#include #include "pxa2xx-pcm.h" @@ -76,7 +75,7 @@ int __pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream) { struct pxa2xx_runtime_data *rtd = substream->runtime->private_data; - if (rtd && rtd->params) + if (rtd && rtd->params && rtd->params->drcmr) *rtd->params->drcmr = 0; snd_pcm_set_runtime_buffer(substream, NULL);