cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
270 stars 49 forks source link

HDMI sound through SDL not working #293

Open do-ra-gui opened 10 years ago

do-ra-gui commented 10 years ago

Hi!

I have a cubieboard 2 with the latest cubian release. I am having some problems to get sound through HDMI on my SDL app.

HDMI sound is working. I can hear this: aplay -D plughw:1,0 /usr/share/sounds/alsa/Front_Right.wav

The only way to get the sound working is by using cubiuntu, where sound through HDMI works fine with my SDL app. This app has been tested too in raspberry pi and sound is ok.

I have also made an hybrid image (cubian/cubiuntu) with no success (moving /lib/modules /lib/firmware script.bin and uenv from cubiuntu to cubian).

I need to use gcc++ 4.7, so I would like to get sound working on cubian.

I have made all the test and changes found in Internet to force HDMI audio: http://superuser.com/questions/735064/poor-sound-using-hdmi-on-cubieboard-cubian-os (it doesn´t change anything. sound not working) creating an ~/.asoundrc (it doesn´t change anything. sound not working) ...

I would like some help on this. Am I missing something? Some modules? Some configuration changes?

Thanks in advance.

vovcacik commented 9 years ago

I got this in ~/.asoundrc:

pcm.!default {
        type hw
        card 1
}

ctl.!default {
        type hw
        card 1
}

and speaker-test -twav -c2 sends audio over the HDMI.