[LIVE] HOW-TO Install XBMC on Lucid Mini with PCM Multichannel and Nvidia 256.25

  Thread Rating:
  • 6 Votes - 4.83 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
thethirdnut Offline
Member+
Posts: 637
Joined: Jun 2010
Reputation: 19
Location: western Canada
Post: #311
No problem; glad it worked.
find quote
Roelio Offline
Member+
Posts: 210
Joined: May 2010
Reputation: 0
Post: #312
New quick install with latest drivers and features. (Dharma Beta 2)

Tested it last night on my R3610 and is absolutely amazing.

Thanks Myrison, Piethein and the developers!!

Media players: R3610 XBMC - Xtreamer 1.0 - Xtreamer SW - Ultra 2
LCD: Sony KDL-46HX920 - Receiver: Onkyo TX-R577 - Speakers: Mission e34 5.1 & MS10 - Remote: Harmony 1100
Router: Asus RT-N66U - NAS: eTRAY 4TB (SMB) - PC: Intel I7 @4.5 Ghz & HD7950 & 2x SSD & 6TB Sata2
find quote
Ja4220 Offline
Member
Posts: 51
Joined: Jun 2010
Reputation: 0
Post: #313
Hi guys.
Just wanted to say thanks! I have been struggling for a while trying to find a solution for the mapping problems I was having with 5.1 AAC movie files.
After reading through 32 pages of this thread last night I bit the bullet and decided to have a tinker.
I replaced my asound.conf with the file here and uploaded the HDA-Intel.conf which solved the mapping problem.
This was great but my Revo and the existing asound.conf was set up to output to both HDMI and Analog at the same time. (I have my Onkyo Amp running Zone2 speakers which require analog input)
So I went through and made the relevant changes to the ttables on that asound.conf, replaced the 7.1surround references in the HDA-Intel.conf to xbmc (which is the name of my device)
So this appears to have worked on all fronts as my outdoor speakers still work, and the dialogue of my 5.1 AAC movies is actually coming out of the centre speaker.

Here is a copy of the files in case any one else would like a similar set up.

Asound.conf.
Code:
# ---------------------------------------------------------------------
# Hardware - do not use directly
# ---------------------------------------------------------------------

pcm.analog-hw {
  type hw
  card 0
  device 0
}
ctl.analog-hw {
  type hw
  card 0
}

# ---------------------------------------------------------------------

pcm.digital-hw {
  type hw
  card 0
  device 3
}
ctl.digital-hw {
  type hw
  card 0
}

# -----------------------------------------------------------------------

#pcm.spdif-hw {
#    type hw
#    card 0
#    device 1
#}
#ctl.spdif-hw {
#    type hw
#    card 0
#}

# -------------------------------------------------------------------------

pcm.dmix-analog {
  type dmix
  ipc_key 1234
  slave {
    pcm "analog-hw"
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 48000
  }
}
ctl.dmix-analog {
  type hw
  card 0
}

# -------------------------------------------------------------------------

pcm.dmix-digital {
  type dmix
  ipc_key 1235
  slave {
    pcm "digital-hw"
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 48000
  }
}
ctl.dmix-digital {
  type hw
  card 0
}

# ---------------------------------------------------------------------------
# Interfaces to Use
# --------------------------------------------------------------------------
pcm.digital-pcm AC3encode

# --------------------------------------------------------------------------

pcm.analog {
  type plug
  slave.pcm "analog-hw"
  hint {
    show on
    description "Analog Output - Use analog outputs, converting samples, format, and rate as necessary."
  }
}
ctl.analog {
  type hw
  card 0
}

# -----------------------------------------------------------------------------

pcm.mixed-analog {
  type plug
  slave.pcm "dmix-analog"
  hint {
    show on
    description "Mixed Analog Output - Use analog outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds."
  }
}
ctl.mixed-analog {
  type hw
  card 0
}

# --------------------------------------------------------------------------------

pcm.digital {
  type plug
  slave.pcm "digital-hw"
  hint {
    show on
    description "Digital Output (HDMI) - Use digital outputs, converting samples, format, and rate as necessary."
  }
}
ctl.digital {
  type hw
  card 0
}

# ----------------------------------------------------------------------------------

