I have a strange problem. I've connected a TV to my graphics card using the HDMI port and then I wanted to watch some video using a web browser (HTML5, not flash) on that TV with the sound going through the TV speakers, but when playing the video, the sound was played back on the speakers connected to my sound card. So I opened the KDE SystemSettings, went to the Multimedia section (Phonon - Audio and Video) and moved the device that corresponds to the graphics card's audio device right to the very top of the devices list. Clicked 'Apply', went back to the web browser, clicked 'Play' again, and… no change – the sound is still being played back through the regular sound card… So, went back to the SystemSettings, and tested the aforementioned device with the "play" button visible below the list – the test sound plays through the sound card speakers… Then I started testing every single device listed, but the sound was being played back either from the sound card speakers or not at all.
So I searched the Web and found a suggestion to do:
Code: Select all
aplay -l
Code: Select all
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
A quick look at the list of audio devices in SystemSettings, and the tooltip displayed above the device I moved to the top says
Code: Select all
alsa: dmix:CARD=HDMI,DEV=3
Let's do the following, then:
Code: Select all
aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Right.wav
So the problem here seems to be that when the sound is being played back through KDE (or more specifically – phonon?), then the output audio device setting is ignored and it is being directed to the default audio device. When trying to play the sound through an application that lets you select the audio device directly, then everything works correctly.
I've searched the Web to find a solution, and even found that some people experienced similar problems, but no solution whatsoever.
I'm aware that this is most probably a bug in KDE/phonon, but still I'm asking here, on the Debian forum, for a reason – I also have another system running Kubuntu, and there the problem doesn't occur. This means that this problem is distro-specific. Perhaps in Kubuntu the problem doesn't occur because there, in KDE's SystemSettings->Multimedia section, there is a third tab (next to "Device preference" and "Backend") called "Audio Hardware Setup", where I can explicitly select the output audio device for KDE/phonon (rather than a "preferred device" for a selected playback category, like "Music", "Video", "Notifications", etc.). Here, in Debian's KDE installation, this one is missing (and I don't remember it ever being here in Debian).
So here come the questions I'm seeking answers for:
1. Why the problem is occurring at all? (seriously, I'm really curious)
2. How to solve it? (answers like "use another software/hardware/distro/whatever" are extremely unwelcome! If there is no solution for KDE and/or Debian, then don't be afraid to admit it)
3. Why in Debian the "Audio Hardware Setup" tab in SystemSettings is missing and what to do to have it there? Is it something Ubuntu-specific? Or maybe I'm missing something in my Debian installation? Or is it because currently in Debian testing the KDE desktop is a mix of KDE4 and KDE5?
I'm using the latest Debian testing/stretch, my graphics card is AMD and I'm using the radeon driver:
Code: Select all
Linux localhost 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux
phonon: 4:4.9.0-4
xserver-xorg-video-radeon: 1:7.7.0-1