View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 15 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Sep 23, 2006 6:42 am 
Offline
Joined: Sun Oct 30, 2005 7:07 pm
Posts: 72
I have a dragon system (or close to it) with the Chaintech AV-710 audio card, and I used the dragon scripts and info from posts I found here to get MythTV to output to the SPDIF optical output for digital audio. This works great - no issues with watching TV or recordings - I can get digital audio fine.

However...

Configuring Xine for optical audio is an issue for me. I have xine setup as the DVD player, and I set the speaker output to PassThrough as directed by other posts here. However, I get no sound at all when playing DVDs. Someone said here: http://mysettopbox.tv/phpBB2/viewtopic. ... ital+audio
that the audio driver needs to be changed to alsa in the settings menu. This makes sense, but when I tried doing that, Xine now complains that the device is busy or in use - or something like that.

Any help?

Thanks,
Trevor


Last edited by twbutler on Mon Sep 25, 2006 7:16 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 23, 2006 10:06 am 
Offline
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
here is a link to a post of how I helped someone else fix this same issue.


http://mysettopbox.tv/phpBB2/viewtopic. ... highlight=


hope that helps.

_________________
Marty

Long live Myth and Knoppmyth!!!!!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 2:48 pm 
Offline
Joined: Sun Oct 30, 2005 7:07 pm
Posts: 72
Thanks for that information. So, you have edited the asounnd.conf file from what the dragon setup defaults to. I was wondering if you meant for the entire contents of the file to contain
Code:
pcm.!default {
  type plug
  slave {
    pcm "spdif"
    format S32_LE
  }
}

or if you simply meant for that "pcm.!default" stanza to be edited and leave the first stanza ("pcm.spdifdmix") alone. I tried it both ways, and xine still exhibits the same behavior! The exact message is that "the audio device is not available - perhaps another device is using it". Are there any other settings you have? Is there some way that asound.conf could be eclipsed by some other configuration elsewhere in the system? I ask this because it seems that the changes I make to /etc/asound.conf do not change the system behavior. Do I need to invoke something after making the edit to make the changes take effect?

Thanks,
Trevor


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 3:57 pm 
Offline
Joined: Sun Oct 30, 2005 7:07 pm
Posts: 72
Following up on my own question about how to make the changes to asound.conf take effect...

From the DragonTweaker.sh script, it appears that the following cmds need to be invoked to activate the changes:
Code:
# necessary to make the sound changes take effect
update-modules
depmod -a
rmmod snd-pcm-oss
modprobe snd-pcm-oss

However, I tried these, and still - I am stuck in the water. Xine still refuses to play any file when its audio device is set to "asla". And if I set the device back to "oss", DVDs will play, but there is no audio from the SPDIF optical port. Sigh...

It is funny, but the Dragon xine config file that gets set up by DragonTweaker.sh actually has "oss" set as the audio device. This runs counter to what others claim they are doing (i.e. other people in the forums say that the driver must be set to "alsa").

Still hoping for a resolution, and any help or guidance would be appreciated.

Thanks,
Trevor


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 5:31 pm 
Offline
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
I was talking about just changing the pcm!default to read this and leave anything else alone.

pcm.!default {
type plug
slave {
pcm "spdif"
format S32_LE
}
}

also I am using the asound.conf file from 5C7 when I upgraded to 5D1 I had some sound problems so I copied back my old one and every thing is fine. Also you have your options set in Xine to be pass though correct and also I had to go into the .xine directory and edit the config file and change the audio driver to be alsa.


hopefully that is some more info for you.

_________________
Marty

Long live Myth and Knoppmyth!!!!!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 6:48 pm 
Offline
Joined: Sun Oct 30, 2005 7:07 pm
Posts: 72
sinspot1,

Thanks for clarifying. I do have PassThrough set for speaker output, and I have the audio driver set to alsa, just as you said. But I have the new asound.conf from R5D1, which apparently is not the one you are using with success.

Would you mind posting your old asound.conf file from 5C7 in its entirety? From what I can tell, that is the only remaining difference between our setups...

Thanks for you help thus far - I am anxious to see if the R5C7 version of asound.conf will be the ticket to getting this to work!