pcm.mixed-digital {
  type plug
  slave.pcm "dmix-digital"
  hint {
    show on
    description "Mixed Digital Output - Use digital outputs, converting samples, format, and rate as necessary. Allows mixing with system sounds."
  }
}
ctl.mixed-digital {
  type hw
  card 0
}


pcm.AC3encode {
  type a52
  bitrate 448
  channels 6
}


# ---------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------

# provide a default -for system sounds ??
pcm.!default {
  type plug
  slave {
    pcm multi
    rate 48000
  }
  # Analog Output downmix to 2 channel
  ttable.0.0 1.0
  ttable.1.1 1.0
  ttable.2.0 0.7  
  ttable.3.1 0.7  
  ttable.4.0 0.7  
  ttable.4.1 0.7  
  ttable.5.0 0.5  
  ttable.5.1 0.5
  # HDMI 6 Channel
  ttable.0.2 1.0 # FL -> FL
  ttable.1.3 1.0 # FR -> FR
  ttable.2.6 1.0 # RL -> RL
  ttable.3.7 1.0 # RR -> RR
  ttable.4.4 1.0 # C -> C
  ttable.5.5 1.0 # LFE ->LFE
  # Sdif 6 Channel
  #ttable.0.8 1.0
  #ttable.1.9 1.0
  #ttable.2.10 1.0
  #ttable.3.11 1.0
  #ttable.4.12 1.0
  #ttable.5.13 1.0
}
ctl.!default {
  type hw
  card 0
}

pcm.xbmc {
  type plug
  slave {
    pcm multi
    rate 48000
    channels 8
  }
  # Analog Output downmix to 2 channel
  ttable.0.0 1.0
  ttable.1.1 1.0
  ttable.2.0 0.7  
  ttable.3.1 0.7  
  ttable.4.0 0.7  
  ttable.4.1 0.7  
  ttable.5.0 0.5  
  ttable.5.1 0.5
  # HDMI 6 Channel
  ttable.0.2 1.0 # FL -> FL
  ttable.1.3 1.0 # FR -> FR
  ttable.2.6 1.0 # RL -> RL
  ttable.3.7 1.0 # RR -> RR
  ttable.4.4 1.0 # C -> C
  ttable.5.5 1.0 # LFE ->LFE
  # Sdif 6 Channel
  #ttable.0.8 1.0
  #ttable.1.9 1.0
  #ttable.2.10 1.0
  #ttable.3.11 1.0
  #table.4.12 1.0
  #ttable.5.13 1.0
  hint {
    show on
    description "XBMC device for analog 2 channel and hdmi 6 channel - spdif ac3 upto 6 channels"
  }
}
ctl.xbmc {
  type hw
  card 0
}

pcm.multi {
  type multi
  slaves.a.pcm "analog-hw"
  slaves.a.channels 2
  slaves.b.pcm "digital-hw"
  slaves.b.channels 6
  #slaves.c.pcm "spdif-pcm"
  #slaves.c.channels 6
  bindings.0.slave a
  bindings.0.channel 0
  bindings.1.slave a
  bindings.1.channel 1
  #Hdmi Bindings 6 Channels
  bindings.2.slave b
  bindings.2.channel 0 # FL
  bindings.3.slave b
  bindings.3.channel 1 # FR
  bindings.4.slave b
  bindings.4.channel 2 # RL
  bindings.5.slave b
  bindings.5.channel 3 # RR
  bindings.6.slave b
  bindings.6.channel 4 # C
  bindings.7.slave b
  bindings.7.channel 5 # LFE
  #Spdif Bindings 6 Channels
#  bindings.8.slave c
# bindings.8.channel 0
  #bindings.9.slave c
  #bindings.9.channel 1
  #bindings.10.slave c
  #bindings.10.channel 2
  #bindings.11.slave c
  #bindings.11.channel 3
  #bindings.12.slave c
  #bindings.12.channel 4
  #bindings.13.slave c
  #bindings.13.channel 5
}
ctl.multi {
  type hw
  card 0
}

I was going to upload the HD-Intel.conf file as well but apparently my post is too long! All you need to do is find and replace in notepad.

