AdamWill
Headphoneus Supremus
- Joined
- Dec 28, 2004
- Posts
- 1,643
- Likes
- 28
We have a thread with a quick guide to using the AV710's analog output under Linux, but not its digital output. I aim to fill that gap! The AV710 is a good choice for a digital output as well as analog, since it's cheap and has a non-resampling optical output. Under Linux, here's how to use it. This should work since about ALSA 1.0.9, I'm not so sure about earlier versions.
0. Make sure your system is configured to use snd-ice1724 as the sound driver. This is outside the scope of this guide but should be the case on most distros. You can check with, as root, "lsmod | grep snd-ice1724".
1. Download the first attachment to this post and save it as /etc/asound.state .
2. Download the second attachment to this post and save it as ~/.asoundrc (that is, filename .asoundrc in your user's home directory).
3. Run this command as root:
alsactl restore
That's basically it. Play sounds and they go out over the optical output. There is an optional step, if you're running a recent distro. Edit /usr/share/alsa/cards/ICE1724.conf and, if it has a section like this at the top:
default with dmix & dsnoop
ICE1724.pcm.default {
@args [ CARD ]
@args.CARD {
type string
}
type asym
playback.pcm {
type plug
slave.pcm {
@func concat
strings [ "dmix:" $CARD ",FORMAT=S32_LE" ]
}
}
capture.pcm {
type plug
slave.pcm {
@func concat
strings [ "dsnoop:" $CARD ",FORMAT=S32_LE" ]
}
}
}
then consider deleting it, or commenting it out. This section enables dmix and dsnoop. These mix (respectively) playback and recording streams so you can play several sounds at once. The problem is they force resampling to a single sample rate, for dmix the default is 48KHz. I'd rather play one sound at a time and avoid any manipulation of the audio, so for this reason, I remove this section. (It's a very recent addition to ALSA, so if your distro isn't brand new, it may well not be there anyway). Enjoy!
0. Make sure your system is configured to use snd-ice1724 as the sound driver. This is outside the scope of this guide but should be the case on most distros. You can check with, as root, "lsmod | grep snd-ice1724".
1. Download the first attachment to this post and save it as /etc/asound.state .
2. Download the second attachment to this post and save it as ~/.asoundrc (that is, filename .asoundrc in your user's home directory).
3. Run this command as root:
alsactl restore
That's basically it. Play sounds and they go out over the optical output. There is an optional step, if you're running a recent distro. Edit /usr/share/alsa/cards/ICE1724.conf and, if it has a section like this at the top:
default with dmix & dsnoop
ICE1724.pcm.default {
@args [ CARD ]
@args.CARD {
type string
}
type asym
playback.pcm {
type plug
slave.pcm {
@func concat
strings [ "dmix:" $CARD ",FORMAT=S32_LE" ]
}
}
capture.pcm {
type plug
slave.pcm {
@func concat
strings [ "dsnoop:" $CARD ",FORMAT=S32_LE" ]
}
}
}
then consider deleting it, or commenting it out. This section enables dmix and dsnoop. These mix (respectively) playback and recording streams so you can play several sounds at once. The problem is they force resampling to a single sample rate, for dmix the default is 48KHz. I'd rather play one sound at a time and avoid any manipulation of the audio, so for this reason, I remove this section. (It's a very recent addition to ALSA, so if your distro isn't brand new, it may well not be there anyway). Enjoy!