Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ:tab_read读表模块bug修复 #89

Open
KKyer opened this issue Jun 16, 2022 · 0 comments
Open

FAQ:tab_read读表模块bug修复 #89

KKyer opened this issue Jun 16, 2022 · 0 comments

Comments

@KKyer
Copy link

KKyer commented Jun 16, 2022

一、简介

SDK中提供tab_read读表功能,用于简单的按键音解码,在小于且等于V1.2.1的SDK版本中存在bug,可能导致会有杂音问题,本文将介绍如何修复该bug;

二、涉及的SDK版本

ad140-release_v1.2.1 以及之前的版本
ac104n-release_v1.2.1 以及之前的版本
ad150-release_v1.2.1 以及之前的版本

三、解决办法

  1. 修改函数 tab_init()
void tab_init(rtab_obj *stab, void *tab, u32 size)
{
    memset(stab, 0, sizeof(rtab_obj));
    stab->tab = tab;
    stab->size = size;
}

图片

  1. 修改 rtab_obj 结构体
typedef struct _rtab_obj {
    void  *tab;
    u32   size;
    u32   offset;
    u32   cnt;
} rtab_obj;

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant