[LINUX] Problems switching from Analog to Digital over SPDIF?
#25
This will get spdif + hdmi audio working with dmix thus allowing crossfading in xbmc!! :-)

Works like a charm on Asrock ION 330HT system and is probably a starting point for non-ion systems.

save to /etc/asound.conf or .asoundrc

Code:
pcm.!default {
    type plug
    slave {
        pcm "both"
    }
}
pcm.both {
    type route
    slave {
        pcm multi
        channels 4
    }
    ttable.0.0 1.0
    ttable.1.1 1.0
    ttable.0.2 1.0
    ttable.1.3 1.0
}
pcm.multi {
    type multi
    slaves.a {
        pcm "dmixtv"
        channels 2
    }
    slaves.b {
        pcm "dmixrec"
        channels 2
    }
    bindings.0.slave a
    bindings.0.channel 0
    bindings.1.slave a
    bindings.1.channel 1
    bindings.2.slave b
    bindings.2.channel 0
    bindings.3.slave b
    bindings.3.channel 1
}
pcm.dmixtv {
    type dmix
    ipc_key 1024
    slave {
        pcm "tv"
        period_time 0
        period_size 1024
        buffer_size 8192
        rate 48000
     }
     bindings {
        0 0
        1 1
     }
}
pcm.dmixrec {
    type dmix
    ipc_key 1024
    slave {
        pcm "receiver"
        period_time 0
        period_size 1024
        buffer_size 8192
        rate 48000
     }
     bindings {
        0 0
        1 1
     }
}
pcm.tv {
    type hw
    card 0
    device 3
    channels 2
}
pcm.receiver {
    type hw
    card 0
    device 1
    channels 2
}

Hope this helped.
Reply


Messages In This Thread
[No subject] - by F3d0r - 2009-11-22, 09:32
[No subject] - by F3d0r - 2009-11-22, 09:59
[No subject] - by miseryshining - 2009-11-22, 16:42
[No subject] - by F3d0r - 2009-11-23, 19:48
[No subject] - by razo - 2009-11-23, 21:40
[No subject] - by F3d0r - 2009-11-23, 22:32
[No subject] - by miseryshining - 2009-11-24, 01:26
[No subject] - by F3d0r - 2009-11-24, 10:06
[No subject] - by dongioia - 2009-11-24, 10:41
[No subject] - by F3d0r - 2009-11-24, 10:51
[No subject] - by dongioia - 2009-11-24, 10:56
[No subject] - by dongioia - 2009-11-24, 20:23
[No subject] - by lloydsmart - 2009-11-28, 00:18
[No subject] - by remb0 - 2009-11-28, 01:22
[No subject] - by F3d0r - 2009-11-28, 10:07
[No subject] - by miseryshining - 2009-11-28, 12:07
[No subject] - by lloydsmart - 2009-11-29, 01:32
[No subject] - by bradford108 - 2009-11-30, 02:18
Excellent - by jonnybignote - 2010-01-07, 07:59
[No subject] - by Asswipe44 - 2010-01-07, 11:39
[No subject] - by erhnam - 2010-02-02, 12:20
[No subject] - by F3d0r - 2010-02-02, 15:36
[No subject] - by fidoboy - 2010-02-03, 03:08
get crossfade working on both spdif and hdmi - by josbeir - 2010-02-07, 15:49
[No subject] - by erhnam - 2010-02-07, 16:27
[No subject] - by fidoboy - 2010-02-07, 16:39
[No subject] - by josbeir - 2010-02-09, 02:20
[No subject] - by finite3 - 2010-02-09, 10:09
[No subject] - by josbeir - 2010-02-09, 10:32
[No subject] - by erhnam - 2010-02-09, 17:00


Logout Mark Read Team Forum Stats Members Help
[LINUX] Problems switching from Analog to Digital over SPDIF?1
This forum uses Lukasz Tkacz MyBB addons.