blob: 0399352f3a6243569c87d3691fd664480749802c [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 Morimotoa4a29922013-01-10 16:49:11 -080017struct asoc_simple_dai {
18 const char *name;
Kuninori Morimotof2390882012-04-08 21:17:50 -070019 unsigned int sysclk;
Xiubo Li6ff62ee2014-02-14 09:34:36 +080020 int slots;
21 int slot_width;
Jyri Sarha61310842015-09-09 21:27:43 +030022 unsigned int tx_slot_mask;
23 unsigned int rx_slot_mask;
Jyri Sarhaf9911802015-01-13 21:16:34 +020024 struct clk *clk;
Kuninori Morimotof2390882012-04-08 21:17:50 -070025};
26
27struct asoc_simple_card_info {
28 const char *name;
29 const char *card;
Kuninori Morimotof2390882012-04-08 21:17:50 -070030 const char *codec;
31 const char *platform;
Kuninori Morimotoa4a29922013-01-10 16:49:11 -080032
33 unsigned int daifmt;
34 struct asoc_simple_dai cpu_dai;
35 struct asoc_simple_dai codec_dai;
Kuninori Morimotof2390882012-04-08 21:17:50 -070036};
37
38#endif /* __SIMPLE_CARD_H */