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

Side by Side Diff: sound/soc/sh/siu.h

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/sh7760-ac97.c ('k') | sound/soc/sh/siu_dai.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.h - ALSA SoC driver for Renesas SH7343, SH7722 SIU peripheral. 2 * siu.h - ALSA SoC 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 #ifdef __KERNEL__ 69 #ifdef __KERNEL__
70 70
71 #include <linux/dmaengine.h> 71 #include <linux/dmaengine.h>
72 #include <linux/interrupt.h> 72 #include <linux/interrupt.h>
73 #include <linux/io.h> 73 #include <linux/io.h>
74 #include <linux/sh_dma.h> 74 #include <linux/sh_dma.h>
75 75
76 #include <sound/core.h> 76 #include <sound/core.h>
77 #include <sound/pcm.h> 77 #include <sound/pcm.h>
78 #include <sound/soc-dai.h> 78 #include <sound/soc.h>
79 79
80 #define SIU_PERIOD_BYTES_MAX 8192 /* DMA transfer/period size */ 80 #define SIU_PERIOD_BYTES_MAX 8192 /* DMA transfer/period size */
81 #define SIU_PERIOD_BYTES_MIN 256 /* DMA transfer/period size */ 81 #define SIU_PERIOD_BYTES_MIN 256 /* DMA transfer/period size */
82 #define SIU_PERIODS_MAX 64 /* Max periods in buffer */ 82 #define SIU_PERIODS_MAX 64 /* Max periods in buffer */
83 #define SIU_PERIODS_MIN 4 /* Min periods in buffer */ 83 #define SIU_PERIODS_MIN 4 /* Min periods in buffer */
84 #define SIU_BUFFER_BYTES_MAX (SIU_PERIOD_BYTES_MAX * SIU_PERIODS_MAX) 84 #define SIU_BUFFER_BYTES_MAX (SIU_PERIOD_BYTES_MAX * SIU_PERIODS_MAX)
85 85
86 /* SIU ports: only one can be used at a time */ 86 /* SIU ports: only one can be used at a time */
87 enum { 87 enum {
88 SIU_PORT_A, 88 SIU_PORT_A,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 extern struct snd_soc_platform_driver siu_platform; 186 extern struct snd_soc_platform_driver siu_platform;
187 extern struct siu_info *siu_i2s_data; 187 extern struct siu_info *siu_i2s_data;
188 188
189 int siu_init_port(int port, struct siu_port **port_info, struct snd_card *card); 189 int siu_init_port(int port, struct siu_port **port_info, struct snd_card *card);
190 void siu_free_port(struct siu_port *port_info); 190 void siu_free_port(struct siu_port *port_info);
191 191
192 #endif 192 #endif
193 193
194 #endif /* SIU_H */ 194 #endif /* SIU_H */
OLDNEW
« no previous file with comments | « sound/soc/sh/sh7760-ac97.c ('k') | sound/soc/sh/siu_dai.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698