ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
This patch merges struct snd_soc_codec_dai and struct snd_soc_cpu_dai into struct snd_soc_dai for the codec drivers. Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
committed by
Jaroslav Kysela
parent
9cb132d743
commit
e550e17ffe
@@ -201,7 +201,7 @@ static struct {
|
||||
* driver what the input settings can be. This would need to be implemented
|
||||
* for stand-alone mode to work.
|
||||
*/
|
||||
static int cs4270_set_dai_sysclk(struct snd_soc_codec_dai *codec_dai,
|
||||
static int cs4270_set_dai_sysclk(struct snd_soc_dai *codec_dai,
|
||||
int clk_id, unsigned int freq, int dir)
|
||||
{
|
||||
struct snd_soc_codec *codec = codec_dai->codec;
|
||||
@@ -251,7 +251,7 @@ static int cs4270_set_dai_sysclk(struct snd_soc_codec_dai *codec_dai,
|
||||
* data for playback only, but ASoC currently does not support different
|
||||
* formats for playback vs. record.
|
||||
*/
|
||||
static int cs4270_set_dai_fmt(struct snd_soc_codec_dai *codec_dai,
|
||||
static int cs4270_set_dai_fmt(struct snd_soc_dai *codec_dai,
|
||||
unsigned int format)
|
||||
{
|
||||
struct snd_soc_codec *codec = codec_dai->codec;
|
||||
@@ -471,7 +471,7 @@ static int cs4270_hw_params(struct snd_pcm_substream *substream,
|
||||
* board does not have the MUTEA or MUTEB pins connected to such circuitry,
|
||||
* then this function will do nothing.
|
||||
*/
|
||||
static int cs4270_mute(struct snd_soc_codec_dai *dai, int mute)
|
||||
static int cs4270_mute(struct snd_soc_dai *dai, int mute)
|
||||
{
|
||||
struct snd_soc_codec *codec = dai->codec;
|
||||
int reg6;
|
||||
@@ -667,7 +667,7 @@ error:
|
||||
|
||||
#endif /* USE_I2C*/
|
||||
|
||||
struct snd_soc_codec_dai cs4270_dai = {
|
||||
struct snd_soc_dai cs4270_dai = {
|
||||
.name = "CS4270",
|
||||
.playback = {
|
||||
.stream_name = "Playback",
|
||||
|
Reference in New Issue
Block a user