Archiv > Development

Alsa

(1/4) > >>

clausmuus:
Hi,

ich mal wieder am alsa Addon geschraubt. Wenn meine Annahmen zutreffen und ich den Kram halbwegs verstanden habe, sollten nun automatisch nicht nur alle Ausgänge auf 100% stehen und unmuted sein und alle Eingänge muted, sondern oben drein auch noch alle vorhanden Soundkarten und alle Ausgänge aktiviert sein.
Es sollte nun also Analog, spdif und hdmi aktiv sein. Ein kleiner Nebeneffekt ist leider, dass alle Ausgänge nur Stereo ausgeben.
In den Settings lässt sich gezielt ein Ausgabedevice auswählen, das dann auch Mehrkanalton ausgeben kann.
Diese Einstellungen werden in der /etc/asound.conf vorgenommen.

Bitte mal testen ob das funktioniert. Es wäre auch super wenn jemand der mehr als eine Soundkarte eingebaut hat, mal testen kann ob alle gleichzeitig aktiv sind. Falls nicht bräuchte ich die /etc/asound.conf und die Ausgabe von "aplay -l"

Claus

MarMic:
mehrer sound karten heisst auch onbaord intel + nvidia graka hdmi?

=> das hat noch nie ohne weiteres geklappt da bin ich mal gespannt

iso schon auf dem server?

greetz

clausmuus:
Ja, auch solche Kombination. ISO ist online.

Claus

MarMic:
ein satz mit x das war wohl nix :-(

hmm timing probleme wieder?!

erster boot:

found hardware HDA-INTEL REaltek ALC888 .......
hardware is initialized using a geric method

da bleibts hängen leider kein netzwerk und ssh allerdings x ist da :-) kann schonmal xterm öffnen

zweiter boot:

bootet zum MLD prompt aber x kommt nicht hoch!
speaker-test geht nicht! und start xorg liefert vdr aber eben ohne sound

dritter boot folgt:

dritter boot -> nun startets sauber durch! weiterhin kein ton

--- Code: ---MLD> speaker-test

speaker-test 1.0.23

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
^C
MLD>


MLD> cat /etc/asound.conf
pcm.!default {
  type plug
  slave {
    pcm "all"
  }
}
pcm.all {
  type route
  slave {
    pcm multi
    channels 12
  }
  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
  ttable.0.6 1.0
  ttable.1.7 1.0
  ttable.0.8 1.0
  ttable.1.9 1.0
  ttable.0.10 1.0
  ttable.1.11 1.0
}
pcm.multi {
  type multi
  slaves.a {
    pcm "a"
    channels 2
  }
  slaves.b {
    pcm "b"
    channels 2
  }
  slaves.c {
    pcm "c"
    channels 2
  }
  slaves.d {
    pcm "d"
    channels 2
  }
  slaves.e {
    pcm "e"
    channels 2
  }
  slaves.f {
    pcm "f"
    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
  bindings.6.slave d
  bindings.6.channel 0
  bindings.7.slave d
  bindings.7.channel 1
  bindings.8.slave e
  bindings.8.channel 0
  bindings.9.slave e
  bindings.9.channel 1
  bindings.10.slave f
  bindings.10.channel 0
  bindings.11.slave f
  bindings.11.channel 1
}
pcm.a {
  type hw
  card 0
  device 0
  channels 2
}
pcm.b {
  type hw
  card 0
  device 1
  channels 2
}
pcm.c {
  type hw
  card 1
  device 3
  channels 2
}
pcm.d {
  type hw
  card 1
  device 7
  channels 2
}
pcm.e {
  type hw
  card 1
  device 8
  channels 2
}
pcm.f {
  type hw
  card 1
  device 9
  channels 2
}
MLD>


MLD> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
MLD>


MLD> aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default
all
multi
front:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC888 Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Direct sample mixing device
dmix:CARD=Intel,DEV=1
    HDA Intel, ALC888 Digital
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
    HDA Intel, ALC888 Digital
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
    HDA Intel, ALC888 Digital
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
    HDA Intel, ALC888 Digital
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, NVIDIA HDMI
    Direct sample mixing device
dmix:CARD=NVidia,DEV=8
    HDA NVidia, NVIDIA HDMI
    Direct sample mixing device
dmix:CARD=NVidia,DEV=9
    HDA NVidia, NVIDIA HDMI
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
    HDA NVidia, NVIDIA HDMI
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
    HDA NVidia, NVIDIA HDMI
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
    HDA NVidia, NVIDIA HDMI
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
    HDA NVidia, NVIDIA HDMI
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
    HDA NVidia, NVIDIA HDMI
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
    HDA NVidia, NVIDIA HDMI
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, NVIDIA HDMI
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
    HDA NVidia, NVIDIA HDMI
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
    HDA NVidia, NVIDIA HDMI
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
    HDA NVidia, NVIDIA HDMI
    Hardware device with all software conversions
MLD>


MLD> dmesg | grep alsa
aufs test_add:253:mount[2507]: uid/gid/perm /var/spool/apm.mnt/alsa 0/0/0777, 0/0/01777
MLD>



--- End code ---

 

clausmuus:
Irendwie klingt das für mich nach nem misslungenen CD-Brand,...

sag mal, lässt sich normalerweise speakertest ausführen, wenn VDR läuft?

Du kannst ganz einfach testen ob es an meiner Erweiterung liegt, indem Du die Datei /etc/asound.conf löscht und dann nochmal den speakertest versuchst.
Und dann kannst Du noch im OSD oder Webfrontend einen einzelnen Ausgang auswählen, was auf jedenfall funktionieren sollte (eventuell ist anschließend ein drücken der ESC Taste angesagt).

Was bei Dir eventuell Probleme bereitet ist, dass ich alle HDMI devices gleichzeitig aktiviert habe.

Claus

Navigation

[0] Message Index

[#] Next page

Go to full version