[mythtv-users] mythtv, ogle and alsa = no sound after watching dvd with ac3 passthru

Harondel J. Sibble help at pdscc.com
Thu Nov 27 14:50:15 EST 2003


Okay, here is the deal, I run mythtv 0.11, ogle 0.9.1 and alsa 0.9.6 with an 
SBlive 5.1 card and the digital I/O card (original). All the audio from the 
system runs through the spdif out on the digital i/o card to my amp.

My modules.conf

alias usb-interface usb-uhci
alias eth0 tulip
# ALSA configuration
alias char-major-116 snd
options snd major=116 cards_limit=1
alias snd-card-0 snd-emu10k1
options snd-emu10k1 index=0 id="Emu10k1" extin="0x3fc3" extout=0x1f0f
###options snd-emu10k1 index=0 id="Emu10k1" extin="0x000f" extout=0x1f0f
### options snd-emu10k1 index=0 id="Emu10k1" extin="0x3fc3" extout="0x1fcf"
alias char-major-14 soundcore
alias sound-slot-0 snd-emu10k1
#
## ALSA-OSS compatibility
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
options snd-pcm-oss dsp_map=0 adsp_map=3
options snd-ac97-codec enable_loopback=1
#### LIRC settings for packard bell serial remote
alias char-major-61 lirc_serial
options lirc_serial irq=3 io=0x2f8
## I2c
alias char-major-89 i2c-dev
options i2c-core i2c_debug=1
options i2c-algo-bit bit_test=1
## Video - tv and mpeg           ##
alias char-major-81 videodev
alias char-major-81-0   ivtv
options ivtv debug=1 tuner=2 mpg_buffers=100
options msp3400 once=1 simple=1
add below ivtv tuner
add above ivtv msp3400 saa7115
alias char-major-81-1 bttv debug=2
options bttv card=63 radio=0 tuner=8 pll=0 bttv_verbose=2 bttv_debug=0
options tuner debug=2
options tvmixer debug=1 devnr=1
options btaudio dsp1=2 dsp2=3 analog=0 debug=2
add above bttv msp3400 btaudio
#post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L  >/dev/null 
2>&1 || :
#pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S  >/dev/null 
2>&1 || :
### Video card drivers
alias /dev/nvidia*   NVdriver

I have mthdvd installed which allows me to run ogle and play a movie from 
through the mythtv menu.  Running ogle direct from the command line gives me 
the same problem, which is.....

following item 43 in the ogle faq, I am able to get ac-3 passthru audio from 
the dvd movies, however, I get an error that ogle is unable to update the 
iec958 control and of greater consequence, once I stop ogle, I have no audio 
at all...

    ERROR[ogle_audio]: Unable to update the IEC958 control: No such file or 
    directory

Basically, nothing comes out of my speakers. If I run mythtv and watch 
livetv, I get no audio which suggests that audio is still playing (otherwise 
live tv would likely fail in some way), but I am not hearing anything. 
Stopping and restarting mythtv and alsa (and any related audio dependencies 
like bttv and btaudio) has no impact on getting sound. The only way is to 
reboot or (I think, can't remember if I tried this or not) do an "init 1 && 
init 5"

The unable to update iec958 control error make sense as there is no control 
listed in alsamixer that is just "iec958", there are:

iec958 coaxial
iec958 coaxial capture
iec958 optical
iec958 optical capture
iec958 optical raw

Using any of these items in my ~/.oglerc results in ogle dying quickly

ALSA lib pcm.c:1908:(snd_pcm_open_noupdate) Unknown PCM iec958 
coaxial:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2
ERROR[ogle_audio]: Opening alsa pcm device 'iec958 
coaxial:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2': Success
FATAL[ogle_audio]: failed opening the alsa audio driver at iec958 
coaxial:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2
ctrl: ipc_rmid: Invalid argument


ALSA lib pcm.c:1908:(snd_pcm_open_noupdate) Unknown PCM iec958 coaxial
ERROR[ogle_audio]: Opening alsa pcm device 'iec958 coaxial': Success
FATAL[ogle_audio]: failed opening the alsa audio driver at iec958 coaxial
ctrl: ipc_rmid: Invalid argument


To get any audio output, the optical raw setting must be muted. I've checked 
alsamixer after shutting down ogle and can't see any changes, using alsactl 
store and restore respectively before and after running ogle gets me back my 
audio, but I am not sure what to make of the _meaning_ of the diff I've done 
on the asound.state saved before and after audio stops working (the first 
file on the diff command line is after sound stops working and the bak file 
is when sound is working.

# diff /etc/asound.state /etc/asound.state.bak-nov26-03-1119
3205,3206c3205,3206
<               value.0 true
<               value.1 true
---
>               value.0 false
>               value.1 false
5217c5217
<               value 
'02820002000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000'
---
>               value 
'04921002000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000'

I guess I could write a wrapper script around starting ogle that restores a 
working asound.state file after I close ogle, however, ideally I'd like 
something that doesn't require any hacking, any suggestions?
-- 
Harondel J. Sibble 
Sibble Computer Consulting
Creating solutions for the small business and home computer user.
help at pdscc.com (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
(604) 739-3709 (voice/fax)      (604) 686-2253 (pager)




More information about the mythtv-users mailing list