Ich habe auf einem Raspberry Pi 2 das OSMC aufgesetzt.
Dazu habe ich noch den shairplay-sync installiert.
Nun möchte ich, dass beide auf die am Raspi installierte Terratec Aureon dual USB zugreifen können.
So ohne weiteres geht das allerdings nicht.
Wenn kodi startet, nimmt er shairplay das Device weg, wenn ich shairplay restarte nimmt er es dem kodi offenbar wieder weg.
Ich habe erst einmal in der .asoundrc die USB Karte zum default gemacht:
Das hat funktioniert, amixer zeigt mir:
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 151
Mono:
Front Left: Playback 79 [52%] [-13.56dB] [on]
Front Right: Playback 79 [52%] [-13.56dB] [on]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Limits: Playback 0 - 32 Capture 0 - 16
Mono: Playback 23 [72%] [34.36dB] [off] Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'Auto Gain Control',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Alles anzeigen
Nun habe ich eine asound.conf angelegt:
In shairplay.conf ist das Ausgabegerät so aktiviert:
// These are parameters for the "alsa" audio back end, the only back end that supports synchronised audio.
alsa =
{
output_device = "test"; // the name of the alsa output device. Use "alsamixer" or "aplay" to find out the names of devices, mixers, etc.
// mixer_control_name = "Speaker"; // the name of the mixer to use to adjust output volume. If not specified, volume in adjusted in software.
// mixer_device = "default"; // the mixer_device default is whatever the output_device is. Normally you wouldn't have to use this.
// audio_backend_latency_offset = 0; // Set this offset to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -4410.
// audio_backend_buffer_desired_length = 6615; // If set too small, buffer underflow occurs on low-powered machines. Too long and the response times with software mixer become annoying.
// disable_synchronization = "no"; // Set to "yes" to disable synchronization. Default is "no".
// period_size = <number>; // Use this optional advanced setting to set the alsa period size near to this value
// buffer_size = <number>; // Use this optional advanced setting to set the alsa buffer size near to this value
};
Alles anzeigen
Der Witz ist, ich bekomme nun unter KODI 2x die analoge Ausgabe der Aureon gelistet.
Funktionieren beide, shairplay wird allerdings blockiert.
in der Konfig steht:
also wohl auch OK.
Wenn Kodi in den Standby geht, kommt irgendwann der Ton.
Wenn ich Kodi wieder reaktiviere, springt er auf HDMI-Sound um.
Es muss doch irgendwie gehen, dass Kodi auf den Mixer zugreift?
dmix scheint ja grundsätzlich zu funktionieren, aber Kodi will immer gleich die ganze Karte. :-/