Wednesday, June 22, 2005

Turtle Beach Riviera installation

ALSA recognized the new card (card 1):

[root@be ~]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ICH5 [Intel ICH5], device 0: Intel ICH [Intel ICH5]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ICH5 [Intel ICH5], device 4: Intel ICH - IEC958 [Intel ICH5 - IEC958
]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 0: CMI8738-MC6 [C-Media
PCI DAC/ADC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 1: CMI8738-MC6 [C-Media
PCI 2nd DAC]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: CMI8738MC6 [C-Media PCI CMI8738-MC6], device 2: CMI8738-MC6 [C-Media
PCI IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0

Added to .asoundrc:

pcm.digital2 {
type plug
slave.pcm "digital-hw2"
}
pcm.digital-hw2 {
type hw
card 1
device 0
}

pcm.digital2b {
type plug
slave.pcm "digital-hw2b"
}
pcm.digital-hw2b {
type hw
card 1
device 1
}

pcm.digital2c {
type plug
slave.pcm "digital-hw2c"
}
pcm.digital-hw2c {
type hw
card 1
device 2
}

aplay of .wav failed:
# aplay -D digital2 bustin.wav
# aplay -D digital2b bustin.wav
# aplay -D digital2c bustin.wav

Looked in alsamixer:
# alsamixer -c1

"Item: IEC958 Output" was MUTED. Unmuted this and...

# aplay -D digital2c bustin.wav [WORKED!]

(This is card 1, device 2).

Save settings:
# /sbin/alsactl store

Note, that I later saved the mixer settings to a file with:
# alsactl -f /root/asound.settings.riviera store

Default location is /etc/asound.settings

Changed setup in MythTV (Settings->General):
Was: ALSA:digital
Changed to: ALSA:digital2c

WORKED!

====================================
Now, xine. Added to .asoundrc:

Card 1, Device 2:

pcm.!iec958 {
type plug
slave.pcm "hw:1,2"
}
ctl.!iec958 {
type hw
card 1
}

# xine -pfhq --no-splash --verbose dvd:///dev/hdb > tmp_xine.txt

Xine settings (Alt-S, Audio tab):

Audio driver: alsa
Use a/52 dynamic range compression: Unchecked
Downmix audio to 2 channel surround stereo: Unchecked
A/52 volume: slider all the way to the RIGHT
device used for mono: digital2c
device used for stereo: digital2c
alsa mixer device: Master
Sound card can do mmap: Unchecked
Device used for 5.1 channel output (device.alsa_passthough_de): iec958
Device used for 4 channel output: plug:surround40:0
Device used for 5.1 channel output: plug:surround51:0
Speaker arrangement: Pass Through
offset for digital passthrough: 0
Method to sync audio and video: metronom feedback
Always resample to this rate: 0 (disable)
Enable resampling: auto
Startup audio volume: slide in the MIDDLE
Restore volume level at startup: Unchecked

No sound. So tested bustin.wav (this time in KDE):
# aplay -D digital2c bustin.wav

No sound! So restored mixer settings to fix this:
# /sbin/alsactl restore

alsamixer settings:
Master: 90
3D Contr: MUTED
PCM: 77
Synth: 77
Line: Muted
Line-in as bass: M)uted
Line-in as rear: M
CD: M
Mic: M
Mic Capt: 0
Mic as center/lfe: 0
Mic Boost: M
IEC958 5V: 0
IEC958 Copyright: M
iec958 in monitor: M
iec958 in phase inverse: M
iec958 in select: M
iec958 in valid: M
iec958 in loop: M
iec958 output: 0
pc speaker: 67
aux: M
Four channel mode: 0

Now running xine has DTS sound off DVD! :-)

2 Comments:

At 10:18 AM, Blogger Frank Swygert said...

I searched all over Ubuntu forums trying to find a solution to getting this card working and struck out. Bought it because so many people were using it, then could get no help!! Turns out it was the Alsamixer settings. I did jump through a lot of hoops though -- removed Pulse Audio from Mint 8 (based on Ubuntu 9.10) and installed the latest Alsa drivers. The mixer was the last item. Seems the IEC958 Loop setting not muted is a biggie! All other IE958 settings can be on or off. I'm just glad i decided to search "mythtv riviera" on Google and find this site! Not sure if I had to remove Pulse audio or install latest Alsa drivers or not now... but that was the advice I was given...

 
At 10:23 AM, Blogger Frank Swygert said...

Donn, I've been struggling to get sound over the SPIDF Optical out on my Riviera card for three days now! The final bit was the Alsamixer settings. Glad I searched "mythtv riviera" and found your site -- the Ubuntu forums weren't that much help, though I did use instructions from there to remove Pulse Audio (using Mint 8 x64, based on Ubuntu 9.10) and update the Alsa drivers. Of the 7 IEC958 settings only "output" needs to be activated. "Loop" kills all sound, and the other five have no noticeable effect.

 

Post a Comment

<< Home