个人工具

“UbuntuHelp:TASCAM US-122”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/TASCAM_US-122}} {{Languages|UbuntuHelp:TASCAM_US-122}} == Introduction == The TASCAM US-122 is a USB audio/MIDI interface that will form a bridge...)
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/TASCAM_US-122}}
 
{{From|https://help.ubuntu.com/community/TASCAM_US-122}}
 
{{Languages|UbuntuHelp:TASCAM_US-122}}
 
{{Languages|UbuntuHelp:TASCAM_US-122}}
 
 
== Introduction ==
 
== Introduction ==
 
The TASCAM US-122 is a USB audio/MIDI interface that will form a bridge between your music and your computer. Please visit http://www.tascam.com/Products/US-122.html for more information on the device.
 
The TASCAM US-122 is a USB audio/MIDI interface that will form a bridge between your music and your computer. Please visit http://www.tascam.com/Products/US-122.html for more information on the device.
 
 
This is simply a rewrite of a Hoary tutorial to be used in getting the TASCAM US-122 to work in Ubuntu 6.06 LTS (Dapper Drake). Very little has changed except for versions of packages being installed.
 
This is simply a rewrite of a Hoary tutorial to be used in getting the TASCAM US-122 to work in Ubuntu 6.06 LTS (Dapper Drake). Very little has changed except for versions of packages being installed.
 
 
'''NOTE:''' The Ubuntu Studio should be setup before continuing on with this tutorial. If you actually have use for a US-122, you probably have use for many of the other functions and applications in the Ubuntu Studio.
 
'''NOTE:''' The Ubuntu Studio should be setup before continuing on with this tutorial. If you actually have use for a US-122, you probably have use for many of the other functions and applications in the Ubuntu Studio.
 
 
It should add that the Ubuntu Studio was setup prior to doing the steps in this tutorial. If you actually have use for a US-122, you probably have use for many of the other pieces of Ubuntu Studio. More information on the Ubuntu Studio Project can be viewed at http://ubuntustudio.com
 
It should add that the Ubuntu Studio was setup prior to doing the steps in this tutorial. If you actually have use for a US-122, you probably have use for many of the other pieces of Ubuntu Studio. More information on the Ubuntu Studio Project can be viewed at http://ubuntustudio.com
 
 
== Installation ==
 
== Installation ==
 
This tutorial is written to be worked and used from the Command Line (CLI). There is also a need for <code><nowiki>Universe</nowiki></code> and <code><nowiki>Multiverse</nowiki></code> repositories, so refer to the [[UbuntuHelp:Repositories|Repositories]] wiki page for further information.
 
This tutorial is written to be worked and used from the Command Line (CLI). There is also a need for <code><nowiki>Universe</nowiki></code> and <code><nowiki>Multiverse</nowiki></code> repositories, so refer to the [[UbuntuHelp:Repositories|Repositories]] wiki page for further information.
 
 
=== Step 1: Install Dependencies ===
 
=== Step 1: Install Dependencies ===
 
'''NOTE:''' The following is to be typed in on one line
 
'''NOTE:''' The following is to be typed in on one line
第19行: 第13行:
 
# sudo apt-get install fxload alsa-base alsa-firmware-loaders alsa-tools alsa-tools-gui alsa-utils alsamixergui alien
 
# sudo apt-get install fxload alsa-base alsa-firmware-loaders alsa-tools alsa-tools-gui alsa-utils alsamixergui alien
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Step 2: Download ALSA Firmware ===
 
=== Step 2: Download ALSA Firmware ===
 
Yes, you will be downloading a RPM file, the next step will convert it into a Debian (.deb) file.
 
Yes, you will be downloading a RPM file, the next step will convert it into a Debian (.deb) file.
第25行: 第18行:
 
# wget ftp://chuck.ucs.indiana.edu/pub/array2/linux/opensuse/distribution/SL-10.0-OSS/inst-source/suse/noarch/alsa-firmware-1.0.9-4.noarch.rpm
 
# wget ftp://chuck.ucs.indiana.edu/pub/array2/linux/opensuse/distribution/SL-10.0-OSS/inst-source/suse/noarch/alsa-firmware-1.0.9-4.noarch.rpm
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Step 3: Convert ALSA Firmware ===
 
=== Step 3: Convert ALSA Firmware ===
 
Goto the location that you downloaded <code><nowiki>alsa-firmware-1.0.9-4.noarch.rpm</nowiki></code>. You will use '''Alien''' in this step to convert the <code><nowiki>alsa-firmware-1.0.9-4.noarch.rpm</nowiki></code> into <code><nowiki>alsa-firmware_1.0.9-5_all.deb</nowiki></code>. Yes, that is not a typo, it is in fact 1.0.9-5, and not -4. '''Alien''' will create the .deb with this version, do not worry.
 
Goto the location that you downloaded <code><nowiki>alsa-firmware-1.0.9-4.noarch.rpm</nowiki></code>. You will use '''Alien''' in this step to convert the <code><nowiki>alsa-firmware-1.0.9-4.noarch.rpm</nowiki></code> into <code><nowiki>alsa-firmware_1.0.9-5_all.deb</nowiki></code>. Yes, that is not a typo, it is in fact 1.0.9-5, and not -4. '''Alien''' will create the .deb with this version, do not worry.
第31行: 第23行:
 
# sudo alien --to-deb alsa-firmware-1.0.9-4.noarch.rpm
 
# sudo alien --to-deb alsa-firmware-1.0.9-4.noarch.rpm
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Step 4: Install ALSA Firmware ===
 
=== Step 4: Install ALSA Firmware ===
 
<pre><nowiki>
 
<pre><nowiki>
 
# sudo dpkg -i alsa-firmware_1.0.9-5_all.deb
 
# sudo dpkg -i alsa-firmware_1.0.9-5_all.deb
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Step 5: Download TASCAM US-122 Firmware ===
 
=== Step 5: Download TASCAM US-122 Firmware ===
 
<pre><nowiki>
 
<pre><nowiki>
 
# wget http://langerland.de/linux/usx2y/usx2y-fw-0.1b.tar.bz2
 
# wget http://langerland.de/linux/usx2y/usx2y-fw-0.1b.tar.bz2
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Step 6: Extract TASCAM US-122 Firmware ===
 
=== Step 6: Extract TASCAM US-122 Firmware ===
 
Goto the location you downloaded the TASCAM US-122 firmware, <code><nowiki>usx2y-fw-0.1b.tar.bz2</nowiki></code>.
 
Goto the location you downloaded the TASCAM US-122 firmware, <code><nowiki>usx2y-fw-0.1b.tar.bz2</nowiki></code>.
第47行: 第36行:
 
# tar -xvjf usx2y-fw-0.1b.tar.bz2
 
# tar -xvjf usx2y-fw-0.1b.tar.bz2
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Step 7: Retrieve USB Information ===
 
=== Step 7: Retrieve USB Information ===
 
'''NOTE:''' Make note of the bus and device for the TASCAM US-122 that is outputted from the following command:
 
'''NOTE:''' Make note of the bus and device for the TASCAM US-122 that is outputted from the following command:
第55行: 第43行:
 
'''<u>EXAMPLE</u>''': Note that it may not be the same output as you receive.
 
'''<u>EXAMPLE</u>''': Note that it may not be the same output as you receive.
 
<code><nowiki>Bus 002 Device 003:  ID 1604:8006 Tascam US-122 Audio/Midi Interface</nowiki></code>
 
<code><nowiki>Bus 002 Device 003:  ID 1604:8006 Tascam US-122 Audio/Midi Interface</nowiki></code>
 
 
=== Step 8: Load the TASCAM US-122 Firmware ===
 
=== Step 8: Load the TASCAM US-122 Firmware ===
 
'''NOTE:''' <code><nowiki>/path/to/</nowiki></code> represents the location of your <code><nowiki>ld2-ezusb.hex</nowiki></code> file that was in the <code><nowiki>usx2y-f2-0.1b.tar.bz2</nowiki></code> archive downloaded from Landerland.de. The <code><nowiki>/002/003</nowiki></code> represents the information outputted from the <code><nowiki>lsusb</nowiki></code> for Bus (002) and Device (003).
 
'''NOTE:''' <code><nowiki>/path/to/</nowiki></code> represents the location of your <code><nowiki>ld2-ezusb.hex</nowiki></code> file that was in the <code><nowiki>usx2y-f2-0.1b.tar.bz2</nowiki></code> archive downloaded from Landerland.de. The <code><nowiki>/002/003</nowiki></code> represents the information outputted from the <code><nowiki>lsusb</nowiki></code> for Bus (002) and Device (003).
第61行: 第48行:
 
# sudo fxload -s /path/to/ld2-ezusb.hex -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx -D /proc/bus/usb/002/003
 
# sudo fxload -s /path/to/ld2-ezusb.hex -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx -D /proc/bus/usb/002/003
 
</nowiki></pre>
 
</nowiki></pre>
 
 
=== Step 9: TASCAM US-122 Initialization ===
 
=== Step 9: TASCAM US-122 Initialization ===
 
The following command should initialize the TASCAM US-122, causing the lights on the unit to come on.
 
The following command should initialize the TASCAM US-122, causing the lights on the unit to come on.
第67行: 第53行:
 
# sudo usx2yloader
 
# sudo usx2yloader
 
</nowiki></pre>
 
</nowiki></pre>
 
 
== Post Installation ==
 
== Post Installation ==
 
To take a look at your new/current audio arrangement, issue the following command:
 
To take a look at your new/current audio arrangement, issue the following command:
第81行: 第66行:
 
</nowiki></pre>
 
</nowiki></pre>
 
'''NOTE:''' Your output may not be the same depending on your setup.
 
'''NOTE:''' Your output may not be the same depending on your setup.
 
 
=== Reinitialization ===
 
=== Reinitialization ===
 
Should you reboot or disconnect the device, you will need to initialize the TASCAM US-122. To initialize, issue the following command:
 
Should you reboot or disconnect the device, you will need to initialize the TASCAM US-122. To initialize, issue the following command:
第88行: 第72行:
 
</nowiki></pre>
 
</nowiki></pre>
 
You could even have '''usx2yloader''' run on startup, if the card was attached all the time.
 
You could even have '''usx2yloader''' run on startup, if the card was attached all the time.
 
 
== Better udev Integration ==
 
== Better udev Integration ==
 
This allows "plug and play" usage of the device. Check that you have all the needed firmware files and software mentioned above. To trigger the loader software through the <code><nowiki>udev</nowiki></code> system, you need a special config file in the <code><nowiki>/etc/udev/rules.d/</nowiki></code> directory. You can call it <code><nowiki>55-tascam.rules</nowiki></code> for example. It should have the following content for the TASCAM US-122 (check your paths and files):
 
This allows "plug and play" usage of the device. Check that you have all the needed firmware files and software mentioned above. To trigger the loader software through the <code><nowiki>udev</nowiki></code> system, you need a special config file in the <code><nowiki>/etc/udev/rules.d/</nowiki></code> directory. You can call it <code><nowiki>55-tascam.rules</nowiki></code> for example. It should have the following content for the TASCAM US-122 (check your paths and files):
 
<pre><nowiki>
 
<pre><nowiki>
 
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8006", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx'"
 
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8006", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx'"
 
 
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8007", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/usr/bin/usx2yloader'"
 
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8007", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/usr/bin/usx2yloader'"
 
</nowiki></pre>
 
</nowiki></pre>
 
 
----
 
----
 
''This page was created with the written consent of the "Original Author".'' <br>
 
''This page was created with the written consent of the "Original Author".'' <br>

2007年11月30日 (五) 21:43的版本

Introduction

The TASCAM US-122 is a USB audio/MIDI interface that will form a bridge between your music and your computer. Please visit http://www.tascam.com/Products/US-122.html for more information on the device. This is simply a rewrite of a Hoary tutorial to be used in getting the TASCAM US-122 to work in Ubuntu 6.06 LTS (Dapper Drake). Very little has changed except for versions of packages being installed. NOTE: The Ubuntu Studio should be setup before continuing on with this tutorial. If you actually have use for a US-122, you probably have use for many of the other functions and applications in the Ubuntu Studio. It should add that the Ubuntu Studio was setup prior to doing the steps in this tutorial. If you actually have use for a US-122, you probably have use for many of the other pieces of Ubuntu Studio. More information on the Ubuntu Studio Project can be viewed at http://ubuntustudio.com

Installation

This tutorial is written to be worked and used from the Command Line (CLI). There is also a need for Universe and Multiverse repositories, so refer to the Repositories wiki page for further information.

Step 1: Install Dependencies

NOTE: The following is to be typed in on one line

# sudo apt-get install fxload alsa-base alsa-firmware-loaders alsa-tools alsa-tools-gui alsa-utils alsamixergui alien

Step 2: Download ALSA Firmware

Yes, you will be downloading a RPM file, the next step will convert it into a Debian (.deb) file.

# wget ftp://chuck.ucs.indiana.edu/pub/array2/linux/opensuse/distribution/SL-10.0-OSS/inst-source/suse/noarch/alsa-firmware-1.0.9-4.noarch.rpm

Step 3: Convert ALSA Firmware

Goto the location that you downloaded alsa-firmware-1.0.9-4.noarch.rpm. You will use Alien in this step to convert the alsa-firmware-1.0.9-4.noarch.rpm into alsa-firmware_1.0.9-5_all.deb. Yes, that is not a typo, it is in fact 1.0.9-5, and not -4. Alien will create the .deb with this version, do not worry.

# sudo alien --to-deb alsa-firmware-1.0.9-4.noarch.rpm

Step 4: Install ALSA Firmware

# sudo dpkg -i alsa-firmware_1.0.9-5_all.deb

Step 5: Download TASCAM US-122 Firmware

# wget http://langerland.de/linux/usx2y/usx2y-fw-0.1b.tar.bz2

Step 6: Extract TASCAM US-122 Firmware

Goto the location you downloaded the TASCAM US-122 firmware, usx2y-fw-0.1b.tar.bz2.

# tar -xvjf usx2y-fw-0.1b.tar.bz2

Step 7: Retrieve USB Information

NOTE: Make note of the bus and device for the TASCAM US-122 that is outputted from the following command:

# lsusb

EXAMPLE: Note that it may not be the same output as you receive. Bus 002 Device 003: ID 1604:8006 Tascam US-122 Audio/Midi Interface

Step 8: Load the TASCAM US-122 Firmware

NOTE: /path/to/ represents the location of your ld2-ezusb.hex file that was in the usx2y-f2-0.1b.tar.bz2 archive downloaded from Landerland.de. The /002/003 represents the information outputted from the lsusb for Bus (002) and Device (003).

# sudo fxload -s /path/to/ld2-ezusb.hex -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx -D /proc/bus/usb/002/003

Step 9: TASCAM US-122 Initialization

The following command should initialize the TASCAM US-122, causing the lights on the unit to come on.

# sudo usx2yloader

Post Installation

To take a look at your new/current audio arrangement, issue the following command:

# cat /proc/asound/cards

You should get an output similar to the following:

0 [Live ]: EMU10K1 - Sound Blaster Live!
Sound Blaster Live! (rev.10) at 0xd000, irq 18
1 [USX2Y ]: USB US-X2Y - TASCAM US-X2Y
TASCAM US-X2Y (1604:8007 if 0 at 001/006)

NOTE: Your output may not be the same depending on your setup.

Reinitialization

Should you reboot or disconnect the device, you will need to initialize the TASCAM US-122. To initialize, issue the following command:

# sudo usx2yloader

You could even have usx2yloader run on startup, if the card was attached all the time.

Better udev Integration

This allows "plug and play" usage of the device. Check that you have all the needed firmware files and software mentioned above. To trigger the loader software through the udev system, you need a special config file in the /etc/udev/rules.d/ directory. You can call it 55-tascam.rules for example. It should have the following content for the TASCAM US-122 (check your paths and files):

BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8006", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/sbin/fxload -D %N -s /usr/share/alsa/firmware/usx2yloader/tascam_loader.ihx -I /usr/share/alsa/firmware/usx2yloader/us122fw.ihx'"
BUS=="usb", ACTION=="add", SYSFS{idProduct}=="8007", SYSFS{idVendor}=="1604", RUN+="/bin/sh -c '/usr/bin/usx2yloader'"

This page was created with the written consent of the "Original Author".
Original Author: SFN
Original Thread: http://ubuntuforums.org/showthread.php?t=194490
UDSF Page: http://doc.gwos.org/index.php/Tascam_US-122_in_Dapper