RobertCNelson / bb-kernel

MIT License
130 stars 102 forks source link

Audio over HDMI #44

Open LucaVs opened 7 years ago

LucaVs commented 7 years ago

I'm using the last image for my BBB: bone-debian-8.7-iot-armhf-2017-03-19-4gb.img.xz

I need to play audio to an HDMI connected TV but is doesn't works. I'm trying with aplay command but it doesn't find audio device:

root@beaglebone:~# aplay -l
aplay: device_list:268: no soundcards found...

I'm also using kernel 4.4.57-bone17 to enable SGX.

Is there a way to enable Audio over HDMI?

Thanks

RobertCNelson commented 7 years ago

@LucaVs this went mainline around v4.9.x/v4.10.x

LucaVs commented 7 years ago

So you mean I must wait for next release ?

RobertCNelson commented 7 years ago

@LucaVs no use whatever kernel you want.

HDMI-AUDIO works in:

v4.4.x-ti

v4.9.x-ti

v4.9.x-bone (i think) v4.10.x-bone (for sure) v4.11.x-bone (for sure)

Regards,

LucaVs commented 7 years ago

@RobertCNelson This way I can't use SGX. Am I right?

RobertCNelson commented 7 years ago

Are you "really" using SGX, or just mesa's software implementation?

Regards,

LucaVs commented 7 years ago

I'm using SGX driver as described here: http://elinux.org/BeagleBoardDebian#SGX_Drivers . I needed it to build Qt 5.6 for my BBB with OPENGL support (eglfs platform). But following the instruction I installed 4.4.57-bone17 on my BBB.

RobertCNelson commented 7 years ago

@LucaVs please test the am33x-v4.11 branch of bb-kernel

kernel: https://github.com/RobertCNelson/bb-kernel/commit/c744e8fe0dc8c4006866e4b2658cd0d8101102c9

just two sdk patches: https://github.com/RobertCNelson/ti-sdk-pvr/commit/454c1fead46e9e1248a5b66208dc61f3054215d7 https://github.com/RobertCNelson/ti-sdk-pvr/commit/73df9f709ece288737261be4f660ba2952eb896e

Regards,

LucaVs commented 7 years ago

Last time I update kernel using:

./update_kernel.sh --bone-kernel --lts-4_4

How should I update to am33x-v4.11 ?

RobertCNelson commented 7 years ago

From teh bb-kernel repl, am33x-v4.11 branch:

./build_deb.sh

Copy .deb to target: sudo dpkg -i .deb

Regards

LucaVs commented 7 years ago

Ok, do I need to enable/disable some module in kernel configuration before building or I can get the default?

LucaVs commented 7 years ago

I built and installed 4.11. BBB boot (no blue led when running) but now I can't load omaplfb module.

RobertCNelson commented 7 years ago

You need to build them:

bb-kernel$ ./sgx_build_modules.sh
LucaVs commented 7 years ago

Just installed 4.11 and rebooted. It seems to works. "aplay -l" can find an audio device. SGX works but I must start sgx-startup.sh by hand after boot. It can't load at boot time even if I'm using the solution we talked about here: https://github.com/RobertCNelson/bb-kernel/issues/40

Another issue I found is that when rebooting by terminal sometimes it doesn't start and I need to unplug power.

RobertCNelson commented 7 years ago

@LucaVs thanks for testing!

Just pushed out an official build, so the kernel and sgx modules will be in the apt repo this afternoon.

I've noticed the reboot lockup too, still testing..

Regards,

LucaVs commented 7 years ago

Will it be possible to upgrade kernel and install SGX modules using apt-get without following http://elinux.org/BeagleBoardDebian#SGX_Drivers ?

RobertCNelson commented 7 years ago

Once you create and install the userspace lib's... both the kernel and sgx modules are in apt to precise do that. ;)

RobertCNelson commented 7 years ago

and i added it back to the update_kernel.sh script:

https://github.com/RobertCNelson/boot-scripts/commit/8557455e9fe4fba4e6da108c991344806595783a

cd /opt/scripts/tools/
git pull
sudo ./update_kernel.sh --bone-kernel --testing

(well tomorrow anyways, as --testing=[4.10.13-bone1], need to wait till the builders finish)

http://gfnd.rcn-ee.org:81/farm/deb/

Regards,

LucaVs commented 7 years ago

Thanks, I'll probably try next time.