Analysis of the problem of earphone left and right channel in mobile phone design!

Source: Internet
Author: User

Recently in doing a MT6572 project, encountered a problem, is that there is a project of the left and right headphone channel is not divided, there are three items on this baseline, and then the other 2 is good, no this problem. The difference between the 2 items is that the bands are not the same, and the headphones are American-standard.

To this end, I searched for a lot of information. where headphones

at present, the international standard of mobile phone headset interface has two, one is the standard of OMTP (American Standard), one is CTIA (European standard) standards. American Standard CTIA Headset Quad-pole method: Starting at the top of the number 1234, left/right channel/ground/wheat system. European Standard OMTP headphone quad-pole connection: Starting from the top 1234, left/right channel/wheat system/ground
However, by comparing the hardware of the 2 mobile phone diagram, the discovery is the same. Compare the BOM chart, also the same! this back to the software to analyze, and then we through the software to modify flash, mutual download, found the problem of the mobile phone, is a problem, and no problem of the phone, or no problem. So it's still a hardware problem! Where is the problem?
after the hardware expert demolition comparison, found that the headset part of the actual line has a problem! The problem of the mobile phone using the European standard route method, and then use the European standards of headphones, the left and right channel is separated!
but a closer look, the left and right headphone channel is reversed. Do not want to modify the hardware, and then the following method to the software, the use of left and right headphones tone swap!
[FAQ04682] [Audio DRV] headset left and right channel back, software how to fix

[DESCRIPTION]
hardware engineers accidentally put the headset left and right channel output to reverse, the software how to modify its correction[Solution]You can use the following methods:
To modify AudioYusuStreamOut.cpp, add a method:
void audioyusustreamout::sws2m (const void* buffer, size_t bytes)
{
UInt32 idx_i;
Int16 pcm_m;
short* pbuffer= (short*) buffer;
{
Enable software stereo to mono
for (idx_i = 0; idx_i<bytes>>1; idx_i+=2)
{
Pcm_m = pbuffer[idx_i+1];
Pbuffer[idx_i+1]=pbuffer[idx_i];
Pbuffer[idx_i]=pcm_m;
}
}
} Modify ssize_t audioyusustreamout::write (const void* buffer, size_t bytes)
In Dumppcmdata (Streamout_ori,outbuffer,bytes,streamout_ori_propty);
Added previously: sws2m (buffer,bytes);
Summary: Encounter similar headset problems, first clear the product definition, and then clear the hardware actual (disassembly) circuit whether there is a problem.

Mobile phone design of the headset left and right channel does not divide the problem analysis!

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.