2012-04-09 08:17:50 +04:00
|
|
|
/*
|
|
|
|
* ASoC simple sound card support
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Renesas Solutions Corp.
|
|
|
|
* Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SIMPLE_CARD_H
|
|
|
|
#define __SIMPLE_CARD_H
|
|
|
|
|
|
|
|
#include <sound/soc.h>
|
|
|
|
|
2013-01-11 04:49:11 +04:00
|
|
|
struct asoc_simple_dai {
|
|
|
|
const char *name;
|
2012-04-09 08:17:50 +04:00
|
|
|
unsigned int sysclk;
|
2014-02-14 05:34:36 +04:00
|
|
|
int slots;
|
|
|
|
int slot_width;
|
2015-09-09 21:27:43 +03:00
|
|
|
unsigned int tx_slot_mask;
|
|
|
|
unsigned int rx_slot_mask;
|
2015-01-13 22:16:34 +03:00
|
|
|
struct clk *clk;
|
2012-04-09 08:17:50 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct asoc_simple_card_info {
|
|
|
|
const char *name;
|
|
|
|
const char *card;
|
|
|
|
const char *codec;
|
|
|
|
const char *platform;
|
2013-01-11 04:49:11 +04:00
|
|
|
|
|
|
|
unsigned int daifmt;
|
|
|
|
struct asoc_simple_dai cpu_dai;
|
|
|
|
struct asoc_simple_dai codec_dai;
|
2012-04-09 08:17:50 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __SIMPLE_CARD_H */
|