blob: 1255ddb1d3e2c22d05b188a82bc589f62c307b9b [file] [log] [blame]
Kuninori Morimotof2390882012-04-08 21:17:50 -07001/*
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 Morimotoa4a2992c2013-01-10 16:49:11 -080017struct asoc_simple_dai {
18 const char *name;
Kuninori Morimotof2390882012-04-08 21:17:50 -070019 unsigned int fmt;
Kuninori Morimotof2390882012-04-08 21:17:50 -070020 unsigned int sysclk;
Xiubo Li6ff62ee2014-02-14 09:34:36 +080021 int slots;
22 int slot_width;
Jyri Sarhaf9911802015-01-13 21:16:34 +020023 struct clk *clk;
Kuninori Morimotof2390882012-04-08 21:17:50 -070024};
25
26struct asoc_simple_card_info {
27 const char *name;
28 const char *card;
Kuninori Morimotof2390882012-04-08 21:17:50 -070029 const char *codec;
30 const char *platform;
Kuninori Morimotoa4a2992c2013-01-10 16:49:11 -080031
32 unsigned int daifmt;
33 struct asoc_simple_dai cpu_dai;
34 struct asoc_simple_dai codec_dai;
Kuninori Morimotof2390882012-04-08 21:17:50 -070035};
36
37#endif /* __SIMPLE_CARD_H */