(sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget./translations/zh_CN/sound/cards/audiophile-usbmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget./translations/zh_TW/sound/cards/audiophile-usbmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget./translations/it_IT/sound/cards/audiophile-usbmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget./translations/ja_JP/sound/cards/audiophile-usbmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget./translations/ko_KR/sound/cards/audiophile-usbmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget./translations/pt_BR/sound/cards/audiophile-usbmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget./translations/sp_SP/sound/cards/audiophile-usbmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h8Guide to using M-Audio Audiophile USB with ALSA and Jackh]h8Guide to using M-Audio Audiophile USB with ALSA and Jack}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhH/var/lib/git/docbuild/linux/Documentation/sound/cards/audiophile-usb.rsthKubh paragraph)}(hv1.5h]hv1.5}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h-Thibault Le Meur h](hThibault Le Meur <}(hhhhhNhNubh reference)}(hThibault.LeMeur@supelec.frh]hThibault.LeMeur@supelec.fr}(hhhhhNhNubah}(h]h ]h"]h$]h&]refuri!mailto:Thibault.LeMeur@supelec.fruh1hhhubh>}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(h\This document is a guide to using the M-Audio Audiophile USB (tm) device with ALSA and JACK.h]h\This document is a guide to using the M-Audio Audiophile USB (tm) device with ALSA and JACK.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hhh](h)}(hHistoryh]hHistory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK ubh bullet_list)}(hhh](h list_item)}(hv1.4 - Thibault Le Meur (2007-07-11) - Added Low Endianness nature of 16bits-modes found by Hakan Lennestal - Modifying document structure h](h)}(h$v1.4 - Thibault Le Meur (2007-07-11)h]h$v1.4 - Thibault Le Meur (2007-07-11)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj%ubj)}(hhh](j$)}(hfAdded Low Endianness nature of 16bits-modes found by Hakan Lennestal h]h)}(hfAdded Low Endianness nature of 16bits-modes found by Hakan Lennestal h](hFAdded Low Endianness nature of 16bits-modes found by Hakan Lennestal <}(hj>hhhNhNubh)}(hHakan.Lennestal@brfsodrahamn.seh]hHakan.Lennestal@brfsodrahamn.se}(hjFhhhNhNubah}(h]h ]h"]h$]h&]refuri&mailto:Hakan.Lennestal@brfsodrahamn.seuh1hhj>ubh>}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj:ubah}(h]h ]h"]h$]h&]uh1j#hj7ubj$)}(hModifying document structure h]h)}(hModifying document structureh]hModifying document structure}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfubah}(h]h ]h"]h$]h&]uh1j#hj7ubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhKhj%ubeh}(h]h ]h"]h$]h&]uh1j#hj hhhNhNubj$)}(hDv1.5 - Thibault Le Meur (2007-07-12) - Added AC3/DTS passthru info h]h)}(hBv1.5 - Thibault Le Meur (2007-07-12) - Added AC3/DTS passthru infoh]hBv1.5 - Thibault Le Meur (2007-07-12) - Added AC3/DTS passthru info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j#hj hhhhhNubeh}(h]h ]h"]h$]h&]j*uh1jhhhKhj hhubeh}(h]historyah ]h"]historyah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h&Audiophile USB Specs and correct usageh]h&Audiophile USB Specs and correct usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(h]This part is a reminder of important facts about the functions and limitations of the device.h]h]This part is a reminder of important facts about the functions and limitations of the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h4The device has 4 audio interfaces, and 2 MIDI ports:h]h4The device has 4 audio interfaces, and 2 MIDI ports:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh block_quote)}(hX7* Analog Stereo Input (Ai) - This port supports 2 pairs of line-level audio inputs (1/4" TS and RCA) - When the 1/4" TS (jack) connectors are connected, the RCA connectors are disabled * Analog Stereo Output (Ao) * Digital Stereo Input (Di) * Digital Stereo Output (Do) * Midi In (Mi) * Midi Out (Mo) h]j)}(hhh](j$)}(hAnalog Stereo Input (Ai) - This port supports 2 pairs of line-level audio inputs (1/4" TS and RCA) - When the 1/4" TS (jack) connectors are connected, the RCA connectors are disabled h](h)}(hAnalog Stereo Input (Ai)h]hAnalog Stereo Input (Ai)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubj)}(hhh](j$)}(hGThis port supports 2 pairs of line-level audio inputs (1/4" TS and RCA)h]h)}(hjh]hIThis port supports 2 pairs of line-level audio inputs (1/4” TS and RCA)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hRWhen the 1/4" TS (jack) connectors are connected, the RCA connectors are disabled h]h)}(hQWhen the 1/4" TS (jack) connectors are connected, the RCA connectors are disabledh]hSWhen the 1/4” TS (jack) connectors are connected, the RCA connectors are disabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhK#hjubeh}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hAnalog Stereo Output (Ao)h]h)}(hj;h]hAnalog Stereo Output (Ao)}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hj9ubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hDigital Stereo Input (Di)h]h)}(hjRh]hDigital Stereo Input (Di)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjPubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hDigital Stereo Output (Do)h]h)}(hjih]hDigital Stereo Output (Do)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjgubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(h Midi In (Mi)h]h)}(hjh]h Midi In (Mi)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hj~ubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hMidi Out (Mo) h]h)}(h Midi Out (Mo)h]h Midi Out (Mo)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK+hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhK!hjubah}(h]h ]h"]h$]h&]uh1jhhhK!hjhhubh)}(h7The internal DAC/ADC has the following characteristics:h]h7The internal DAC/ADC has the following characteristics:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjhhubj)}(hhh](j$)}(hsample depth of 16 or 24 bitsh]h)}(hjh]hsample depth of 16 or 24 bits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjubah}(h]h ]h"]h$]h&]uh1j#hjhhhhhNubj$)}(hsample rate from 8kHz to 96kHzh]h)}(hjh]hsample rate from 8kHz to 96kHz}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1j#hjhhhhhNubj$)}(hCTwo interfaces can't use different sample depths at the same time. h]h)}(hBTwo interfaces can't use different sample depths at the same time.h]hDTwo interfaces can’t use different sample depths at the same time.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK1hjubah}(h]h ]h"]h$]h&]uh1j#hjhhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhK/hjhhubhdefinition_list)}(hhh]hdefinition_list_item)}(hMoreover, the Audiophile USB documentation gives the following Warning: Please exit any audio application running before switching between bit depths h](hterm)}(hGMoreover, the Audiophile USB documentation gives the following Warning:h]hGMoreover, the Audiophile USB documentation gives the following Warning:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j!hhhK4hjubh definition)}(hhh]h)}(hMPlease exit any audio application running before switching between bit depthsh]hMPlease exit any audio application running before switching between bit depths}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hj3ubah}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1jhhhK4hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubh)}(hDue to the USB 1.1 bandwidth limitation, a limited number of interfaces can be activated at the same time depending on the audio mode selected:h]hDue to the USB 1.1 bandwidth limitation, a limited number of interfaces can be activated at the same time depending on the audio mode selected:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjhhubj)}(hX0* 16-bit/48kHz ==> 4 channels in + 4 channels out - Ai+Ao+Di+Do * 24-bit/48kHz ==> 4 channels in + 2 channels out, or 2 channels in + 4 channels out - Ai+Ao+Do or Ai+Di+Ao or Ai+Di+Do or Di+Ao+Do * 24-bit/96kHz ==> 2 channels in _or_ 2 channels out (half duplex only) - Ai or Ao or Di or Do h]j)}(hhh](j$)}(h?16-bit/48kHz ==> 4 channels in + 4 channels out - Ai+Ao+Di+Do h](h)}(h/16-bit/48kHz ==> 4 channels in + 4 channels outh]h/16-bit/48kHz ==> 4 channels in + 4 channels out}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjkubj)}(hhh]j$)}(h Ai+Ao+Di+Do h]h)}(h Ai+Ao+Di+Doh]h Ai+Ao+Di+Do}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hjubah}(h]h ]h"]h$]h&]uh1j#hj}ubah}(h]h ]h"]h$]h&]jjuh1jhhhK;hjkubeh}(h]h ]h"]h$]h&]uh1j#hjhubj$)}(h24-bit/48kHz ==> 4 channels in + 2 channels out, or 2 channels in + 4 channels out - Ai+Ao+Do or Ai+Di+Ao or Ai+Di+Do or Di+Ao+Do h](h)}(hR24-bit/48kHz ==> 4 channels in + 2 channels out, or 2 channels in + 4 channels outh]hR24-bit/48kHz ==> 4 channels in + 2 channels out, or 2 channels in + 4 channels out}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjubj)}(hhh]j$)}(h-Ai+Ao+Do or Ai+Di+Ao or Ai+Di+Do or Di+Ao+Do h]h)}(h,Ai+Ao+Do or Ai+Di+Ao or Ai+Di+Do or Di+Ao+Doh]h,Ai+Ao+Do or Ai+Di+Ao or Ai+Di+Do or Di+Ao+Do}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK@hjubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]jjuh1jhhhK@hjubeh}(h]h ]h"]h$]h&]uh1j#hjhubj$)}(h^24-bit/96kHz ==> 2 channels in _or_ 2 channels out (half duplex only) - Ai or Ao or Di or Do h](h)}(hE24-bit/96kHz ==> 2 channels in _or_ 2 channels out (half duplex only)h]hE24-bit/96kHz ==> 2 channels in _or_ 2 channels out (half duplex only)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKBhjubj)}(hhh]j$)}(hAi or Ao or Di or Do h]h)}(hAi or Ao or Di or Doh]hAi or Ao or Di or Do}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]jjuh1jhhhKDhjubeh}(h]h ]h"]h$]h&]uh1j#hjhubeh}(h]h ]h"]h$]h&]jjuh1jhhhK9hjdubah}(h]h ]h"]h$]h&]uh1jhhhK9hjhhubh)}(hhh](h)}(h,Important facts about the Digital interface:h]h,Important facts about the Digital interface:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hhhhhKGubj)}(hX6* The Do port additionally supports surround-encoded AC-3 and DTS passthrough, though I haven't tested it under Linux - Note that in this setup only the Do interface can be enabled * Apart from recording an audio digital stream, enabling the Di port is a way to synchronize the device to an external sample clock - As a consequence, the Di port must be enable only if an active Digital source is connected - Enabling Di when no digital source is connected can result in a synchronization error (for instance sound played at an odd sample rate) h]j)}(hhh](j$)}(hThe Do port additionally supports surround-encoded AC-3 and DTS passthrough, though I haven't tested it under Linux - Note that in this setup only the Do interface can be enabled h](h)}(hsThe Do port additionally supports surround-encoded AC-3 and DTS passthrough, though I haven't tested it under Linuxh]huThe Do port additionally supports surround-encoded AC-3 and DTS passthrough, though I haven’t tested it under Linux}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKIhj:ubj)}(hhh]j$)}(h=Note that in this setup only the Do interface can be enabled h]h)}(hubah}(h]h ]h"]h$]h&]uh1j#hj;ubj$)}(h%Ai,Ao,Do can be used at the same timeh]h)}(hjWh]h%Ai,Ao,Do can be used at the same time}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjUubah}(h]h ]h"]h$]h&]uh1j#hj;ubj$)}(h'hw:1,0 is not available in capture modeh]h)}(hjnh]h'hw:1,0 is not available in capture mode}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjlubah}(h]h ]h"]h$]h&]uh1j#hj;ubj$)}(hhw:1,2 is not available h]h)}(hhw:1,2 is not availableh]hhw:1,2 is not available}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j#hj;ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j#hjubj$)}(h``device_setup=0x11`` - 16bits 48kHz mode with Di enabled - Ai,Ao,Di,Do can be used at the same time - hw:1,0 is available in capture mode - hw:1,2 is not available h](h)}(h``device_setup=0x11``h]jq)}(hjh]hdevice_setup=0x11}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hhh](j$)}(h!16bits 48kHz mode with Di enabledh]h)}(hjh]h!16bits 48kHz mode with Di enabled}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(h(Ai,Ao,Di,Do can be used at the same timeh]h)}(hjh]h(Ai,Ao,Di,Do can be used at the same time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(h#hw:1,0 is available in capture modeh]h)}(hjh]h#hw:1,0 is available in capture mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hhw:1,2 is not available h]h)}(hhw:1,2 is not availableh]hhw:1,2 is not available}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhhhKhjhhubh)}(hIn this modes the device operates only at 16bits-modes. Before kernel 2.6.23, the devices where reported to be Big-Endian when in fact they were Little-Endian so that playing a file was a matter of using: ::h]hIn this modes the device operates only at 16bits-modes. Before kernel 2.6.23, the devices where reported to be Big-Endian when in fact they were Little-Endian so that playing a file was a matter of using:}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjb)}(h=% aplay -D hw:1,1 -c2 -t raw -r48000 -fS16_BE test_S16_LE.rawh]h=% aplay -D hw:1,1 -c2 -t raw -r48000 -fS16_BE test_S16_LE.raw}hjH sbah}(h]h ]h"]h$]h&]jqjruh1jahhhKhjhhubh)}(h@where "test_S16_LE.raw" was in fact a little-endian sample file.h]hDwhere “test_S16_LE.raw” was in fact a little-endian sample file.}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hThanks to Hakan Lennestal (who discovered the Little-Endiannes of the device in these modes) a fix has been committed (expected in kernel 2.6.23) and Alsa now reports Little-Endian interfaces. Thus playing a file now is as simple as using: ::h]hThanks to Hakan Lennestal (who discovered the Little-Endiannes of the device in these modes) a fix has been committed (expected in kernel 2.6.23) and Alsa now reports Little-Endian interfaces. Thus playing a file now is as simple as using:}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubjb)}(h=% aplay -D hw:1,1 -c2 -t raw -r48000 -fS16_LE test_S16_LE.rawh]h=% aplay -D hw:1,1 -c2 -t raw -r48000 -fS16_LE test_S16_LE.raw}hjr sbah}(h]h ]h"]h$]h&]jqjruh1jahhhKhjhhubeh}(h] bit-modesah ]h"] 16-bit modesah$]h&]uh1hhj hhhhhKubh)}(hhh](h)}(h 24-bit modesh]h 24-bit modes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhKubh)}(hThe three supported modes are:h]hThe three supported modes are:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubj)}(hX* ``device_setup=0x09`` - 24bits 48kHz mode with Di disabled - Ai,Ao,Do can be used at the same time - hw:1,0 is not available in capture mode - hw:1,2 is not available * ``device_setup=0x19`` - 24bits 48kHz mode with Di enabled - 3 ports from {Ai,Ao,Di,Do} can be used at the same time - hw:1,0 is available in capture mode and an active digital source must be connected to Di - hw:1,2 is not available * ``device_setup=0x0D`` or ``0x10`` - 24bits 96kHz mode - Di is enabled by default for this mode but does not need to be connected to an active source - Only 1 port from {Ai,Ao,Di,Do} can be used at the same time - hw:1,0 is available in captured mode - hw:1,2 is not available h]j)}(hhh](j$)}(h``device_setup=0x09`` - 24bits 48kHz mode with Di disabled - Ai,Ao,Do can be used at the same time - hw:1,0 is not available in capture mode - hw:1,2 is not available h](h)}(h``device_setup=0x09``h]jq)}(hj h]hdevice_setup=0x09}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj ubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubj)}(hhh](j$)}(h"24bits 48kHz mode with Di disabledh]h)}(hj h]h"24bits 48kHz mode with Di disabled}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(h%Ai,Ao,Do can be used at the same timeh]h)}(hj h]h%Ai,Ao,Do can be used at the same time}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(h'hw:1,0 is not available in capture modeh]h)}(hj h]h'hw:1,0 is not available in capture mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hhw:1,2 is not available h]h)}(hhw:1,2 is not availableh]hhw:1,2 is not available}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(h``device_setup=0x19`` - 24bits 48kHz mode with Di enabled - 3 ports from {Ai,Ao,Di,Do} can be used at the same time - hw:1,0 is available in capture mode and an active digital source must be connected to Di - hw:1,2 is not available h](h)}(h``device_setup=0x19``h]jq)}(hj; h]hdevice_setup=0x19}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj9 ubah}(h]h ]h"]h$]h&]uh1hhhhKhj5 ubj)}(hhh](j$)}(h!24bits 48kHz mode with Di enabledh]h)}(hjU h]h!24bits 48kHz mode with Di enabled}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjS ubah}(h]h ]h"]h$]h&]uh1j#hjP ubj$)}(h73 ports from {Ai,Ao,Di,Do} can be used at the same timeh]h)}(hjl h]h73 ports from {Ai,Ao,Di,Do} can be used at the same time}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjj ubah}(h]h ]h"]h$]h&]uh1j#hjP ubj$)}(hXhw:1,0 is available in capture mode and an active digital source must be connected to Dih]h)}(hXhw:1,0 is available in capture mode and an active digital source must be connected to Dih]hXhw:1,0 is available in capture mode and an active digital source must be connected to Di}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hjP ubj$)}(hhw:1,2 is not available h]h)}(hhw:1,2 is not availableh]hhw:1,2 is not available}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hjP ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj5 ubeh}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hX``device_setup=0x0D`` or ``0x10`` - 24bits 96kHz mode - Di is enabled by default for this mode but does not need to be connected to an active source - Only 1 port from {Ai,Ao,Di,Do} can be used at the same time - hw:1,0 is available in captured mode - hw:1,2 is not available h](h)}(h!``device_setup=0x0D`` or ``0x10``h](jq)}(h``device_setup=0x0D``h]hdevice_setup=0x0D}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj ubh or }(hj hhhNhNubjq)}(h``0x10``h]h0x10}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj ubeh}(h]h ]h"]h$]h&]uh1hhhhKhj ubj)}(hhh](j$)}(h24bits 96kHz modeh]h)}(hj h]h24bits 96kHz mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(h\Di is enabled by default for this mode but does not need to be connected to an active sourceh]h)}(h\Di is enabled by default for this mode but does not need to be connected to an active sourceh]h\Di is enabled by default for this mode but does not need to be connected to an active source}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(h;Only 1 port from {Ai,Ao,Di,Do} can be used at the same timeh]h)}(hj h]h;Only 1 port from {Ai,Ao,Di,Do} can be used at the same time}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(h$hw:1,0 is available in captured modeh]h)}(hj6 h]h$hw:1,0 is available in captured mode}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj4 ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hhw:1,2 is not available h]h)}(hhw:1,2 is not availableh]hhw:1,2 is not available}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjK ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhhhKhj hhubh)}(hzIn these modes the device is only Big-Endian compliant (see "Default Alsa driver mode" above for an aplay command example)h]h~In these modes the device is only Big-Endian compliant (see “Default Alsa driver mode” above for an aplay command example)}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]id1ah ]h"] 24-bit modesah$]h&]uh1hhj hhhhhKubh)}(hhh](h)}(hAC3 w/ DTS passthru modeh]hAC3 w/ DTS passthru mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(hKThanks to Hakan Lennestal, I now have a report saying that this mode works.h]hKThanks to Hakan Lennestal, I now have a report saying that this mode works.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(h* ``device_setup=0x03`` - 16bits 48kHz mode with only the Do port enabled - AC3 with DTS passthru - Caution with this setup the Do port is mapped to the pcm device hw:1,0 h]j)}(hhh]j$)}(h``device_setup=0x03`` - 16bits 48kHz mode with only the Do port enabled - AC3 with DTS passthru - Caution with this setup the Do port is mapped to the pcm device hw:1,0 h](h)}(h``device_setup=0x03``h]jq)}(hj h]hdevice_setup=0x03}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj ubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubj)}(hhh](j$)}(h/16bits 48kHz mode with only the Do port enabledh]h)}(hj h]h/16bits 48kHz mode with only the Do port enabled}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hAC3 with DTS passthruh]h)}(hj h]hAC3 with DTS passthru}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hGCaution with this setup the Do port is mapped to the pcm device hw:1,0 h]h)}(hFCaution with this setup the Do port is mapped to the pcm device hw:1,0h]hFCaution with this setup the Do port is mapped to the pcm device hw:1,0}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhM hj ubeh}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]jjuh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhhhMhj hhubh)}(hQThe command line used to playback the AC3/DTS encoded .wav-files in this mode: ::h]hNThe command line used to playback the AC3/DTS encoded .wav-files in this mode:}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubjb)}(h:% aplay -D hw:1,0 --channels=6 ac3_S16_LE_encoded_file.rawh]h:% aplay -D hw:1,0 --channels=6 ac3_S16_LE_encoded_file.raw}hjA sbah}(h]h ]h"]h$]h&]jqjruh1jahhhMhj hhubeh}(h]ac3-w-dts-passthru-modeah ]h"]ac3 w/ dts passthru modeah$]h&]uh1hhj hhhhhMubh)}(hhh](h)}(h)How to use the ``device_setup`` parameterh](hHow to use the }(hjZ hhhNhNubjq)}(h``device_setup``h]h device_setup}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1jphjZ ubh parameter}(hjZ hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjW hhhhhMubh)}(hThe parameter can be given:h]hThe parameter can be given:}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjW hhubj)}(hXh* By manually probing the device (as root)::: # modprobe -r snd-usb-audio # modprobe snd-usb-audio index=1 device_setup=0x09 * Or while configuring the modules options in your modules configuration file (typically a .conf file in /etc/modprobe.d/ directory::: alias snd-card-1 snd-usb-audio options snd-usb-audio index=1 device_setup=0x09 h]j)}(hhh](j$)}(h|By manually probing the device (as root)::: # modprobe -r snd-usb-audio # modprobe snd-usb-audio index=1 device_setup=0x09 h](h)}(h+By manually probing the device (as root):::h]h*By manually probing the device (as root)::}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubjb)}(hN# modprobe -r snd-usb-audio # modprobe snd-usb-audio index=1 device_setup=0x09h]hN# modprobe -r snd-usb-audio # modprobe snd-usb-audio index=1 device_setup=0x09}hj sbah}(h]h ]h"]h$]h&]jqjruh1jahhhMhj ubeh}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hOr while configuring the modules options in your modules configuration file (typically a .conf file in /etc/modprobe.d/ directory::: alias snd-card-1 snd-usb-audio options snd-usb-audio index=1 device_setup=0x09 h](h)}(hOr while configuring the modules options in your modules configuration file (typically a .conf file in /etc/modprobe.d/ directory:::h]hOr while configuring the modules options in your modules configuration file (typically a .conf file in /etc/modprobe.d/ directory::}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj ubjb)}(hNalias snd-card-1 snd-usb-audio options snd-usb-audio index=1 device_setup=0x09h]hNalias snd-card-1 snd-usb-audio options snd-usb-audio index=1 device_setup=0x09}hj sbah}(h]h ]h"]h$]h&]jqjruh1jahhhM hj ubeh}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhj ubah}(h]h ]h"]h$]h&]uh1jhhhMhjW hhubeh}(h]%how-to-use-the-device-setup-parameterah ]h"]%how to use the device_setup parameterah$]h&]uh1hhj hhhhhMubeh}(h]advanced-module-setupah ]h"]advanced module setupah$]h&]uh1hhjWhhhhhKubh)}(hhh](h)}(h$CAUTION when initializing the deviceh]h$CAUTION when initializing the device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhM$ubj)}(hX* Correct initialization on the device requires that device_setup is given to the module BEFORE the device is turned on. So, if you use the "manual probing" method described above, take care to power-on the device AFTER this initialization. * Failing to respect this will lead to a misconfiguration of the device. In this case turn off the device, unprobe the snd-usb-audio module, then probe it again with correct device_setup parameter and then (and only then) turn on the device again. * If you've correctly initialized the device in a valid mode and then want to switch to another mode (possibly with another sample-depth), please use also the following procedure: - first turn off the device - de-register the snd-usb-audio module (modprobe -r) - change the device_setup parameter by changing the device_setup option in ``/etc/modprobe.d/*.conf`` - turn on the device * A workaround for this last issue has been applied to kernel 2.6.23, but it may not be enough to ensure the 'stability' of the device initialization. h]j)}(hhh](j$)}(hCorrect initialization on the device requires that device_setup is given to the module BEFORE the device is turned on. So, if you use the "manual probing" method described above, take care to power-on the device AFTER this initialization. h]h)}(hCorrect initialization on the device requires that device_setup is given to the module BEFORE the device is turned on. So, if you use the "manual probing" method described above, take care to power-on the device AFTER this initialization.h]hCorrect initialization on the device requires that device_setup is given to the module BEFORE the device is turned on. So, if you use the “manual probing” method described above, take care to power-on the device AFTER this initialization.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hj ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hFailing to respect this will lead to a misconfiguration of the device. In this case turn off the device, unprobe the snd-usb-audio module, then probe it again with correct device_setup parameter and then (and only then) turn on the device again. h]h)}(hFailing to respect this will lead to a misconfiguration of the device. In this case turn off the device, unprobe the snd-usb-audio module, then probe it again with correct device_setup parameter and then (and only then) turn on the device again.h]hFailing to respect this will lead to a misconfiguration of the device. In this case turn off the device, unprobe the snd-usb-audio module, then probe it again with correct device_setup parameter and then (and only then) turn on the device again.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM*hj' ubah}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hXIf you've correctly initialized the device in a valid mode and then want to switch to another mode (possibly with another sample-depth), please use also the following procedure: - first turn off the device - de-register the snd-usb-audio module (modprobe -r) - change the device_setup parameter by changing the device_setup option in ``/etc/modprobe.d/*.conf`` - turn on the device h](h)}(hIf you've correctly initialized the device in a valid mode and then want to switch to another mode (possibly with another sample-depth), please use also the following procedure:h]hIf you’ve correctly initialized the device in a valid mode and then want to switch to another mode (possibly with another sample-depth), please use also the following procedure:}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hj? ubj)}(hhh](j$)}(hfirst turn off the deviceh]h)}(hjV h]hfirst turn off the device}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM2hjT ubah}(h]h ]h"]h$]h&]uh1j#hjQ ubj$)}(h2de-register the snd-usb-audio module (modprobe -r)h]h)}(hjm h]h2de-register the snd-usb-audio module (modprobe -r)}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM3hjk ubah}(h]h ]h"]h$]h&]uh1j#hjQ ubj$)}(hcchange the device_setup parameter by changing the device_setup option in ``/etc/modprobe.d/*.conf``h]h)}(hcchange the device_setup parameter by changing the device_setup option in ``/etc/modprobe.d/*.conf``h](hIchange the device_setup parameter by changing the device_setup option in }(hj hhhNhNubjq)}(h``/etc/modprobe.d/*.conf``h]h/etc/modprobe.d/*.conf}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jphj ubeh}(h]h ]h"]h$]h&]uh1hhhhM4hj ubah}(h]h ]h"]h$]h&]uh1j#hjQ ubj$)}(hturn on the device h]h)}(hturn on the deviceh]hturn on the device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hj ubah}(h]h ]h"]h$]h&]uh1j#hjQ ubeh}(h]h ]h"]h$]h&]jjuh1jhhhM2hj? ubeh}(h]h ]h"]h$]h&]uh1j#hj ubj$)}(hA workaround for this last issue has been applied to kernel 2.6.23, but it may not be enough to ensure the 'stability' of the device initialization. h]h)}(hA workaround for this last issue has been applied to kernel 2.6.23, but it may not be enough to ensure the 'stability' of the device initialization.h]hA workaround for this last issue has been applied to kernel 2.6.23, but it may not be enough to ensure the ‘stability’ of the device initialization.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM8hj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]jjuh1jhhhM&hj ubah}(h]h ]h"]h$]h&]uh1jhhhM&hj hhubeh}(h]$caution-when-initializing-the-deviceah ]h"]$caution when initializing the deviceah$]h&]uh1hhjWhhhhhM$ubh)}(hhh](h)}(hTechnical details for hackersh]hTechnical details for hackers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhM<ubh)}(hoThis section is for hackers, wanting to understand details about the device internals and how Alsa supports it.h]hoThis section is for hackers, wanting to understand details about the device internals and how Alsa supports it.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM>hj hhubh)}(hhh](h)}(h+Audiophile USB's ``device_setup`` structureh](hAudiophile USB’s }(hjhhhNhNubjq)}(h``device_setup``h]h device_setup}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubh structure}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhhhhhMBubh)}(hIf you want to understand the device_setup magic numbers for the Audiophile USB, you need some very basic understanding of binary computation. However, this is not required to use the parameter and you may skip this section.h]hIf you want to understand the device_setup magic numbers for the Audiophile USB, you need some very basic understanding of binary computation. However, this is not required to use the parameter and you may skip this section.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhjhhubh)}(hHThe device_setup is one byte long and its structure is the following: ::h]hEThe device_setup is one byte long and its structure is the following:}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMHhjhhubjb)}(h+---+---+---+---+---+---+---+---+ | b7| b6| b5| b4| b3| b2| b1| b0| +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | Di|24B|96K|DTS|SET| +---+---+---+---+---+---+---+---+h]h+---+---+---+---+---+---+---+---+ | b7| b6| b5| b4| b3| b2| b1| b0| +---+---+---+---+---+---+---+---+ | 0 | 0 | 0 | Di|24B|96K|DTS|SET| +---+---+---+---+---+---+---+---+}hjVsbah}(h]h ]h"]h$]h&]jqjruh1jahhhMKhjhhubh)}(hWhere:h]hWhere:}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMQhjhhubj)}(hX* b0 is the ``SET`` bit - it MUST be set if device_setup is initialized * b1 is the ``DTS`` bit - it is set only for Digital output with DTS/AC3 - this setup is not tested * b2 is the Rate selection flag - When set to ``1`` the rate range is 48.1-96kHz - Otherwise the sample rate range is 8-48kHz * b3 is the bit depth selection flag - When set to ``1`` samples are 24bits long - Otherwise they are 16bits long - Note that b2 implies b3 as the 96kHz mode is only supported for 24 bits samples * b4 is the Digital input flag - When set to ``1`` the device assumes that an active digital source is connected - You shouldn't enable Di if no source is seen on the port (this leads to synchronization issues) - b4 is implied by b2 (since only one port is enabled at a time no synch error can occur) * b5 to b7 are reserved for future uses, and must be set to ``0`` - might become Ao, Do, Ai, for b7, b6, b4 respectively h]j)}(hhh](j$)}(hGb0 is the ``SET`` bit - it MUST be set if device_setup is initialized h](h)}(hb0 is the ``SET`` bith](h b0 is the }(hj}hhhNhNubjq)}(h``SET``h]hSET}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphj}ubh bit}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMShjyubj)}(hhh]j$)}(h.it MUST be set if device_setup is initialized h]h)}(h-it MUST be set if device_setup is initializedh]h-it MUST be set if device_setup is initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMUhjubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]jjuh1jhhhMUhjyubeh}(h]h ]h"]h$]h&]uh1j#hjvubj$)}(hcb1 is the ``DTS`` bit - it is set only for Digital output with DTS/AC3 - this setup is not tested h](h)}(hb1 is the ``DTS`` bith](h b1 is the }(hjhhhNhNubjq)}(h``DTS``h]hDTS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubh bit}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMWhjubj)}(hhh](j$)}(h.it is set only for Digital output with DTS/AC3h]h)}(hjh]h.it is set only for Digital output with DTS/AC3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhjubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hthis setup is not tested h]h)}(hthis setup is not testedh]hthis setup is not tested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMYhjubeh}(h]h ]h"]h$]h&]uh1j#hjvubj$)}(h}b2 is the Rate selection flag - When set to ``1`` the rate range is 48.1-96kHz - Otherwise the sample rate range is 8-48kHz h](h)}(hb2 is the Rate selection flagh]hb2 is the Rate selection flag}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hj&ubj)}(hhh](j$)}(h.When set to ``1`` the rate range is 48.1-96kHzh]h)}(hj=h](h When set to }(hj?hhhNhNubjq)}(h``1``h]h1}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jphj?ubh the rate range is 48.1-96kHz}(hj?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhM^hj;ubah}(h]h ]h"]h$]h&]uh1j#hj8ubj$)}(h+Otherwise the sample rate range is 8-48kHz h]h)}(h*Otherwise the sample rate range is 8-48kHzh]h*Otherwise the sample rate range is 8-48kHz}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM_hjdubah}(h]h ]h"]h$]h&]uh1j#hj8ubeh}(h]h ]h"]h$]h&]jjuh1jhhhM^hj&ubeh}(h]h ]h"]h$]h&]uh1j#hjvubj$)}(hb3 is the bit depth selection flag - When set to ``1`` samples are 24bits long - Otherwise they are 16bits long - Note that b2 implies b3 as the 96kHz mode is only supported for 24 bits samples h](h)}(h"b3 is the bit depth selection flagh]h"b3 is the bit depth selection flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMahjubj)}(hhh](j$)}(h)When set to ``1`` samples are 24bits longh]h)}(hjh](h When set to }(hjhhhNhNubjq)}(h``1``h]h1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubh samples are 24bits long}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMchjubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hOtherwise they are 16bits longh]h)}(hjh]hOtherwise they are 16bits long}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMdhjubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hPNote that b2 implies b3 as the 96kHz mode is only supported for 24 bits samples h]h)}(hONote that b2 implies b3 as the 96kHz mode is only supported for 24 bits samplesh]hONote that b2 implies b3 as the 96kHz mode is only supported for 24 bits samples}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMehjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMchjubeh}(h]h ]h"]h$]h&]uh1j#hjvubj$)}(hX2b4 is the Digital input flag - When set to ``1`` the device assumes that an active digital source is connected - You shouldn't enable Di if no source is seen on the port (this leads to synchronization issues) - b4 is implied by b2 (since only one port is enabled at a time no synch error can occur) h](h)}(hb4 is the Digital input flagh]hb4 is the Digital input flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhhjubj)}(hhh](j$)}(hOWhen set to ``1`` the device assumes that an active digital source is connectedh]h)}(hOWhen set to ``1`` the device assumes that an active digital source is connectedh](h When set to }(hjhhhNhNubjq)}(h``1``h]h1}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubh> the device assumes that an active digital source is connected}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMjhjubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(h_You shouldn't enable Di if no source is seen on the port (this leads to synchronization issues)h]h)}(h_You shouldn't enable Di if no source is seen on the port (this leads to synchronization issues)h]haYou shouldn’t enable Di if no source is seen on the port (this leads to synchronization issues)}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhj@ubah}(h]h ]h"]h$]h&]uh1j#hjubj$)}(hXb4 is implied by b2 (since only one port is enabled at a time no synch error can occur) h]h)}(hWb4 is implied by b2 (since only one port is enabled at a time no synch error can occur)h]hWb4 is implied by b2 (since only one port is enabled at a time no synch error can occur)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMnhjXubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]jjuh1jhhhMjhjubeh}(h]h ]h"]h$]h&]uh1j#hjvubj$)}(hxb5 to b7 are reserved for future uses, and must be set to ``0`` - might become Ao, Do, Ai, for b7, b6, b4 respectively #h](h)}(h?b5 to b7 are reserved for future uses, and must be set to ``0``h](h:b5 to b7 are reserved for future uses, and must be set to }(hjhhhNhNubjq)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubeh}(h]h ]h"]h$]h&]uh1hhhhMqhj|ubj)}(hhh]j$)}(h5might become Ao, Do, Ai, for b7, b6, b4 respectively h]h)}(h4might become Ao, Do, Ai, for b7, b6, b4 respectivelyh]h4might become Ao, Do, Ai, for b7, b6, b4 respectively}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMshjubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]jjuh1jhhhMshj|ubeh}(h]h ]h"]h$]h&]uh1j#hjvubeh}(h]h ]h"]h$]h&]jjuh1jhhhMShjrubah}(h]h ]h"]h$]h&]uh1jhhhMShjhhubh)}(hCaution:h]hCaution:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhjhhubj)}(hX* there is no check on the value you will give to device_setup - for instance choosing 0x05 (16bits 96kHz) will fail back to 0x09 since b2 implies b3. But _there_will_be_no_warning_ in /var/log/messages * Hardware constraints due to the USB bus limitation aren't checked - choosing b2 will prepare all interfaces for 24bits/96kHz but you'll only be able to use one at the same time h]j)}(hhh](j$)}(hthere is no check on the value you will give to device_setup - for instance choosing 0x05 (16bits 96kHz) will fail back to 0x09 since b2 implies b3. But _there_will_be_no_warning_ in /var/log/messages h](h)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj:ubah}(h]h ]h"]h$]h&]uh1j#hj7ubj$)}(h8Interface 5 (Digital In) does not have Alset nb.3 and 5 h]h)}(h7Interface 5 (Digital In) does not have Alset nb.3 and 5h]h7Interface 5 (Digital In) does not have Alset nb.3 and 5}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjQubah}(h]h ]h"]h$]h&]uh1j#hj7ubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhj3ubah}(h]h ]h"]h$]h&]uh1jhhhMhjjhhubh)}(h= 2.6.23 and your 16bits devices are now Little Endians ;-) ).h]hXJack supports big endian devices only in recent versions (thanks to Andreas Steinmetz for his first big-endian patch). I can’t remember exactly when this support was released into jackd, let’s just say that with jackd version 0.103.0 it’s almost ok (just a small bug is affecting 16bits Big-Endian devices, but since you’ve read carefully the above paragraphs, you’re now using kernel >= 2.6.23 and your 16bits devices are now Little Endians ;-) ).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hXYou can run jackd with the following command for playback with Ao and record with Ai: ::h]hUYou can run jackd with the following command for playback with Ao and record with Ai:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjb)}(h8% jackd -R -dalsa -Phw:1,0 -r48000 -p128 -n2 -D -Chw:1,1h]h8% jackd -R -dalsa -Phw:1,0 -r48000 -p128 -n2 -D -Chw:1,1}hjsbah}(h]h ]h"]h$]h&]jqjruh1jahhhMhjhhubeh}(h]direct-support-in-jackdah ]h"]direct support in jackdah$]h&]uh1hhjJhhhhhMubh)}(hhh](h)}(hUsing Alsa plughwh]hUsing Alsa plughw}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubh)}(hcIf you don't have a recent Jackd installed, you can downgrade to using the Alsa ``plug`` converter.h](hRIf you don’t have a recent Jackd installed, you can downgrade to using the Alsa }(hjhhhNhNubjq)}(h``plug``h]hplug}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jphjubh converter.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hjFor instance here is one way to run Jack with 2 playback channels on Ao and 2 capture channels from Ai: ::h]hgFor instance here is one way to run Jack with 2 playback channels on Ao and 2 capture channels from Ai:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubjb)}(h>% jackd -R -dalsa -dplughw:1 -r48000 -p256 -n2 -D -Cplughw:1,1h]h>% jackd -R -dalsa -dplughw:1 -r48000 -p256 -n2 -D -Cplughw:1,1}hj1sbah}(h]h ]h"]h$]h&]jqjruh1jahhhMhjhhubj)}(hhh]j)}(hXHowever you may see the following warning message: You appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a hardware device instead rather than using the plug layer. h](j")}(h2However you may see the following warning message:h]h2However you may see the following warning message:}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j!hhhMhjBubj2)}(hhh]h)}(hYou appear to be using the ALSA software "plug" layer, probably a result of using the "default" ALSA device. This is less efficient than it could be. Consider using a hardware device instead rather than using the plug layer.h]hYou appear to be using the ALSA software “plug” layer, probably a result of using the “default” ALSA device. This is less efficient than it could be. Consider using a hardware device instead rather than using the plug layer.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjTubah}(h]h ]h"]h$]h&]uh1j1hjBubeh}(h]h ]h"]h$]h&]uh1jhhhMhj?ubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]using-alsa-plughwah ]h"]using alsa plughwah$]h&]uh1hhjJhhhhhMubh)}(hhh](h)}(h0Getting 2 input and/or output interfaces in Jackh]h0Getting 2 input and/or output interfaces in Jack}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM ubh)}(h|As you can see, starting the Jack server this way will only enable 1 stereo input (Di or Ai) and 1 stereo output (Ao or Do).h]h|As you can see, starting the Jack server this way will only enable 1 stereo input (Di or Ai) and 1 stereo output (Ao or Do).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjhhubh)}(h*This is due to the following restrictions:h]h*This is due to the following restrictions:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hhh](j$)}(hGJack can only open one capture device and one playback device at a timeh]h)}(hjh]hGJack can only open one capture device and one playback device at a time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j#hjhhhhhNubj$)}(h`The Audiophile USB is seen as 2 (or three) Alsa devices: hw:1,0, hw:1,1 (and optionally hw:1,2) h]h)}(h_The Audiophile USB is seen as 2 (or three) Alsa devices: hw:1,0, hw:1,1 (and optionally hw:1,2)h]h_The Audiophile USB is seen as 2 (or three) Alsa devices: hw:1,0, hw:1,1 (and optionally hw:1,2)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j#hjhhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjhhubh)}(hIf you want to get Ai+Di and/or Ao+Do support with Jack, you would need to combine the Alsa devices into one logical "complex" device.h]hIf you want to get Ai+Di and/or Ao+Do support with Jack, you would need to combine the Alsa devices into one logical “complex” device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hIf you want to give it a try, I recommend reading the information from this page: http://www.sound-man.co.uk/linuxaudio/ice1712multi.html It is related to another device (ice1712) but can be adapted to suit the Audiophile USB.h](hRIf you want to give it a try, I recommend reading the information from this page: }(hjhhhNhNubh)}(h7http://www.sound-man.co.uk/linuxaudio/ice1712multi.htmlh]h7http://www.sound-man.co.uk/linuxaudio/ice1712multi.html}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubhY It is related to another device (ice1712) but can be adapted to suit the Audiophile USB.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hMEnabling multiple Audiophile USB interfaces for Jackd will certainly require:h]hMEnabling multiple Audiophile USB interfaces for Jackd will certainly require:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hhh](j$)}(hPMaking sure your Jackd version has the MMAP_COMPLEX patch (see the ice1712 page)h]h)}(hj&h]hPMaking sure your Jackd version has the MMAP_COMPLEX patch (see the ice1712 page)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj$ubah}(h]h ]h"]h$]h&]uh1j#hj!hhhhhNubj$)}(hM(maybe) patching the alsa-lib/src/pcm/pcm_multi.c file (see the ice1712 page)h]h)}(hj=h]hM(maybe) patching the alsa-lib/src/pcm/pcm_multi.c file (see the ice1712 page)}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hj;ubah}(h]h ]h"]h$]h&]uh1j#hj!hhhhhNubj$)}(hOdefine a multi device (combination of hw:1,0 and hw:1,1) in your .asoundrc fileh]h)}(hOdefine a multi device (combination of hw:1,0 and hw:1,1) in your .asoundrc fileh]hOdefine a multi device (combination of hw:1,0 and hw:1,1) in your .asoundrc file}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hjRubah}(h]h ]h"]h$]h&]uh1j#hj!hhhhhNubj$)}(hstart jackd with this device h]h)}(hstart jackd with this deviceh]hstart jackd with this device}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM#hjjubah}(h]h ]h"]h$]h&]uh1j#hj!hhhhhNubeh}(h]h ]h"]h$]h&]jjuh1jhhhMhjhhubh)}(hsI had no success in testing this for now, if you have any success with this kind of setup, please drop me an email.h]hsI had no success in testing this for now, if you have any success with this kind of setup, please drop me an email.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM%hjhhubeh}(h]0getting-2-input-and-or-output-interfaces-in-jackah ]h"]0getting 2 input and/or output interfaces in jackah$]h&]uh1hhjJhhhhhM ubeh}(h]audiophile-usb-and-jack-supportah ]h"]audiophile usb and jack supportah$]h&]uh1hhhhhhhhMubeh}(h]8guide-to-using-m-audio-audiophile-usb-with-alsa-and-jackah ]h"]8guide to using m-audio audiophile usb with alsa and jackah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjjjjjjjjTjQjGjDj jj j jjj j j j jT jQ j j j j j?j<jgjdj7j4jjjjj|jyjju nametypes}(jjjjjTjGj j jj j jT j j j?jgj7jjj|juh}(jhjj jjjj"jQjjDjWjjj j jjLj jj j jQ j j jW j j j<j jdjj4jjjjJjjjyjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}jKsRparse_messages](hsystem_message)}(hhh]h)}(hfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.h]hhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]levelKtypeINFOlineMsourcehuh1j3hj hhhhhMubj4)}(hhh]h)}(hfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.h]hhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]levelKtypejNlineMIsourcehuh1j3hjhhhhhMIubetransform_messages] transformerN include_log] decorationNhhub.