Howto: ASRock ION 330HT - XBMC Live Dharma Beta4 (remote/audio)
#1
Hi guys,

A short guide on how to get the remote & audio to work after a XBMC Live Dharma Beta 4 install on your ASRock ION 330HT within 5 minutes:

SSH into your asrock and execute the following commands after having installed XBMC Live to your HDD:

1. Remote:
Code:
wget "http://europe.asrock.com/downloadsite/drivers/Nettop/Ubuntu/IR(10.04)2.6.32-25.zip"
unzip IR\(10.04\)2.6.32-25.zip
sudo dpkg -i lirc-nct677x-1.0.4-ubuntu10.04_kernel2.6.32-25.deb

2. Audio:
Code:
sudo wget http://pastebin.com/download.php?i=f5f9654bb -O /etc/asound.conf
sudo wget http://pastebin.com/download.php?i=f2e38265 -O /usr/share/alsa/cards/HDA-Intel.conf

In XBMC :
- use Audio Mixer add-on (Progams > Program Add-ons > Audio-mixer) and un-mute 'IEC958,1'
- Change both audio output devices (System > Settings > System> Audi Output)to "hdmi"

For reference (should the pastebin links timeout at some point) (credit goes to Reolio):

/etc/asound.conf:
Code:
pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}

pcm.!remap-surround71 {
  type route
  slave.pcm "hw:0,3"
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
    6.6= 1
    7.7= 1
  }
}

/usr/share/alsa/cards/HDA-Intel.conf
Code:
#
# Configuration for the Intel HD audio (ICH6/ICH7)
#

<confdir:pcm/front.conf>

HDA-Intel.pcm.front.0 {
    @args [ CARD ]
    @args.CARD {
        type string
    }
    type softvol
    slave.pcm  "remap-surround71"
        
    control {
        name "PCM Playback Volume"
        card $CARD
    }
}    

# default with dmix+softvol & dsnoop
HDA-Intel.pcm.default {
    @args [ CARD ]
    @args.CARD {
        type string
    }

       type asym
        playback.pcm {
                type plug
                slave.pcm {
                        type softvol
                        slave.pcm "remap-surround71"
                        control {
                                name "PCM Playback Volume"
                                card $CARD
                        }
                }
        }

    capture.pcm {
        type plug
        slave.pcm {
            type softvol
            slave.pcm {
                @func concat
                strings [ "dsnoop:" $CARD ]
            }
            control {
                name "Digital Capture Volume"
                card $CARD
            }
            min_dB -30.0
            max_dB 30.0
            resolution 121
        }
        # to avoid possible phase inversions with digital mics
        route_policy copy
    }
    hint.device 0
}

<confdir:pcm/surround40.conf>
<confdir:pcm/surround41.conf>
<confdir:pcm/surround50.conf>
<confdir:pcm/surround51.conf>
<confdir:pcm/surround71.conf>

HDA-Intel.pcm.surround40.0 cards.HDA-Intel.pcm.front.0
HDA-Intel.pcm.surround51.0 cards.HDA-Intel.pcm.front.0
HDA-Intel.pcm.surround71.0 cards.HDA-Intel.pcm.front.0

<confdir:pcm/iec958.conf>

HDA-Intel.pcm.iec958.0 {
    @args [ CARD AES0 AES1 AES2 AES3 ]
    @args.CARD {
        type string
    }
    @args.AES0 {
        type integer
    }
    @args.AES1 {
        type integer
    }
    @args.AES2 {
        type integer
    }
    @args.AES3 {
        type integer
    }
    type asym
    playback.pcm {
        type hooks
        slave.pcm {
            type hw
            card $CARD
            device 1
        }
        hooks.0 {
            type ctl_elems
            hook_args [
            {
                name "IEC958 Playback Default"
                lock true
                preserve true
                value [ $AES0 $AES1 $AES2 $AES3 ]
            }
            {
                name "IEC958 Playback Switch"
                lock true
                preserve true
                value true
            }
            ]
        }
    }
    capture.pcm {
        type hooks
        slave.pcm {
            type hw
            card $CARD
            device 1
        }
        hooks.0 {
            type ctl_elems
            hook_args [
            {
                name "IEC958 Capture Switch"
                lock true
                preserve true
                value true
            }
            ]
        }
    }
    hint.device 1
}

<confdir:pcm/hdmi.conf>

HDA-Intel.pcm.hdmi.0 {
    @args [ CARD AES0 AES1 AES2 AES3 ]
    @args.CARD {
        type string
    }
    @args.AES0 {
        type integer
    }
    @args.AES1 {
        type integer
    }
    @args.AES2 {
        type integer
    }
    @args.AES3 {
        type integer
    }
    type hooks
    slave.pcm {
        type plug
        slave.pcm "remap-surround71"
    }
    hooks.0 {
        type ctl_elems
        hook_args [
        {
            name "IEC958 Playback Default"
            lock true
            preserve true
            value [ $AES0 $AES1 $AES2 $AES3 ]
        }
        {
            name "IEC958 Playback Switch"
            lock true
            preserve true
            value true
        }
        ]
    }
    hint.device 3
}

<confdir:pcm/modem.conf>

HDA-Intel.pcm.modem.0 {
    @args [ CARD ]
    @args.CARD {
        type string
    }
    type hw
    card $CARD
    device 6
    hint.show off
}

Have fun
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply


Messages In This Thread
Howto: ASRock ION 330HT - XBMC Live Dharma Beta4 (remote/audio) - by DonJ - 2010-11-01, 10:52
[No subject] - by Tuckr - 2010-11-01, 15:49
[No subject] - by nelander - 2010-11-01, 22:18
[No subject] - by smithr99 - 2010-11-09, 01:52
[No subject] - by Phorte - 2010-11-09, 04:07
[No subject] - by cosmicr - 2010-11-09, 06:46
[No subject] - by erhnam - 2010-11-09, 14:47
[No subject] - by vendril - 2010-11-11, 17:30
[No subject] - by felizycontento - 2011-02-28, 20:50
[No subject] - by felizycontento - 2011-02-28, 21:40
[No subject] - by felizycontento - 2011-03-01, 17:49
[No subject] - by felizycontento - 2011-03-01, 17:49
[No subject] - by Rooster242 - 2011-03-02, 23:49
[No subject] - by felizycontento - 2011-03-03, 00:33
Logout Mark Read Team Forum Stats Members Help
Howto: ASRock ION 330HT - XBMC Live Dharma Beta4 (remote/audio)0