Anyway I am not sure that all the coding is 100% right as I have no idea about linux so I have just tried to modify files I found through the forum.
I guess if anyone sees anything that is wrong please let me know.

Thanks again guys!
find quote
Flomaster Offline
Posting Freak
Posts: 1,293
Joined: Jun 2010
Reputation: 6
Location: East Texas
Post: #314
Ja4220, this asound.conf you posted gives your hdmi and analog at the same time? what is your audio output in xbmc HDMI or custom ?

in order for me to get audio to my zone two I have to change my Audio Output to custom plughw:0,0 I'd love not to have to change it to analog every time.

-=jason=-
find quote
Ja4220 Offline
Member
Posts: 51
Joined: Jun 2010
Reputation: 0
Post: #315
Hi Jason,
I have the following set in xbmc
audio output device is custom alsa:xbmc
Audio Passthrough is HDMI
Have DTS and AS3 ticked.
Works a charm. I originally got it from a thread you had been looking at
http://forum.xbmc.org/showthread.php?p=5...post599925
The only real issue (which I haven't checked since making these changes) is that 2.0 channel AAC etc plays strictly as 2 channel. Previously the Amp would play in 5.1 but I am assuming now it is receiving 6 channels, just that 4 of them have no signal.
So thats not too big of an issue.
See how you go.
Cheers
find quote
Ja4220 Offline
Member
Posts: 51
Joined: Jun 2010
Reputation: 0
Post: #316
Oh the only thing I am not so sure about (well thats not true. I'm not sure about most things I have done) but in the asound.conf there is a section on Bindings which I left untouched, as I am not sure what they are. So it is possible that they might need to be updated as well...
find quote
Ja4220 Offline
Member
Posts: 51
Joined: Jun 2010
Reputation: 0
Post: #317
Looks like I am back to the drawing board. Just discovered a new problem. MP3 soundtracks and music files won't play.
Give a failed to initialise error...
That causes a rather large problem hahaha
find quote
Ja4220 Offline
Member
Posts: 51
Joined: Jun 2010
Reputation: 0
Post: #318
Looks like I am back to the drawing board. Just discovered a new problem. MP3 soundtracks and music files won't play.
Give a failed to initialise error...
That causes a rather large problem hahaha
This was working prior to making these changes... Could it be something in the HD-Intel.conf
Hmmm I shall start tinkering....
Is that HD-Intel.conf file always present?
what would happen if I deleted it...
Edit:
Well it appears it is only some mp3's. Some of my movies are working but haven't found a music MP3 that works yet.
(This post was last modified: 2010-09-27 12:14 by Ja4220.)
find quote
Ja4220 Offline
Member
Posts: 51
Joined: Jun 2010
Reputation: 0
Post: #319
I think I have solved the problem.
I tried playing a variety of MP3 files with the debug log on. It turned out that the ones that were playing were 48000 kbps.
So I looked at the 2 files and saw all the references to rate 48000 in the asound.conf.
So I removed all of those and it started to work again. So i checked that zone 2 was working on all files simultaneously with the main room (i.e hdmi and analog output). Check!
Played a variety of MP3 files of varying bitrates. Check!
Played some 5.1 AAC files to check for correct speaker mapping. Check!
I don't have system sounds at the moment though as I commented out that section at some stage on the asound.conf and can't be bothered changing it back. And they were bugging me anyway.
But the strange thing is that I am now running the standard HDA-Intel.conf file (I got it off a Dharma Beta 2 install I had on an SD card to see if it had fixed the mapping issue) and it seems to be fine.. for now...
find quote
Flomaster Offline
Posting Freak
Posts: 1,293
Joined: Jun 2010
Reputation: 6
Location: East Texas
Post: #320
Ja4220,

are you saying that you just did like this

Code:
pcm.dmix-analog {
  type dmix
  ipc_key 1234
  slave {
    pcm "analog-hw"
    period_time 0
    period_size 1024
    buffer_size 4096
    #rate 48000

pcm.dmix-digital {
  type dmix
  ipc_key 1235
  slave {
    pcm "digital-hw"
    period_time 0
    period_size 1024
    buffer_size 4096
    #rate 48000

just put a # in front of every 4800 in the config file?

-=Jason=-
find quote
Post Reply