Kuninori Morimoto | f239088 | 2012-04-08 21:17:50 -0700 | [diff] [blame] | 1 | /* |
| 2 | * ASoC simple sound card support |
| 3 | * |
| 4 | * Copyright (C) 2012 Renesas Solutions Corp. |
| 5 | * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #ifndef __SIMPLE_CARD_H |
| 13 | #define __SIMPLE_CARD_H |
| 14 | |
| 15 | #include <sound/soc.h> |
| 16 | |
Kuninori Morimoto | a4a2992 | 2013-01-10 16:49:11 -0800 | [diff] [blame] | 17 | struct asoc_simple_dai { |
| 18 | const char *name; |
Kuninori Morimoto | f239088 | 2012-04-08 21:17:50 -0700 | [diff] [blame] | 19 | unsigned int sysclk; |
Xiubo Li | 6ff62ee | 2014-02-14 09:34:36 +0800 | [diff] [blame] | 20 | int slots; |
| 21 | int slot_width; |
Jyri Sarha | 6131084 | 2015-09-09 21:27:43 +0300 | [diff] [blame] | 22 | unsigned int tx_slot_mask; |
| 23 | unsigned int rx_slot_mask; |
Jyri Sarha | f991180 | 2015-01-13 21:16:34 +0200 | [diff] [blame] | 24 | struct clk *clk; |
Kuninori Morimoto | f239088 | 2012-04-08 21:17:50 -0700 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | struct asoc_simple_card_info { |
| 28 | const char *name; |
| 29 | const char *card; |
Kuninori Morimoto | f239088 | 2012-04-08 21:17:50 -0700 | [diff] [blame] | 30 | const char *codec; |
| 31 | const char *platform; |
Kuninori Morimoto | a4a2992 | 2013-01-10 16:49:11 -0800 | [diff] [blame] | 32 | |
| 33 | unsigned int daifmt; |
| 34 | struct asoc_simple_dai cpu_dai; |
| 35 | struct asoc_simple_dai codec_dai; |
Kuninori Morimoto | f239088 | 2012-04-08 21:17:50 -0700 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | #endif /* __SIMPLE_CARD_H */ |