Linux Could not initialize audio device
#1
Sad 
Hi all,

I am using opdenkamps Eden-pvr version of xbmc together with xvdr.
When I select Sync Audio and Video I am getting above error when switching channels in live tv (not every time, but most times). After the error occured I have to restart xbmc to get audio to work.

When I turn off AV Sync everything is working fine. Unfortunately the video is running smoother when AV Sync is turned on, so I would like to use this setting. Anyone is experiencing the same?
Any idea why this happens?

Kind Regards,
Jobe
Reply
#2
looks like I found a solution

Here is my hw configuration:
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and here is my asound.conf enabling all 3 devices:
Code:
pcm.!default {
        type plug
        slave {
                pcm "both"
        }
}

pcm.both {
        type route
        slave {
                pcm multi
                channels 6
        }

        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
        ttable.0.4 1.0
        ttable.1.5 1.0
}

pcm.multi {
        type multi
        slaves.a {
                pcm "tv"
                channels 2
        }

        slaves.b {
                pcm "receiver"
                channels 2
        }

    slaves.c {
        pcm "analog"
        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
    bindings.4.slave c
    bindings.4.channel 0
    bindings.5.slave c
    bindings.5.channel 1
}

pcm.tv {
        type dmix
    ipc_key 1024
    slave
    {
        pcm "hw:0,3"
        period_time 0
        period_size 1024
        buffer_size 4096
        rate 48000
        channels 2
    }
}

pcm.receiver {
type dmix
        ipc_key 1025
        slave
        {
                pcm "hw:0,1"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 48000
                channels 2
        }
}

pcm.analog {
type dmix
        ipc_key 1026
        slave
        {
                pcm "hw:0,0"
                period_time 0
                period_size 1024
                buffer_size 4096
                rate 48000
                channels 2
        }
}

and finally I changed
Code:
<audiodevice>default</audiodevice>
to
Code:
<audiodevice>alsa:default</audiodevice>
in guisettings.xml.

Not sure if everything is really necessary, right now I do not have any problems with initializing the audio device (keep my fingers crossed).

Kind Regards,
Jobe
And just for completeness, my old asound.conf (NOT WORKING!!)
Code:
pcm.!default {
    type plug
    slave {
    pcm multi
    rate 48000
         }
         ttable.0.0 1.0
         ttable.1.1 1.0
         ttable.0.2 1.0
         ttable.1.3 1.0
}
#ctl.!default hdmiout

pcm.analog {
        type hw
        card 0
        device 0
}

ctl.analog {
        type hw
        card 0
        device 0
}

pcm.hdmiout {
        type hw
        card 0
        device 3
}

ctl.hdmiout {
        type hw
        card 0
        device 3
}

pcm.multi {
        type multi
        slaves.a.pcm "hdmiout"
        slaves.a.channels 2
        slaves.b.pcm "analog"
        slaves.b.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
}
Reply

Logout Mark Read Team Forum Stats Members Help
Could not initialize audio device0