Hi,
My use case is to provide shared access to a single card for both ALSA
and Pulse/Phonon.
I am using an .asoundrc with a dmix device on top of the hw card.
I then set the default to that mix device and I let pulseaudio (ideally)
use ALSA as the default sink by setting default-sink to
alsa_output.default.
This doesn't work really well, that is to say, it works in KDE after I
manually kill the pulseaudio daemon once.
At that point all the devices disappear from the Phonon setup list and
are replaced by "PulseAudio sound server".
If I then start my ALSA-only application, and then try to play with e.g.
Clementine, it will halt the first time, and then when I click play
again it will start playing.
So it's not very ideal, KDE messes with the device and I sometimes also
have to run pactl set-default-sink alsa_output.default again I think.
Is there any way to make this work?
-------------------------
I also tried defining a "softvol" device (with a new "control" device
for the card) and it works through alsamixer but doesn't show up
anywhere else.
However after the first reboot I had *NO VOLUME* whatsoever in command
line applications like "oggplay", even though my ALSA-only applicaiton
still worked and I think even KDE still worked but not sure.
Then after trying to wipe the control device and rebooting (which
failed) I suddenly do have sound again in oggplay.
So at this point I have another soft-volume controller that I can use
through alsamixer but it has no other benefits thus far.
And I fear reboot again.
--------------------------
So I wonder about two things:
- how can I ensure sound will work in KDE without having to kill
pulseaudio and dealing with that 'staggering' startup in the KDE playing
applications?
- how can I get something about my new "dmix" device to show up in KDE?
Third:
- can I use ALSA to multiplex the output over multiple devices?
Regards.
----------------------------------------------------------
pulse alsa module is loaded but its !default statements
have been disabled
No other changes to /usr/share/alsa/alsa.conf
----------------------------------------------------------
pcm.card {
type hw
card CMI8762
device 2
hint.show on
hint.description "Card"
}
ctl.card {
type hw
card CMI8762
}
pcm.mix {
type dmix
ipc_key 1024
slave.pcm card
slave.rate 48000
bindings.0 0
bindings.1 1
hint.show on
hint.description "My Mix Device"
}
pcm.softvolPhonon {
type softvol
slave.pcm "mix"
control {
name "Phonon"
card CMI8762
}
min_dB -51.0
max_dB 0.0
resolution 100
hint {
show on
description "My Soundcard with extra Volume Control"
}
}
pcm.!default {
type plug
slave.pcm softvolPhonon
}
ctl.!default card
------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user