当前位置:网站首页>Luoda Development -- the context of sidetone configuration
Luoda Development -- the context of sidetone configuration
2022-07-26 04:00:00 【MicMind】
Chip model :AB1565
Function module :Side Tone
Function description :Side Tone It is used to guide the external sound of the earphone into the ear , So that people can hear the natural sound outside the earphone , The best case is to hear the external sound as if there were no headphones .
chart 1 chart 2 by Side Tone Function call relationship of unit , It will be configured during the process Side Tone Of Filter And the gain of transparency . Jizhong DTM() by FreeRTOS A task of , The task will run continuously after the software is started , And maintain a named dtm_queue Local queues for , All and Side Tone Relevant operation commands will be sent to the queue first , Then by the Task To extract commands from the queue and execute them accordingly , Its working logic is shown in the figure 2 Shown .


- Filter
The filtering coefficient is used to do EQ Handle , For example, the restoration of timbre , Noise elimination 、 Inhibit or enhance . These systems , It is preset in the code in advance , Of course, these parameters can also be dynamically modified by programming , For instance from BL Import and store in the specified location ,SDK in , The position of this coefficient is shown in the figure 1 Sum graph 3 Shown , Eventually these coefficients are written into registers “AFE_SIDETONE_CON0” in .

So how is the writing of this coefficient stored ? Let me see the chip again Reference Manual, It's about AFE_SIDETONE_CON0 The definition of registers , Pictured 4 Shown , The red box indicates that the control coefficient is written RAM Correlation bit of .
bit[20:16] Is the address of the coefficient , District 5 individual bit position , Therefore, we can know that the coefficient can only be 2^5=32 individual ( Of course, it can be less than 32 individual ).
and bit[15:0] Is the coefficient value ( The format is Q1.15), Therefore, when writing, you need to perform the same number of write operations according to the number of coefficients .

- gain
It is to adjust the intensity of external sound penetrating into the ear , Ideally, the gain should be dynamic and have an upper threshold , It has the function of amplifying small sounds , Suppress loud sounds , So as to form a hearing protection effect ;
Whether it's filter still gain, Finally, the formation factors are written into AB1656 The corresponding register , namely AFE_SIDETONE The following registers .
that gain How to write the chip ? Pictured 1 Shown , among ” dsp_sidetone_set_volume()” And “dsp_sidetone_start_volume_set()” Function is configuration sidetone The relevant interface function of the gain , Pictured 5 Shown .

From the picture 5 You can find , The gain value is finally written to the register AFE_SIDETONE_GAIN in , So how is this register defined ? We look at the picture 6, It can be found that there are two about gain :Positive Gain and SideToneGain( The difference between the two has not been studied yet ).

边栏推荐
- php中可以使用取绝对值函数 abs() 将负数转成正数
- 安装VMware报错failed to install the hcmon driver
- PHP object conversion array
- 资深报表开发经验总结:明白这一点,没有做不好的报表
- Uncaught TypeError: $(...). Onmousenter is not a function JS error, solution:
- Zkevm: summary of zkevm and L1 by Mina's CEO
- Why are more and more users of Bing search?
- Opencv learning notes - remapping
- PHP connects to MySQL database, and database connects to static tool classes to simplify the connection.
- CPU and GPU are out of date, and the era of NPU and APU begins
猜你喜欢

加班一周开发了报表系统,这个低代码免费IT报表神器太好用了

Aike AI frontier promotion (7.18)

Multi merchant mall system function disassembly lecture 15 - platform side member label

括号嵌套问题(建议收藏)

用GaussDB(for Redis)存画像,推荐业务轻松降本60%

Summary of senior report development experience: understand this and do not make bad reports

Failed to install the hcmon driver
![[programmers must] Tanabata confession strategy:](/img/55/0b43dd18c8682250db13ad94cd2c2c.png)
[programmers must] Tanabata confession strategy: "the moon meets the cloud, the flowers meet the wind, and the night sky is beautiful at night". (with source code Collection)

How to use graffiti magic color product development kit

Can't the container run? The Internet doesn't have to carry the blame
随机推荐
php中可以使用取绝对值函数 abs() 将负数转成正数
Zkevm: summary of zkevm and L1 by Mina's CEO
WAF details
PHP 对象转换数组
zkEVM:MINA的CEO对zkEVM和L1相关内容的总结
Dat of deep learning
基于JSP实现网上商城系统
php eval() 函数可以将一个字符串当做 php 代码来运行
Chinese database oceanbase was selected into the Forrester translational data platform report
php 查找 session 存储文件位置的方法
Bracket nesting problem (recommended Collection)
redux
基本折线图:最直观呈现数据的趋势和变化
【程序员必备】七夕表白攻略:”月遇从云,花遇和风,晚上的夜空很美“。(附源码合集)
括号嵌套问题(建议收藏)
PHP implements the algorithm of adding from 1 to 100
[in depth study of 4g/5g/6g topic-42]: urllc-13 - in depth interpretation of 3GPP urllc related protocols, specifications and technical principles -7-low delay technology-1-subcarrier spacing expansio
Failed to install the hcmon driver
day03_ 1_ Idea tutorial
Opencv learning notes -- Hough transform