On Thu, Feb 7, 2013 at 9:16 AM, Cédric Girard <girard.cedric@gmail.com>wrote:
On Wed, Feb 6, 2013 at 7:48 PM, Mike Cloaked wrote:
Also I can get sound coming out of the monitor speakers with:
aplay -D plughw:0,7 /usr/share/sounds/alsa/Front_Center.wav
However if I run chrome and play a flash video the video I can see fine - but there is no sound.
I have read all the available arch wiki articles about hdmi sound including that at
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#HDMI_...
as soon as I make a ~/.asound file with either of the suggested contents KDE immediately tells me that the hdmi sound for that output has been selected to be removed and offers me to make that permanent!
I would suggest first to try without KDE on the way. The solution provided on the wiki should definitively work. In your case, the device number should be 7. Once setup, make new tests with speaker-test or aplay, without setting the device you want to use (what you try to do is to setup your hdmi device to be the default). Then, only, add KDE on the top. You will probably need to reconfigure kmix as your devices have changed.
I have already used kmix to select the 0,7 HDMI device and all channels work as expected in the test from kmix within KDE. I think the problem stems from the alsa default going to a different output channel and I could not fathom out from the wiki how to change alsa to use the correct channel apart from the suggestion to add a few lines to ~/.asound but when I used either of the two suggested sets of contents for that file then KDE became unhappy - so if there is a way to get alsa to default to the hdmi output channel (0,7) in a different way then that would likely give me a working solution. It "should" be possible but I don't know enough about the intricacies of alsa to know how to do it - and it seems the wiki does not contain enough info for me to work towards that (or I am too stupid to understand the wiki!)
I could try pulseaudio - and if I can't get a solution with pure alsa then I will go that route - I have used pavucontrol in the past to run sound - but it is still a challenge to solve this within alsa - and it "should" surely be possible? -- mike c