Easing the transition from analog headphone jacks to digital audio interfaces
April 26, 2017
Story
The analog headphone jack is one of the most widely adopted interfaces in the smartphone and PC markets, used by hundreds of millions of consumers every day. Beyond smartphones and PCs, the analog...
The analog headphone jack is one of the most widely adopted interfaces in the smartphone and PC markets, used by hundreds of millions of consumers every day. Beyond smartphones and PCs, the analog headphone jack is standard in most products that are capable of audio playback. However, some recently introduced smartphones, such as the iPhone 7, HTC U Ultra and Moto Z, and other consumer electronics products are eschewing this legacy analog jack in favor of modern digital interfaces for audio. This trend is expected to continue, and to facilitate the transition there is a market need for new adapters and accessories with digital audio capabilities. Let’s examine some of the advantages of digital audio technology along with suggested solutions to enable digital audio connectivity for next-generation accessory designs.
The 3.5 mm analog headphone jack, as the name implies, transmits analog audio signals to the attached headphone or other audio accessory. Digital-to-analog conversion (DAC) and amplifier circuitry must be integrated into the host device, for example a smartphone. The headphone itself can be passive, and thus very low cost.
By contrast, some newer interface standards including Universal Serial Bus (USB) and Apple Lightning are able to transmit digital audio data. In this case, the attached headphone or other audio accessory must implement the DAC and amplifier circuitry. This circuitry requires power, which can be supplied externally, or more commonly via the USB or Lightning connector itself.
While analog and digital audio interfaces each have their own distinct benefits, here are some key reasons why smartphone and consumer electronics manufacturers are adopting digital interfaces on newer devices:
- Overcome space constraints. The analog headphone jack and associated audio circuitry consume a significant amount of real estate (both area and volume) in most smartphones. By moving to digital audio that leverages a connector already present in the product, the printed circuit board (PCB) footprint is reduced and perhaps more critically, overall product thickness may be reduced. This freed-up space can be used to increase battery size, integrate new functionality, or reduce product form factor.
- Enhance design flexibility and improve performance. Currently consumers may choose to upgrade from in-box headphones to high-end aftermarket products, but more often than not audio performance will be limited by the DAC, amplifier and other circuitry built into the host device. Using USB or Lightning digital audio enables headphone manufacturers to scale performance of the entire audio signal processing chain (DACs, amplifiers, etc.) in accordance with the tiering and pricing of the end product. This approach gives manufacturers the flexibility to service both the value and premium segments of the market without compromise.
- Enable advanced features. While headphone products with 3.5 mm analog headphone plugs have incorporated some value-added features such as adaptive noise cancellation (ANC), this requires the addition of a battery to the headphone itself, which can result in an unwieldy design. Furthermore, the limited return signal path capabilities of the analog headphone jack impedes advanced interaction between the headphone and host device. Digital audio interfaces remove both the power and communications barriers. Headphones and other accessories using the USB or Lightning connector can draw power from the host device, eliminating the need for a separate battery. In addition, the digital interface provides robust, high-bandwidth two way communications, enabling the creation of companion apps running on the host device that expose more advanced features and controls.
Alternatives to the analog headphone jack
While thus far we have focused on digital audio, eliminating the analog headphone jack does not necessarily require moving to digital. The USB standard provides a mechanism for delivering analog audio over a USB Type C connector. This provides another option for designers to consider as they evaluate elimination of the analog headphone jack. Figure 1 shows the predominant options to replace the analog headphone jack with newer interfaces.
[Figure 1 | Alternatives to the analog headphone jack]
Analog audio using USB-C
The new USB Type-C connector provides support for non-USB data protocols for added functionality; these include video (e.g. DisplayPort, HDMI), analog audio, and high-speed serial (e.g. Thunderbolt, PCIe) protocols. A subset of pins can be assigned for this additional functionality, negotiated between host and device at the time of connection using the Configuration Channel (CC1/CC2) lines, shown on the connector pin-out in Figure 2. This negotiation allows two distinct modes – Alternate Mode and Audio Adapter Accessory Mode.
The Alternate Mode supports DisplayPort, PCIe and other communication protocols when using the USB 3.1 SuperSpeed lines.
The Audio Adapter Accessory Mode supports routing of analog audio over a USB Type-C connector. In this mode, the USB Host (e.g. a smartphone) drives stereo analog audio signals over the D+/D- lines. For applications requiring microphone functionality, microphone signals from an external source are supported using the sideband signals (SBU1/SBU2).
The Audio Adapter Accessory Mode provides a convenient way for manufacturers to build very inexpensive USB-C to 3.5 mm analog headphone jack adapters, allowing consumers to continue to make use of the large ecosystem of analog audio accessories. While this will ease the transition away from the legacy analog headphone jack, its importance and usage in the market will diminish over time as native digital accessories take hold.
[Figure 2 | USB-C receptacle pin-out]
Digital audio using USB
USB offers enough bandwidth to support high-quality digital audio. For most consumer applications requiring stereo audio, USB 2.0 full-speed (12 Mbps) is sufficient. USB 2.0 high-speed (480 Mbps) or USB 3.0 SuperSpeed (5+ Gbps) are generally not required except for some professional applications requiring a very high sampling rate and/or multi-channel audio. The USB Implementers Forum (USB-IF) has also developed the Audio Device Class, which defines a standard mechanism for transporting audio over USB to ensure interoperability for USB audio devices.
USB headphone/headset audio devices are not new to the market, having gained popularity in recent years for use with audio and video conferencing apps on PCs. However, demand for these products is expected to increase multi-fold with the removal of the analog headphone jack on mass-market consumer devices such as smartphones and tablets. As discussed earlier, there are several advantages to using USB for digital audio, including higher audio quality and advanced features. However, as with most changes, supporting digital audio via USB also poses some challenges. Headphone and accessory manufacturers face a major design effort to implement robust streaming audio over USB. For example, streaming audio over USB requires synchronization of data from host to the device. Although the USB specification defines a robust synchronization scheme, implementation remains challenging and can be time consuming even for the most experienced audio development team. Additionally, USB itself is a complex protocol that requires significant development time and cost to implement properly and to certify. Beyond initial product deployment, ongoing firmware and driver support and maintenance is required as major PC operating systems are updated.
USB audio bridge controllers simplify the development of USB audio accessories by integrating all the required hardware and software blocks, eliminating the need for complex USB and audio development. For example, the CP2615 USB digital audio bridge from Silicon Labs simplifies the process of converting audio data from USB to integrated inter-IC sound (I2S) without any code development.
Another key consideration while designing audio accessories is DAC or CODEC setup and configuration. There is a wide variety of CODECs and DACs on the market, each requiring custom configuration for optimal performance. This results in increased complexity and software burden for developers wanting to support multiple CODECs for their products. Turnkey USB audio bridge controllers, as shown in Figure 3, often provide internal memory resources to store CODEC configurations and support pre-programmed configuration values for a wide range of CODECs and DACs.
[Figure 3 | Typical USB audio bridge controller example system]
Digital audio using lightning technology
Apple made headlines worldwide last fall when they removed the analog headphone jack from the iPhone 7 and iPhone 7 Plus. During the keynote introducing these smartphone products, the company cited three key reasons for removing the jack:
- The Lightning port can handle the same function.
- Removing the jack frees up much-needed space inside the phone.
- Apple’s long-term vision for audio is wireless.
Focusing on the Lightning port, Apple reminded the audience that Lightning was designed from the outset to provide great support for digital audio. In fact, Lightning enables features that are simply not possible with the analog headphone jack. For example, Lightning is able to provide power to the audio accessory. This allows headphone manufacturers to include advanced features such as ANC, while eliminating the need for a separate battery in the headphone. In addition, manufacturers building Lightning-based audio products can develop a companion app to expose advanced features to the user in an intuitive and easy-to-use fashion.
These new capabilities do, however, impose some added complexity for designers of iPhone audio accessories. To help designers jumpstart product development and focus on value-added product differentiation, digital audio bridge chips and evaluation kits are available to simplify the development of accessories for iOS devices. Silicon Labs’ CP2614 interface IC, for example, provides a turnkey audio bridge solution for a wide range of Made for iPod/iPhone/iPad (MFi) devices that use the all-digital Lightning connector. Target applications include audio accessories such as guitar and microphone recording dongles and audio docks. The bridge chip also provides built-in support for communication between iOS applications and accessory hardware, enabling a broad array of IoT accessories that operate with a companion iOS app.
The digital audio bridge chips and evaluation kits provide a cost-effective, comprehensive development platform for iOS accessory developers, enabling fast time to market through fixed-function MFi support. Many bridge chips like the CP2614 solution require no firmware development, which helps developers get up and running quickly with their MFi accessory designs. Developers simply select their customization options with an easy-to-use GUI-based configuration tool.
The CP2614 bridge chip is designed to manage and minimize power consumption, achieving ultra-low power in both active and idle modes. The CP2614 IC’s energy efficiency makes it suitable for device-powered accessories. The CP2614 also includes an integrated 5 V low drop-out (LDO) regulator, which reduces bill of materials (BOM) cost and footprint for self-powered accessories. The highly integrated bridge device operates without an external crystal or EEPROM, storing all configuration options on chip. The crystal-less architecture and integrated EEPROM further reduce BOM cost as well as PCB space, enabling developers to design smaller, more streamlined and cost-effective accessories.
The CP2614 audio bridge chip supports 24-bit unidirectional and 16-bit bidirectional digital audio streaming, enabling developers to create high-quality, high-performance “prosumer”-class audio accessories. A communications channel can be established with an iOS application, enabling the app to interact directly with the accessory hardware through general-purpose input/output (GPIO) read/writes and access to the UART for custom data flow. The GPIO can be configured for button input and LED output and accessed remotely from an iOS app or used to control audio playback.
Conclusion
The popularity of digital audio interfaces is on the rise with manufacturers moving away from the analog headphone jack. While there are many advantages to using USB or Lightning connectors for audio, these interfaces do impose some added complexity for designers of digital audio accessories. Streaming audio over USB or Lightning is a complex and time-consuming design task. Major design issues, such as synchronization of audio data streams and CODEC/DAC configuration, can challenge even expert embedded and audio designers. Fixed–function, turnkey digital audio bridges minimize this complexity by providing a plug-and-play solution that does not require software development. These bridge devices provide an easy and economical approach to simplifying USB audio design. With their high integration and configurability, they eliminate the need for deep protocol knowledge and firmware development, enabling designers to focus their time and resources on innovating and differentiating their applications.