Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: sound/soc/sh/siu_pcm.c

Issue 6577007: CHROMIUM: ASoC: Import entire upstream ASoC tree (Closed)
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sound/soc/sh/siu_dai.c ('k') | sound/soc/soc-cache.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * siu_pcm.c - ALSA driver for Renesas SH7343, SH7722 SIU peripheral. 2 * siu_pcm.c - ALSA driver for Renesas SH7343, SH7722 SIU peripheral.
3 * 3 *
4 * Copyright (C) 2009-2010 Guennadi Liakhovetski <g.liakhovetski@gmx.de> 4 * Copyright (C) 2009-2010 Guennadi Liakhovetski <g.liakhovetski@gmx.de>
5 * Copyright (C) 2006 Carlos Munoz <carlos@kenati.com> 5 * Copyright (C) 2006 Carlos Munoz <carlos@kenati.com>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or 9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version. 10 * (at your option) any later version.
(...skipping 11 matching lines...) Expand all
22 #include <linux/dma-mapping.h> 22 #include <linux/dma-mapping.h>
23 #include <linux/dmaengine.h> 23 #include <linux/dmaengine.h>
24 #include <linux/interrupt.h> 24 #include <linux/interrupt.h>
25 #include <linux/module.h> 25 #include <linux/module.h>
26 #include <linux/platform_device.h> 26 #include <linux/platform_device.h>
27 27
28 #include <sound/control.h> 28 #include <sound/control.h>
29 #include <sound/core.h> 29 #include <sound/core.h>
30 #include <sound/pcm.h> 30 #include <sound/pcm.h>
31 #include <sound/pcm_params.h> 31 #include <sound/pcm_params.h>
32 #include <sound/soc-dai.h> 32 #include <sound/soc.h>
33 33
34 #include <asm/siu.h> 34 #include <asm/siu.h>
35 35
36 #include "siu.h" 36 #include "siu.h"
37 37
38 #define GET_MAX_PERIODS(buf_bytes, period_bytes) \ 38 #define GET_MAX_PERIODS(buf_bytes, period_bytes) \
39 ((buf_bytes) / (period_bytes)) 39 ((buf_bytes) / (period_bytes))
40 #define PERIOD_OFFSET(buf_addr, period_num, period_bytes) \ 40 #define PERIOD_OFFSET(buf_addr, period_num, period_bytes) \
41 ((buf_addr) + ((period_num) * (period_bytes))) 41 ((buf_addr) + ((period_num) * (period_bytes)))
42 42
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 .trigger = siu_pcm_trigger, 607 .trigger = siu_pcm_trigger,
608 .pointer = siu_pcm_pointer_dma, 608 .pointer = siu_pcm_pointer_dma,
609 }; 609 };
610 610
611 struct snd_soc_platform_driver siu_platform = { 611 struct snd_soc_platform_driver siu_platform = {
612 .ops = &siu_pcm_ops, 612 .ops = &siu_pcm_ops,
613 .pcm_new = siu_pcm_new, 613 .pcm_new = siu_pcm_new,
614 .pcm_free = siu_pcm_free, 614 .pcm_free = siu_pcm_free,
615 }; 615 };
616 EXPORT_SYMBOL_GPL(siu_platform); 616 EXPORT_SYMBOL_GPL(siu_platform);
OLDNEW
« no previous file with comments | « sound/soc/sh/siu_dai.c ('k') | sound/soc/soc-cache.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698