Skip to content

Commit 43a6a7e

Browse files
Garlic Tsengbroonie
authored andcommitted
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: Garlic Tseng <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent d6f3710 commit 43a6a7e

File tree

2 files changed

+1515
-9
lines changed

2 files changed

+1515
-9
lines changed

sound/soc/mediatek/mt2701/mt2701-afe-common.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ enum {
6969
MT2701_IRQ_ASYS_END,
7070
};
7171

72-
enum {
73-
DIV_ID_MCLK_TO_BCK,
74-
DIV_ID_BCK_TO_LRCK,
75-
};
76-
7772
/* 2701 clock def */
7873
enum audio_system_clock_type {
7974
MT2701_AUD_INFRA_SYS_AUDIO,
@@ -163,10 +158,6 @@ enum mt2701_i2s_dir {
163158
struct mt2701_i2s_path {
164159
int dai_id;
165160
int mclk_rate;
166-
int div_mclk_to_bck;
167-
int div_bck_to_lrck;
168-
int format;
169-
snd_pcm_format_t stream_fmt;
170161
int on[I2S_DIR_NUM];
171162
int occupied[I2S_DIR_NUM];
172163
const struct mt2701_i2s_data *i2s_data[2];

0 commit comments

Comments
 (0)