audio: TM2: bringup AMP ti5805 on ab301 [1/1]

PD#SWPL-7074

Problem:
speaker doesn't work

Solution:
bringup AMP ti5805 on ab301

Verify:
Verified on T962x3_ab301

Change-Id: Icb27691b4fd5a1e54070c4a6d3d3c68cdf3a60b7
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>

Conflicts:
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
This commit is contained in:
Zhe Wang
2019-04-12 17:54:48 +08:00
committed by Luke Go
parent 30a5909fa7
commit 5cb5cb7873
4 changed files with 1924 additions and 2076 deletions

View File

@@ -684,13 +684,11 @@ static int aml_tdm_set_lanes(struct aml_tdm *p_tdm,
unsigned int set_num = 0;
unsigned int i;
pr_debug("asoc channels:%d, slots:%d, lane_cnt:%d\n",
channels, setting->slots, p_tdm->lane_cnt);
/* calc lanes by channels and slots */
lanes = (channels - 1) / setting->slots + 1;
if (lanes > p_tdm->lane_cnt) {
pr_err("lanes setting error\n");
pr_err("set lane error! asoc channels:%d, slots:%d, lane_cnt:%d\n",
channels, setting->slots, p_tdm->lane_cnt);
return -EINVAL;
}

View File

@@ -137,7 +137,7 @@ struct tdm_chipinfo tm2_tdma_chipinfo = {
.sclk_ws_inv = true,
.oe_fn = true,
.same_src_fn = true,
.lane_cnt = LANE_MAX0,
.lane_cnt = LANE_MAX1,
};
struct tdm_chipinfo tm2_tdmb_chipinfo = {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff