Installing AudioScience ASI5042 for use with CRC-DabPlus

183 views
Skip to first unread message

Ulrik Brinck - Kanal Plus

unread,
Jun 27, 2011, 3:39:35 PM6/27/11
to crc-mm...@googlegroups.com
Hi,
I'm trying to install the AudioScience ASI5042 sound card for use with CRC-DabPlus.

Together with CRC-DabPlus came an installation guide:
---
This firmware installation procedure has been tested with HPI driver version 3.14.08 and Ubuntu 9.04 distribution

* wget http://www.audioscience.com/internet/download/hpklinux-3.14.08.tar.bz2
* tar xjf hpklinux-3.14.08.tar.bz2
* cd hpklinux-3.14.08
* ./configure --disable-kernel-compile
* make
* sudo make install

ALSA driver installation

This ALSA driver installation procedure has been tested on Ubuntu 9.04 distribution.

* sudo apt-get -y install alsa-source
* sudo module-assistant -i auto-install alsa
* sudo usermod -a -G audio <username>
* (reboot)

Replace <username> with your current user name. IMPORTANT: the module-assistant command must be called every time that the kernel is updated for the driver to match the current kernel version.
---

The first part with hpklinux seems to go well (except that the download path has been changed), both with 3.14.08 and with the most recent version on audioscience.com (4.06.04).

But the ALSA driver installation fails at "sudo module-assistant -i auto-install alsa".

In Ubuntu 9.04 (a "sandbox" pc with the mmbtools live-cd installed), I see a lot of "Failed to fetch http://blah.blah 404 Not Found", so perhaps the guide is obsolete for Ubuntu 9.04 ?

And in Ubuntu 11.04, which is going to be our "real" setup, the "sudo module-assistant -i auto-install alsa" ends with:
"In file included from include/linux/pci.h:58:0,
from /usr/src/modules/alsa-driver/acore/memalloc.inc:13,
from /usr/src/modules/alsa-driver/acore/memalloc.c:1:
/usr/src/modules/alsa-driver/include/linux/pci_ids.h:2:58: fatal error: @CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h: No such file or directory
compilation terminated." (...) "BUILD FAILED".

And in both distro's, the AudioScience card does not show up in the Alsa Mixer / Volume Control / Sound Preferences.

I think the problem in Ubuntu 11.04 is the same as mentioned here:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/778887
On that page, someone refers to https://wiki.ubuntu.com/Audio/InstallingLinuxAlsaDriverModules - I also tried to install the way the suggest there, but also that doesn't make the AudioScience card show up anywhere - and I don't know if it's supposed to?

So, it looks to me as if this guide doesn't work in neither Ubuntu 9.04 (anymore) nor 11.04. Therefore, I was wondering - does a new installation guide on how to install ASI504x for use with CRC-DabPlus exist? It is not important for me to do it in 9.04, but we need it in 11.04.

Best regards,
Ulrik.

Pascal Charest

unread,
Jun 27, 2011, 6:02:20 PM6/27/11
to crc-mm...@googlegroups.com
Hello Ulrick,

I've tested the compilation process on 9.04 and it works. The version of
Ubuntu used for the mmbTools live CD is too old and not supported
anymore by Ubuntu. The package repository must be changed; this is
probably what the 404 errors mean. Try these commands:

> sudo perl -p -i.ORIG -e
's/(?:(?:\w+.)?archive|security).(ubuntu.com)/old-releases.$1/'
/etc/apt/sources.list
> sudo aptitude update

... and try again the ALSA driver section from 'sudo apt-get -y install
alsa-source'.

For 11.04, unfortunately I had the same problem as you had and the bug
is exactly the first link that you sent. The problem seems to be related
to module-assistant. In fact, this tool is used to simplify the
procedure of recompiling the alsa kernel drivers, but is not required.
If you can find a procedure to recompile the alsa kernel drivers on
Ubuntu, it should work.

Regards,

Pascal

Ulrik Brinck - Kanal Plus

unread,
Jun 27, 2011, 9:07:52 PM6/27/11
to crc-mm...@googlegroups.com
Hello Pascal,

> I've tested the compilation process on 9.04 and it works. The version of
> Ubuntu used for the mmbTools live CD is too old and not supported
> anymore by Ubuntu. The package repository must be changed; this is
> probably what the 404 errors mean. Try these commands:
>
> > sudo perl -p -i.ORIG -e
> 's/(?:(?:\w+.)?archive|security).(ubuntu.com)/old-releases.$1/'
> /etc/apt/sources.list
> > sudo aptitude update
>
> ... and try again the ALSA driver section from 'sudo apt-get -y install
> alsa-source'.

Yes - this did the trick for the 9.04 mmbTools live cd. Thank you.

Now the card is visible. However, in Volume Control -> AudioScience ASI5042 (Alsa Mixer) -> Preferences, I don't have "LineIn[0-3] Multiplexer". What I have is "LineIn0", "LineIn0 Level", "LineIn0 Meter", "LineIn0 to LineOut0", "LineIn0 to LineOut1", "LineIn0 to LineOut2" and "LineIn0 to LineOut3". And all the same for LineIn1, LineIn2 and LineIn3. Perhaps the "Recording" tab is what I am missing?

Also, I afterwards added another ASI5042 (we bought two of them), and now I have them both in the Volume Control -> drop-down, but in Preferences, they are exactly identical, and if I change something on one of them, it also changes on the other. (And yes, I did remember to move the jumper on the second card).

It is not so important to solve these things on the "sandbox" (9.04) pc, but of course we will need to be able to use all 4 stereo inputs on both cards individually on the 11.04.

> For 11.04, unfortunately I had the same problem as you had and the bug
> is exactly the first link that you sent. The problem seems to be related
> to module-assistant. In fact, this tool is used to simplify the
> procedure of recompiling the alsa kernel drivers, but is not required.
> If you can find a procedure to recompile the alsa kernel drivers on
> Ubuntu, it should work.

So far no luck. :( I tried some various installation guides, and actually, the one pointed out from the AudioScience homepage, http://alsa-project.org/main/index.php/Matrix:Module-asihpi , just messed it all so much up that the onboard sound card was also gone afterwards. And various "revert" guides didn't bring it back, so now I simply reinstalled Ubuntu 11.04. After reinstalling Ubuntu, the ASI5042 actually showed up all by itself, but only as one stereo input and output. So I thought that maybe the drivers still had to be installed after all, so I started again with hpklinux, and efter that, the ASI5042 was gone again. And I haven't succeeded to get it back.

That's where I am now, but now it's time to sleep for today. If someone who reads along has the solution on how to install ASI5042 on Ubuntu 11.04, it will be much appreciated. :)

Best wishes,
Ulrik.


Pascal Charest

unread,
Jun 29, 2011, 12:21:55 PM6/29/11
to crc-mm...@googlegroups.com
Hi,

Ulrik Brinck - Kanal Plus wrote:

>> I've tested the compilation process on 9.04 and it works.

> Yes - this did the trick for the 9.04 mmbTools live cd. Thank you.
>
> Now the card is visible. However, in Volume Control -> AudioScience ASI5042 (Alsa Mixer) -> Preferences, I don't have "LineIn[0-3] Multiplexer". What I have is "LineIn0", "LineIn0 Level", "LineIn0 Meter", "LineIn0 to LineOut0", "LineIn0 to LineOut1", "LineIn0 to LineOut2" and "LineIn0 to LineOut3". And all the same for LineIn1, LineIn2 and LineIn3. Perhaps the "Recording" tab is what I am missing?
>

The list of parameters that I can enable on my systems is longuer than
yours: LineIn[0-3], LineIn[0-3] Level | Meter | Status | to LineOut[0-3]
| Format | Multiplexer, LineOut[0-3] Level | Meter | Format, InStream[n]
Meter | Channel mode | Multiplexer, OutStream[0-11], OutStream[0-11]
Meter | to LineOut[0-3], Clock0 LocalRate | Rate | Source.

Maybe it is a problem of driver version. In fact, I've tried with
3.08.06 version proposed on Audioscience website but it has a bug; I was
never able to use the AS audio card. Than I've tried to use the version
described in CRC-Dabplus documention, 3.14.08. I don't know why, but the
link is not available on AS main page. After downloading and installing
this version, I've launched again 'sudo module-assistant -i auto-install
alsa' with -f option added.

Here is the new link for 3.14.08 version (it is the version compatible
with Alsa driver of Ubuntu 9.04)

http://audioscience.com/internet/download/drivers/released/v3/14/08/hpklinux-3.14.08.tar.bz2

> Also, I afterwards added another ASI5042 (we bought two of them), and now I have them both in the Volume Control -> drop-down, but in Preferences, they are exactly identical, and if I change something on one of them, it also changes on the other. (And yes, I did remember to move the jumper on the second card).
>

Does my previous new instruction help to solve your problem?

> It is not so important to solve these things on the "sandbox" (9.04) pc, but of course we will need to be able to use all 4 stereo inputs on both cards individually on the 11.04.
>

> That's where I am now, but now it's time to sleep for today. If someone who reads along has the solution on how to install ASI5042 on Ubuntu 11.04, it will be much appreciated. :)
>

I will try to see if I can do something for Ubuntu 11.04. On another
side, a good news for future version is that the asihpi driver
(audioscience) is now merged in the mainline kernel since 2.6.35.

http://www.alsa-project.org/main/index.php/Matrix:Module-asihpi

Regards,

Pascal

Pascal Charest

unread,
Jun 29, 2011, 4:33:21 PM6/29/11
to crc-mm...@googlegroups.com

Good news, the Audioscience ASI5044 works with Ubuntu 11.04 out of the
box! You should experience similar results with your model.

Here is some additional notes that will help you solve your issue:

- The command "crc-dabplus -i card://list" does not list AS card.
- Try the command "arecord -l" to get a list of available cards. On our
system, I got this output:

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC887 Analog [ALC887 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: ALC887 Analog [ALC887 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: ASI5044 [AudioScience ASI5044], device 0: asihpi PCM [asihpi PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7

- The input format for crc-dabplus is card://hw:x,y,z where x is card
number, y is device and z is subdevice.
- The GUI audio mixer of Ubuntu 11.04 does not seem to support multiple
subdevices.
- The audio mixer can be launch from the command line "alsamixer -c 2"
where -c 2 is the card number
- Refers to README.html from crc-dabplus for simple definition of terms
found in alsamixer.
- I've succesfully tested subdevice 1 and 2 from crc-dabplus. The inputs
were AES/EBU, so I needed to adjust LineIn[0-1] Multiplexer option in
the Playback section of alsamixer (this is specific to our card model)

Regards,

Pascal

Ulrik Brinck - Kanal Plus

unread,
Jul 1, 2011, 5:05:51 PM7/1/11
to crc-mm...@googlegroups.com
Dear Pascal,
I have been away for 3 days for some work in another part of the country, but now I'm back home, and today I have tried the things you suggested. I must again say that your support is excellent!

As for Ubuntu 9.04:

>The list of parameters that I can enable on my systems is longuer than
>yours: LineIn[0-3], LineIn[0-3] Level | Meter | Status | to LineOut[0-3]
>| Format | Multiplexer, LineOut[0-3] Level | Meter | Format, InStream[n]
>Meter | Channel mode | Multiplexer, OutStream[0-11], OutStream[0-11]
>Meter | to LineOut[0-3], Clock0 LocalRate | Rate | Source.
>
>Maybe it is a problem of driver version. In fact, I've tried with
>3.08.06 version proposed on Audioscience website but it has a bug; I was
>never able to use the AS audio card. Than I've tried to use the version
>described in CRC-Dabplus documention, 3.14.08. I don't know why, but the
>link is not available on AS main page. After downloading and installing
>this version, I've launched again 'sudo module-assistant -i auto-install
>alsa' with -f option added.

Driver version 3.14.08 was actually the one I tried with on Ubuntu 9.04. But now I found out that in the "text based" (non-GUI) version of the Alsamixer, I have what I should have. Just not in the GUI based one.

And with two ASI5042 cards I get this output from arecord -l
--


**** List of CAPTURE Hardware Devices ****

card 0: Intel [HDA Intel], device 0: ALC662 Analog [ALC662 Analog]


Subdevices: 1/1
Subdevice #0: subdevice #0

card 1: ASI5042 [AudioScience ASI5042], device 0: Asihpi PCM [Asihpi PCM]


Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7

card 2: ASI5042_1 [AudioScience ASI5042], device 0: Asihpi PCM [Asihpi PCM]


Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7

--

So it looks like everything is ok in non-GUI.

On Ubuntu 11.04, as mentioned I had ASI5042 as one input after a reinstall of 11.04, but "lost" it after trying to install the hpklinux.

> Good news, the Audioscience ASI5044 works with Ubuntu 11.04 out of the
> box! You should experience similar results with your model.

Yes! I did a new reinstall of 11.04 today and you are right - with arecord -l and alsamixer (non-GUI) it works just like it should. So it seems like it was just a matter of knowing which tools to use, and also to understand how the "text based" alsamixer works (it seems quite odd at the beginning, but I understand it now). I have tested all the inputs one by one with both one and two cards installed - everything works like a dream now. :)

Only detail which is a bit weird is, that when I try with one card installed (with jumper setting as first card), it becomes card 2 in the 11.04 pc (like on your system) - but when I then add the other card into the pc (with jumper setting as second card), the "new" card takes over the "card 2" name, and the "old" card becomes card 3 instead. This means that the input of crc-dabplus has to be changed accordingly, when an additional card is installed. But I guess there is not so much to do about this, other than to remember it. ;-)

So now I have everything installed and working in Ubuntu 11.04, with good help from you several times on my journey. Now I will write a complete step-by-step guide of how to install it all in Ubuntu 11.04, to make it easy for the next person who wants to do it.

Best wishes,
Ulrik.


Reply all
Reply to author
Forward
0 new messages