| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 */ |
| OLD | NEW |