Thanks,
Trevor


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 11:02 pm 
Offline
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
here it is.......

Code:
pcm.envy_spdifdmix {
        type dmix
        ipc_key 1337
        slave {
                pcm "hw:0,1"
                format S32_LE
        }
}

pcm.envy_spdif {
        type plug
        slave {
                pcm envy_spdifdmix
        }
}

pcm.!default {
        type plug
        slave {
                pcm "spdif"
                format S32_LE
        }
}

# For ogle
#
pcm.!spdif {
        type plug
        slave {
                pcm "hw:0,1"
                format S32_LE
        }
}

# For mplayer ao (mplayer -ac hwac3 -ao alsa1x:mplayer)
# For vlc, use mplayer as alsa device
#
pcm.!iec958 {
        type plug
        slave {
                pcm "hw:0,1"
                format S32_LE
        }
}

pcm.mplayer {
        type plug
        slave {
                pcm "hw:0,1"
                format S32_LE
        }
}

_________________
Marty

Long live Myth and Knoppmyth!!!!!


Last edited by sinspot1 on Mon Sep 25, 2006 5:25 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 24, 2006 11:16 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
You know, if you put that in a code block it wouldn't trash the indentation...
Code:
[code]
your code here
[/code]

You can even go back and edit the post to add it...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 5:26 pm 
Offline
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
great thanks.... I fixed it.

_________________
Marty

Long live Myth and Knoppmyth!!!!!


Top
 Profile  
 
 Post subject: It JUST WORKS!
PostPosted: Mon Sep 25, 2006 7:15 pm 
Offline
Joined: Sun Oct 30, 2005 7:07 pm
Posts: 72
Well, guess what! 8)

It just works! I replaced my asound.conf with yours, and now I have xine playing glorius digital audio out to my theater receiver! There was no pop-up dialog this time - the DVD just began to play! And TV and recordings still play just fine also!

Thanks much for you help! My wife is so glad I am through fiddling with the audio! I am very appreciative!

Regards,
Trevor
:D


Top
 Profile  
 
PostPosted: Mon Sep 25, 2006 8:40 pm 
Offline
Joined: Sun Oct 30, 2005 7:07 pm
Posts: 72
The settings for asound.conf posted above also work for XMAME games. Before when I tried to play them with the audio directed to the SPDIF output, the sound was funny - wrong bitrate or something like that. Now they too are benefitting from the settings!

TuxRacer and Frozen Bubble unfortunately do not have sound when I tried them, though. They did not have sound before either, so nothing lost. Oh well, it is not a huge priority to get them working with optical output. I might start a new thread for those items in my copius spare time. :)


Top
 Profile  
 
PostPosted: Mon Sep 25, 2006 8:54 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
twbutler wrote:
TuxRacer and Frozen Bubble unfortunately do not have sound when I tried them, though. They did not have sound before either, so nothing lost.

Not working here either, ever since I got digital audio working for the other stuff. Also, not a big deal.
But I wonder if it's related to my audio with the internet streaming thing? I forget what it's called, it's the thing that plays podcasts and stuff, new in 0.2. I get no sound from that. I see the graphical thing (looks like an equalizer graph) going, but no sound.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 24, 2007 5:27 pm 
Offline
Joined: Sat Sep 09, 2006 11:35 am
Posts: 1
Thanks to twbutler and sinspot1 for this excellent discussion. The asound.conf file above also solved my problems with SPDIF passthrough, which is great since I'm using R5F1.

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 27, 2007 6:48 am 
Offline
Joined: Thu Jul 26, 2007 11:30 am
Posts: 1
I'm having no luck getting the spdif to work using xine and the above information. I'm using Mythdora 4.0 and was hoping that the information posted above would help, but it does not. Maybe if I got a look at a working xine config file and asound.state it would help me find out whats wrong with what i'm doing.

mplayer works, but doesn't work as good as xine. Mythtv is working to with tv. So the only thing i'm lacking is xine.

Can anybody help?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 28, 2007 9:38 am 
Offline
Joined: Thu Dec 22, 2005 5:32 pm
Posts: 198
I would go into the menu when you are in Xine and make sure the sound option is set to passthought.

_________________
Marty

Long live Myth and Knoppmyth!!!!!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu