Powered By Blogger

Dienstag, 21. Februar 2012

Lenovo Y560 Audio für gleichzeitiges abspielen unter Linux (ALSA-dmix)

So nach langen testen hab ich nun endlich den alsa dmix für den Lenovo hin bekommen. Vorher ging das "out of the box" also ohne das man was einstellen musste. Laut vieler Alsa-Tipps ist das wohl automatisch. warum das diesmal nicht ging weiß ich nicht.

[root etc]# aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: Intel [HDA Intel], Gerät 0: ALC272 Analog [ALC272 Analog]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 0: Intel [HDA Intel], Gerät 1: ALC272 Digital [ALC272 Digital]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 1: Generic [HD-Audio Generic], Gerät 3: HDMI 0 [HDMI 0]
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0

Meine Standard Soundkarte ist der erste Eintrag.
Daher kann man die alsa.conf Sachen für card 0 device 0 übernehmen:

# the sound card
pcm.real {
  type hw
  card 0
  device 0
}

# the ipc stuff is needed for permissions, etc.
pcm.dmixer {
  type dmix
  ipc_key 1024
  ipc_perm 0666
  slave.pcm "real"
  slave {
    period_time 0
    period_size 1024
    buffer_size 8192
    rate 44100 
  }
  bindings {
    0 0
    1 1
  }
}

ctl.dmixer {
  type hw
  card 0
  }

So jetzt geht bei mir Kaffeine VLC Mp3 gleichzeitig ;)


WSco

geklaut bei: Gentoo Forum Multimedia 
und bei Alsa-Project Asoundrc