<div>
<div>Well I tried your start up script and your .asoundrc file and it didn't see to work. </div>
<div>&nbsp;</div>
<div>I think I am missing something from the start up script. When KDE boots up the optical port on the MOBO won't light up until I open gamixer and turn on the IEC958 Playback button. After I check that box, the optical fires right up. I just need to determine the setting that is changing and add it to the start up script. 
</div>
<div>&nbsp;</div>
<div>So I tried booting into KDE without doing anything other then using the scripts you provided and when I go into MythFrontEnd and set the device to &quot;ASLA:digital&quot; and enable AC3 through the SPDIF, when I try MythMusic, It can't open the device (See the log below). I get the same result with enabling the IEC958 Playback button before going into the front end as well. The &quot;digital&quot; device isn't found.
</div>
<div>&nbsp;</div>
<div>I will have some time to play with it this weekend, so I might figure something out, I am sure it is something silly. Silly yet frustrating..</div>
<div>&nbsp;</div>
<div>FrontEnd Log:</div>
<div>&nbsp;</div>
<div>&nbsp;2005-11-03 22:52:23.073 New DB connection, total: 1<br>Total desktop width=1280, height=720, numscreens=1<br>2005-11-03 22:52:23.079 Using screen 0, 1280x720 at 0,0<br>2005-11-03 22:52:23.081 mythfrontend version: 
0.18.1.20050523-1 <a href="http://www.mythtv.org">www.mythtv.org</a><br>2005-11-03 22:52:23.081 Enabled verbose msgs : important general<br>2005-11-03 22:52:23.612 Switching to square mode (visor)<br>mythtv: could not connect to socket
<br>mythtv: No such file or directory<br>lirc_init failed for mythtv, see preceding messages<br>2005-11-03 22:52:23.853 Joystick disabled.<br>2005-11-03 22:52:23.932 Registering Internal as a media playback plugin.<br>2005-11-03 22:52:
23.999 Registering MythDVD DVD Media Handler as a media handler<br>2005-11-03 22:52:24.000 Registering MythDVD VCD Media Handler as a media handler<br>2005-11-03 22:52:24.430 Registering MythMusic Media Handler as a media handler
<br>SIP listening on IP Address <a href="http://192.168.1.50:5060">192.168.1.50:5060</a> NAT address <a href="http://192.168.1.50">192.168.1.50</a><br>SIP: Cannot register; proxy, username or password not set<br>2005-11-03 22:52:
25.418 Starting media monitor.<br>2005-11-03 22:52:44.960 Connecting to backend server:<br><a href="http://192.168.1.50:6543">192.168.1.50:6543</a> (try 1 of 5)<br>2005-11-03 22:52:44.973 Using protocol version 15<br>2005-11-03 22:52:
50.221 New DB connection, total: 2<br>2005-11-03 22:52:50.226 New DB connection, total: 3<br>XMLParse::LoadTheme(): Can't open: /usr/share/mythtv/themes/visor/music-ui.xml<br>XMLParse::LoadTheme(): Using default theme file
<br>2005-11-03 22:52:51.799 Opening audio device 'digital'.<br>2005-11-03 22:52:51.817 snd_pcm_open(digital): No such file or directory</div>
<div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">------------------------------<br><br>Message: 4<br>Date: Wed, 2 Nov 2005 22:44:24 -0700<br>From: &quot;James C. Dastrup&quot; &lt; 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jc@dastrup.com" target="_blank">jc@dastrup.com</a>&gt;<br>Subject: RE: [mythtv-users] RE: nForce4 Audio on FC4,&nbsp;&nbsp; it plays some of<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the time....
<br>To: &quot;Discussion about mythtv&quot; &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org" target="_blank"> mythtv-users@mythtv.org</a>&gt;<br>Message-ID: &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:3B588E7A10420448AE571D9E921247867347@foo.dastrup.com" target="_blank">
3B588E7A10420448AE571D9E921247867347@foo.dastrup.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot; <br><br>Sorry about that, should be fixed now.&nbsp;&nbsp;Just in case you still can't get it, here's the script in my KDE startup folder:
<br><br>#alsafix.sh<br>sleep 5<br>amixer set 'Headphone Jack Sense' off<br>amixer set 'Master' 100% on <br>amixer set 'PCM' 100% on<br>amixer set 'Line' off<br>amixer set 'IEC958' on<br>amixer set 'IEC958 Playback AC97-SPSA' 100%
<br><br>And here's my .asoundrc<br><br># .asoundrc<br># Override the default output used by ALSA. <br># If you do not override the default, your default<br># device is identical to the (unmixed) analog device<br># shown below.&nbsp;&nbsp;If you prefer mixed and/or digital
<br># output, uncomment the appropriate four lines below<br># (only one slave.pcm line).<br>#pcm.!default {<br>#&nbsp;&nbsp;type plug<br>## Uncomment the following to use mixed analog by default<br>#&nbsp;&nbsp;slave.pcm &quot;dmix-analog&quot;
<br>## Uncomment the following to use unmixed digital by default <br>#&nbsp;&nbsp;slave.pcm &quot;digital-hw&quot;<br>## Uncomment the following to use mixed digital by default<br>#&nbsp;&nbsp;slave.pcm &quot;dmix-digital&quot;<br>#}<br><br>
# Alias for analog output on the nForce2/4 (hw:0,0)<br># - This is identical to the device named &quot;default&quot;--which <br># always exists and refers to hw:0,0 (unless overridden)<br># - Therefore, we can specify &quot;hw:0,0&quot;, &quot;default&quot;, or &quot;analog&quot;
<br># to access analog output on the nForce2/4<br>pcm.analog {<br>type plug<br>slave.pcm &quot;analog-hw&quot;<br>}<br><br># Control device (mixer, etc.) for the nForce2 card<br>ctl.analog {<br>type hw<br>card 0<br>}<br><br>
# Alias for (rate-converted) mixed analog output on the<br># nForce2 (hw:0,0) <br>#&nbsp;&nbsp;- This will accept audio input--regardless of rate--and<br># convert to the rate required for the dmix plugin<br># (in this case 48000Hz)
<br>pcm.mixed-analog {<br>type plug<br>slave.pcm &quot;dmix-analog&quot;<br>} <br><br># Control device (mixer, etc.) for the nForce2 card<br>ctl.mixed-analog {<br>type hw<br>card 0<br>}<br><br># Alias for (rate-converted) digital (S/PDIF) output on the
<br># nForce2 (hw:0,2)<br>#&nbsp;&nbsp;- This will accept audio input--regardless of rate--and <br># convert to the rate required for the S/PDIF hardware<br># (in this case 48000Hz)<br>pcm.digital {<br>type plug<br>slave.pcm &quot;digital-hw&quot;
<br>}<br><br># Control device (mixer, etc.) for the nForce2 card<br>ctl.digital {<br>type hw<br>card 0<br>}<br><br># Alias for mixed (rate-converted) digital (S/PDIF) output on the<br># nForce2/4 (hw:0,2)<br>#&nbsp;&nbsp;- This will accept audio input--regardless of rate--and
<br># convert to the rate required for the S/PDIF hardware <br># (in this case 48000Hz)<br>pcm.mixed-digital {<br>type plug<br>slave.pcm &quot;dmix-digital&quot;<br>}<br><br># Control device (mixer, etc.) for the nForce2 card
<br>ctl.mixed-digital {<br>type hw<br>card 0<br>}<br><br># The following devices are not useful by themselves.&nbsp;&nbsp;They<br># require specific rates, channels, and formats.&nbsp;&nbsp;Therefore,<br># you probably do not want to use them directly.&nbsp;&nbsp;Instead use
<br># of of the devices defined above. <br><br># Alias for analog output on the nForce2 (hw:0,0)<br># Do not use this directly--it requires specific rate,<br># channels, and format<br>pcm.analog-hw {<br>type hw<br>card 0<br>
# The default value for device is 0, so no need to specify <br>}<br><br># Control device (mixer, etc.) for the nForce2/4 card<br>ctl.analog-hw {<br>type hw<br>card 0<br>}<br><br># Alias for digital (S/PDIF) output on the nForce2/4 (hw:0,2)
<br># Do not use this directly--it requires specific rate, <br># channels, and format<br>pcm.digital-hw {<br>type hw<br>card 0<br>device 4<br>}<br><br># Control device (mixer, etc.) for the nForce2/4 card<br>ctl.digital-hw
 {<br>type hw<br>card 0<br>}<br><br># Direct software mixing plugin for analog output on <br># the nForce2/4 (hw:0,0)<br># Do not use this directly--it requires specific rate,<br># channels, and format<br>pcm.dmix-analog {
<br>type dmix<br>ipc_key 1234<br>slave {<br>&nbsp;&nbsp;pcm &quot;analog-hw&quot;<br>&nbsp;&nbsp;period_time 0 <br>&nbsp;&nbsp;period_size 1024<br>&nbsp;&nbsp;buffer_size 4096<br>&nbsp;&nbsp;rate 48000<br>}<br>}<br><br># Control device (mixer, etc.) for the nForce2/4 card
<br>ctl.dmix-analog {<br>type hw<br>card 0<br>}<br><br># Direct software mixing plugin for digital (S/PDIF) output <br># on the nForce2/4 (hw:0,2)<br># Do not use this directly--it requires specific rate,<br># channels, and format
<br>pcm.dmix-digital {<br>type dmix<br>ipc_key 1235<br>slave {<br>&nbsp;&nbsp;pcm &quot;digital-hw&quot;<br>&nbsp;&nbsp;period_time 0 <br>&nbsp;&nbsp;period_size 1024<br>&nbsp;&nbsp;buffer_size 4096<br>&nbsp;&nbsp;rate 48000<br>}<br>}<br><br># Control device (mixer, etc.) for the nForce2/4 card
<br>ctl.dmix-digital {<br>type hw<br>card 0<br>}<br><br>________________________________<br><br>From: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users-bounces@mythtv.org" target="_blank">
mythtv-users-bounces@mythtv.org</a> on behalf of Jason Sharpe<br>Sent: Wed 11/2/2005 10:37 PM<br>To: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org 
</a><br>Subject: [mythtv-users] RE: nForce4 Audio on FC4,it plays some of the time....<br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ------------------------------<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message: 15<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: Wed, 2 Nov 2005 14:12:43 -0700<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; From: &quot;James C. Dastrup&quot; &lt; 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jc@dastrup.com" target="_blank">jc@dastrup.com</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject: RE: [mythtv-users] nForce4 Audio on FC4, it plays some of the<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time....
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To: &quot;Discussion about mythtv&quot; &lt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a> &lt;mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mythtv-users@mythtv.org" target="_blank">
mythtv-users@mythtv.org</a>&gt; &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message-ID: &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:3B588E7A10420448AE571D9E921247867346@foo.dastrup.com" target="_blank">3B588E7A10420448AE571D9E921247867346@foo.dastrup.com 
</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I had a very similar problem. I was finally able to figure out that KDE was messing with my alsa settings everytime it started, even when I told it not to. You can test this by opening up alsamixer and while your audio is playing, mess with the settings until you hear something.&nbsp;&nbsp;I solved this problem by simply putting a script in KDE's /.Autostart folder, so after KDE starts, my mixer settings go back to the way I want them.&nbsp;&nbsp;You can find more detail at 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.dastrup.com/template_mythtv.asp" target="_blank">http://www.dastrup.com/template_mythtv.asp</a> and look in the Audio section.<br><br><br>Thanks James for replying,
<br><br>I took your suggestions and tried messing with alsamixer while playing something, I never heard audio no matter what I tweaked. <br><br>I looked at your site and was going to look at your script and your .asoundrc, however I can't get to your FTP site. It just times out when I try to visit the FTP links. I tried from both work and home and I can't get to them. 
<br><br>The program that opens by default when I double click the .au file is &quot;Noatun&quot;. I can play the file all day long and it will sound just fine, however aplay still won't create audio.<br><br>Just for kicks I disabled the sound system in the KDE Control Center and rebooted, I was still able to play the sound from Noatun, but not with aplay. 
<br><br>Can you email me the scripts that you link to in the audio section of your website?<br><br>Thanks<br><br>Jason</blockquote></div>