Skip to content

Commit

Permalink
DSM FW Integration test firmware thesofproject#71
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
Ryan Lee committed Jul 9, 2020
1 parent 40eb234 commit 7946981
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/audio/dsm/sof_dsm.c
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ void sof_dsm_create(struct sof_dsm_struct_t *sofDsmHandle,
#ifdef USE_DSM_LIB
int x;

comp_info(dev, "[RYAN] FW VER : 06JUL2020 #70");
comp_info(dev, "[RYAN] FW VER : 09JUL2020 #71");
comp_info(dev, "[RYAN] sof_dsm_create. ex:%d, ch_id:%d",
sofDsmHandle->init, ch_id);

@@ -327,6 +327,14 @@ void sof_dsm_create(struct sof_dsm_struct_t *sofDsmHandle,
comp_info(dev,
"[RYAN] DSM_API_Set_Params() failed: id:%d error code = %i",
DSM_API_SETGET_EQ_BAND_ENABLE, (int)retCode);

value[0] = DSM_SET_CMD_ID(DSM_API_SETGET_RDC_AT_ROOMTEMP);
value[1] = 0x9191459;
retCode = DSM_API_Set_Params((void *)dsmHandle, 1, value);
if (retCode != DSM_API_OK)
comp_info(dev,
"[RYAN] DSM_API_Set_Params() failed: id:%d error code = %i",
DSM_API_SETGET_RDC_AT_ROOMTEMP, (int)retCode);
}
#else
comp_info(dev, "[RYAN] DSM test initialized. ex:%d, ch_id:%d",
2 changes: 1 addition & 1 deletion src/audio/smart_amp.c
Original file line number Diff line number Diff line change
@@ -842,7 +842,7 @@ static int smart_amp_copy(struct comp_dev *dev)
#endif
sof_dsm_ff_process_32(&sofDsmHandle, sad->dsm_in, sad->dsm_in,
avail_frames * 2, sizeof(int32_t), dev);
#if 1
#if 0 // Copy 1st channel input to 2nd channel output.
for (x = 0 ; x < avail_frames ; x++) {
sad->dsm_in[2 * x + 1] = sad->dsm_test[2 * x];
}

0 comments on commit 7946981

Please sign in to comment.