Title: [4038] trunk/sound/blackfin/ad1836.c: bug[#3727]
get rid of some compiling warnings
- Revision
- 4038
- Author
- cliff
- Date
- 2007-12-12 19:46:45 -0600 (Wed, 12 Dec 2007)
Log Message
bug[#3727] get rid of some compiling warnings
Diffstat
ad1836.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Modified Paths
Diff
Modified: trunk/sound/blackfin/ad1836.c (4037 => 4038)
--- trunk/sound/blackfin/ad1836.c 2007-12-13 00:58:13 UTC (rev 4037)
+++ trunk/sound/blackfin/ad1836.c 2007-12-13 01:46:45 UTC (rev 4038)
@@ -1041,7 +1041,9 @@
int fragsize_bytes = frames_to_bytes(runtime, runtime->period_size);
#endif
int err=0;
+#ifndef MULTI_SUBSTREAM
int word_len = 4;
+#endif
#ifdef MULTI_SUBSTREAM
substream_info_t *sub_info = NULL;
@@ -1499,8 +1501,10 @@
static int snd_ad1836_playback_silence(struct snd_pcm_substream *substream,
int channel, snd_pcm_uframes_t pos, snd_pcm_uframes_t count)
{
+
+#if defined(CONFIG_SND_BLACKFIN_AD1836_I2S) || defined(LINPHONE_SETTING) || !defined(MULTI_SUBSTREAM)
unsigned char *buf = substream->runtime->dma_area;
-
+#endif
#ifdef CONFIG_SND_BLACKFIN_AD1836_TDM
#ifndef MULTI_SUBSTREAM
buf += pos * 8 * 4;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits