Commit 43a6a7e7 authored by Garlic Tseng's avatar Garlic Tseng Committed by Mark Brown

ASoC: mediatek: add mt2701 platform driver implementation.

Add mt2701 platform driver implementation for playback and capture.
The implement follow DAPM structure (memory interface as FE and I2S
as BE).
Because of the hardware design, i2s out required to be enabled when
we need to enable i2s in. This patch includes the implementation.
Signed-off-by: default avatarGarlic Tseng <garlic.tseng@mediatek.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d6f3710a
...@@ -69,11 +69,6 @@ enum { ...@@ -69,11 +69,6 @@ enum {
MT2701_IRQ_ASYS_END, MT2701_IRQ_ASYS_END,
}; };
enum {
DIV_ID_MCLK_TO_BCK,
DIV_ID_BCK_TO_LRCK,
};
/* 2701 clock def */ /* 2701 clock def */
enum audio_system_clock_type { enum audio_system_clock_type {
MT2701_AUD_INFRA_SYS_AUDIO, MT2701_AUD_INFRA_SYS_AUDIO,
...@@ -163,10 +158,6 @@ enum mt2701_i2s_dir { ...@@ -163,10 +158,6 @@ enum mt2701_i2s_dir {
struct mt2701_i2s_path { struct mt2701_i2s_path {
int dai_id; int dai_id;
int mclk_rate; int mclk_rate;
int div_mclk_to_bck;
int div_bck_to_lrck;
int format;
snd_pcm_format_t stream_fmt;
int on[I2S_DIR_NUM]; int on[I2S_DIR_NUM];
int occupied[I2S_DIR_NUM]; int occupied[I2S_DIR_NUM];
const struct mt2701_i2s_data *i2s_data[2]; const struct mt2701_i2s_data *i2s_data[2];
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment