WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Where are the sound modules?  (Read 1516 times)

Offline Mucke

  • Newbie
  • *
  • Posts: 31
Where are the sound modules?
« on: September 02, 2020, 02:41:13 AM »
Hello,

I've installed piCore test release 12 but also final release 11.
I have recognized that my soundcard is not recognized and listed by lsmod (dtoverlay is defined in config.txt)
A further exploration shows that there are no sound drivers in /lib/modules/xxx/kernel

Where are they? How to get them?
Thanks for some enlightenment.

aus9

  • Guest
Re: Where are the sound modules?
« Reply #1 on: September 02, 2020, 03:05:41 AM »
Quote
Where are they? How to get them?
Until you get a better reply, when you have the modules loaded you should see
Code: [Select]
lsmod | grep snd
snd_bcm2835            28672  0
snd_pcm                98304  1 snd_bcm2835
snd_timer              32768  1 snd_pcm
snd                    73728  3 snd_bcm2835,snd_pcm,snd_timer

but that bcm<number> relates to my RPi4.

so depending on your result for
Code: [Select]
uname -r
# RPi 4 gives 5.4.51-piCore-v7l+
you will probably need to download and then load alsa alsa-utils.  That loads a recursive dep of
alsa-modules-KERNEL.tcz

Now look at your Apps. If you see 2 alsa-modules*tcz then you need to download the one that matches your above kernel release number. For me I have
Code: [Select]
ls /usr/local/tce.installed/ | grep alsa
alsa
alsa-modules-5.4.51-piCore-v7l+
alsa-utils

If there are 2 alsa modules, there can be mixup and the explanation is explained for a different TCE but similar result here
http://forum.tinycorelinux.net/index.php/topic,24246.0.html

Good Luck

Offline Mucke

  • Newbie
  • *
  • Posts: 31
Re: Where are the sound modules? [Solved]
« Reply #2 on: September 02, 2020, 04:04:56 AM »
Thanks.
Downloading and installing alsa-modules-5.4.51-piCore-v7.tcz for PiCore12.0alpha1 does the trick.

Is there some documentation about the strategy of packing kernel modules into a tcz extension? This solution is not very obvious.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: Where are the sound modules?
« Reply #3 on: September 02, 2020, 05:24:45 AM »
We include as few as possible kernel modules in the rootfs to keep the image size small.  So really any added kernel function needs an extension.  Extensions are typically packed by function,  i.e. alsa, graphics, touchscreen......   Normally when looking for sound you would load alsa, when you load alsa.tcz, it would automatically grab the modules as a dependency.

tce-load -wi alsa.tcz

tce is an extension browser where you can search, it should become obvious if you do a search for alsa in the repo.

Offline Mucke

  • Newbie
  • *
  • Posts: 31
Re: Where are the sound modules?
« Reply #4 on: September 02, 2020, 06:19:31 AM »
Thanks. Ok, at least I have got it now  ;D