Nubia Z5S official 4.4 UI2.0 Audio part of simple analysis (also applicable to other 8974/8064 models) and ways to reduce the chance of sound breaking

Source: Internet
Author: User


For reprint, please indicate the source and URL:

Http://blog.csdn.net/syhost/article/details/31419749


This article was written in the official 4.4 Beta version of Z5S. It mainly shows that es325 is not configured in the configuration file of audio. Therefore, it is concluded that some audio features of z5sn are not supported, I wanted to spray it. I wrote it on the official website the next day ..


I have previously posted an article on the anzhi Forum about how to adjust the volume by modifying the audio configuration file of snd_soc_msm, however, the Z5S Android4.4 ROM compiled after April has adopted the new audio architecture, which is the same as the official version of Nubia Z5S 4.4, therefore, the method mentioned in previous articles does not apply to the official Z5S 4.4 and my Android4.4 ROM released after January April.


Judging from the feedback from the Z5S Android4.4 rom I released earlier, we should be able to judge that the quality batch consistency of Z5S speakers or audio-related devices is too poor, the same configuration file has different effects on the mobile phones of different people. Some people have little feedback, and some others have already reported a broken voice! It is estimated that there is a high possibility of speaker quality problems, because even if the capacitance resistance of the audio part is 5% or 10% precision (the device on the mobile phone is not so accurate !) It is impossible to make a big difference to this degree!


Next, let's take a look at Qualcomm's audio configuration file in Android4.4. This file isSystem/etc/mixer_paths.xmlThis is the same as the audio configuration file in section 4.2.System/etc/snd_soc_msm/snd_soc_msm_xxxx

It seems very different. The actual meaning and functions are the same. It is nothing more than converting the previous text format into xml format. (This change actually makes the configuration file clearer) the audio parameters are configured through the corresponding fields to build a bridge between the HAL layer and the kernel. You can also set the audio parameters in the kernel through the parameters of the corresponding fields, such as the volume to open the channel!


Judging from the experience of porting Z5S 4.4 kernel and the official 4.4 audio configuration file, we should not add any Nubia features (of course, the headset detection must have been added ), however, the Nubia mentioned here is nothing more than the Z5Sn es325 audio conditioning chip, which has no effect on z5s. in the previous official audio configuration file snd_soc_msm_Taiko 4.2, you can find es325 configurations. the z5s 4.4 kernel I transplanted earlier also removed es325 related code!


However, even if the z5s does not have the es325 chip, even the dual MIC rear camera mic (dmic3) does not see the corresponding configuration from the official audio configuration file, i'm not sure whether z5s has no dual mic.


Next, compare the differences between the official audio configuration file and the version I modified to analyze whether to adjust the volume, increase the volume, or prevent sound breaking.






From the above comparison, we found that the main difference between the official configuration and my modifications is in Bluetooth incall music and listen-voice-wakeup. Other differences are basically volume-related. the listen-voice-wakeup has never been seen in other models. Is it like voiceprint unlocking?




Here is the configuration section of the Post-MIC in the official 4.4 mentioned above, and the configuration section of the dmic3 I modified on the right, but I didn't call this mic in the field below, this is because the test results show that the quality of calls may be affected, so that dual MIC cannot be enabled when recording with the recording software.


This is the parameter configuration of the main mic. My configuration is the same as the official one, or both are the default parameters of Qualcomm caf!


The principle of modifying the audio configuration file to adjust the volume is to keep the sound as loud as possible, and compare it with the official volume configuration:


The speaker field is used to set the parameter of the main speaker (for z5s, It is the rear speaker). In my configuration file on the right, the volume is set to 85, if you click the official 4.4 UI2.0 break, you can try to change the volume of the official configuration file on the left to a smaller number such as 85 or 80!




The handset field is used to configure the receiver parameters. I added a parameter for setting the RX1 channel volume in my configuration on the right, but it does not seem to work either. Therefore, the field on the right is not officially available, you can also add this in official 4.4 to check whether the audio volume can be adjusted. Note that the audio volume here does not work during a call. The audio volume during a call is set in another field, the following is an introduction!



The handset-mic field sets the parameters for the main microphone. I added a parameter for setting the microphone volume on the right side, but I'm not sure if it works!



The headphones field is used to set the audio parameters of the headset. You can enable the channel and adjust the volume of each channel. The configuration parameters on the right include the adjustment of the volume, the actual measurement can be used to adjust the volume of the headset, note that the actual Volume adjustment function is <ctl name = "RX1 Digital Volume" value = "65"/> <ctl name = "RX2 Digital Volume" value = "65"/> these two statements



The voice-handset field is actually used to set the receiver parameters for a call. The official configuration on the left is no different from the handset field above, in my configuration on the right, I added the Adjustment Volume <ctl name = "RX1 Digital Volume" value = "99"/> statement and added the filter to adjust the call Quality <path name = "sidetone- handset "/>, the specific filter parameters are set in the sidetone-handset field.



The voice-speaker field is used to set the out-of-call parameters. The configuration on the right adds the set volume.



Voice-headphones, as the name suggests, is to set the parameter of the headset when you plug in the headset, and I added filter on the right!



Voice-headset-mic: this parameter is used to set the mic when the headset is inserted. Note that, unlike the primary mic above, the mic here is the analog mic instead of the dmic above ), so we have the adc parameters for adjusting the volume!

<Ctl name = "ADC2 Volume" value = "64"/> note that my Volume settings on the right differ greatly from the official Volume settings because I have added a number to adjust the Volume. <ctl name = "DEC5 Volume" value = "70"/>, the actual results of the two are similar!



Note that headset and handset are two different concepts. The latter is the receiver, and the former is the earphone,

In addition, headphones is also a headset, but it is different from headset in mic!




At last, it should be emphasized that when you modify audio parameters according to the above introduction, the characters in the quotation marks in the above fields should be identical, including spaces!





Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.