Glenn Kasten | 1030a6a | 2015-02-05 14:13:31 -0800 | [diff] [blame] | 1 | page.title=Audio Loopback Dongle |
Glenn Kasten | 9f5130c | 2014-11-10 14:36:08 -0800 | [diff] [blame] | 2 | @jd:body |
| 3 | |
| 4 | <!-- |
| 5 | Copyright 2014 The Android Open Source Project |
| 6 | |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | --> |
| 19 | <div id="qv-wrapper"> |
| 20 | <div id="qv"> |
| 21 | <h2>In this document</h2> |
| 22 | <ol id="auto-toc"> |
| 23 | </ol> |
| 24 | </div> |
| 25 | </div> |
| 26 | |
| 27 | <p> |
| 28 | The diagram and photo below show an audio loopback |
| 29 | <a href="http://en.wikipedia.org/wiki/Dongle">dongle</a> |
| 30 | for the |
| 31 | <a href="http://en.wikipedia.org/wiki/Phone_connector_(audio)">headset connector</a> |
Glenn Kasten | 1030a6a | 2015-02-05 14:13:31 -0800 | [diff] [blame] | 32 | that we call the "Dr. Rick O'Rang audio loopback dongle." |
Clay Murphy | b53ec72 | 2014-11-11 11:30:30 -0800 | [diff] [blame] | 33 | The Chrome hardware team designed this circuit and plug for functional testing; |
Glenn Kasten | 9f5130c | 2014-11-10 14:36:08 -0800 | [diff] [blame] | 34 | however it has many other uses too. The Android audio team uses it to measure |
Clay Murphy | 714cd07 | 2014-12-01 13:07:52 -0800 | [diff] [blame] | 35 | <a href="latency_measure.html#measuringRoundTrip">round-trip audio latency</a>, |
Glenn Kasten | 9f5130c | 2014-11-10 14:36:08 -0800 | [diff] [blame] | 36 | via the Larsen effect (feedback loop). |
| 37 | </p> |
| 38 | |
Clay Murphy | c0a12ef | 2015-02-17 14:57:14 -0800 | [diff] [blame] | 39 | <h2 id="loopbackCircuit">Circuit</h2> |
Glenn Kasten | 9f5130c | 2014-11-10 14:36:08 -0800 | [diff] [blame] | 40 | |
Glenn Kasten | 1030a6a | 2015-02-05 14:13:31 -0800 | [diff] [blame] | 41 | <img src="images/loopback_circuit.png" alt="circuit" id="figure1" /> |
Clay Murphy | 1b77cc2 | 2014-12-17 18:20:06 -0800 | [diff] [blame] | 42 | <p class="img-caption"> |
Glenn Kasten | 1030a6a | 2015-02-05 14:13:31 -0800 | [diff] [blame] | 43 | <strong>Figure 1.</strong> circuit diagram |
Clay Murphy | 1b77cc2 | 2014-12-17 18:20:06 -0800 | [diff] [blame] | 44 | </p> |
Glenn Kasten | 9f5130c | 2014-11-10 14:36:08 -0800 | [diff] [blame] | 45 | |
| 46 | <p> |
| 47 | To ensure that the output signal will not overload the microphone input, |
Clay Murphy | b53ec72 | 2014-11-11 11:30:30 -0800 | [diff] [blame] | 48 | we cut it down by about 20dB. |
Glenn Kasten | 978bec8 | 2014-12-23 15:15:20 -0800 | [diff] [blame] | 49 | The resistor loads tell the microphone polarity switch that |
Glenn Kasten | 1030a6a | 2015-02-05 14:13:31 -0800 | [diff] [blame] | 50 | the audio loopback dongle is a US/CTIA pinout Tip Ring Ring Shield (TRRS) plug. |
Glenn Kasten | 9f5130c | 2014-11-10 14:36:08 -0800 | [diff] [blame] | 51 | </p> |
| 52 | |
Clay Murphy | c0a12ef | 2015-02-17 14:57:14 -0800 | [diff] [blame] | 53 | <h2 id="loopbackAssembled">Assembled</h2> |
Glenn Kasten | 9f5130c | 2014-11-10 14:36:08 -0800 | [diff] [blame] | 54 | |
Glenn Kasten | 1030a6a | 2015-02-05 14:13:31 -0800 | [diff] [blame] | 55 | <img src="images/loopback_assembled.jpg" alt="fully assembled" id="figure2" /> |
Clay Murphy | 1b77cc2 | 2014-12-17 18:20:06 -0800 | [diff] [blame] | 56 | <p class="img-caption"> |
Glenn Kasten | 1030a6a | 2015-02-05 14:13:31 -0800 | [diff] [blame] | 57 | <strong>Figure 2.</strong> Assembled |
Clay Murphy | 1b77cc2 | 2014-12-17 18:20:06 -0800 | [diff] [blame] | 58 | </p> |