LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 06-12-2023, 12:59 PM   #1
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
SND_USB_AUDIO


In slackware-aarch64:

Code:
root@papaz:/boot >>> grep USB config-armv8-6.1.21 | grep SND
CONFIG_SND_USB=y
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_UA101 is not set
# CONFIG_SND_USB_CAIAQ is not set
# CONFIG_SND_USB_6FIRE is not set
# CONFIG_SND_USB_HIFACE is not set
# CONFIG_SND_USB_POD is not set
# CONFIG_SND_USB_PODHD is not set
# CONFIG_SND_USB_TONEPORT is not set
# CONFIG_SND_USB_VARIAX is not set
My usb headset wants CONFIG_SND_USB_AUDIO to be set.

Trying to understand the way slackware-aarch64 handles initrd:

If I add

Code:
modprobe SND_USB_AUDIO
to /boot/local/load_kernel_modules.post

is the initrd system going to go to the kernel source and compile that module?
 
Old 06-12-2023, 03:06 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,423

Rep: Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339Reputation: 2339
No. The OS is not clairvoyant, and that sort of "I know better than you" by the OS is not the Slackware way..

If snd_usb_audio is not compiled in, (which it isn't, from your post) You'll have to take your kernel config, edit it to include snd_usb_audio, and recompile from scratch. Enjoy!

Last edited by business_kid; 06-12-2023 at 03:08 PM.
 
1 members found this post helpful.
Old 06-16-2023, 09:41 AM   #3
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
Code:
CONFIG_SND_USB=y
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_UA101 is not set
# CONFIG_SND_USB_CAIAQ is not set
# CONFIG_SND_USB_6FIRE is not set
# CONFIG_SND_USB_HIFACE is not set
# CONFIG_SND_USB_POD is not set
# CONFIG_SND_USB_PODHD is not set
# CONFIG_SND_USB_TONEPORT is not set
# CONFIG_SND_USB_VARIAX is not set
Next week's batch of updates will include those configuration options in the kernel. Thanks for pointing them out.

Quote:
Originally Posted by slac-in-the-box View Post
Trying to understand the way slackware-aarch64 handles initrd:

If I add

Code:
modprobe SND_USB_AUDIO
to /boot/local/load_kernel_modules.post

is the initrd system going to go to the kernel source and compile that module?
You would want to look into the "modinfo" command to find the actual kernel module name. In this case, that isn't going to work.

The initrd is controlled by the "os-initrd-mgr" script that is specific to Slackware Aarch64. In most cases you will not need to worry about it. It is just a shell script and it is executed when a new generic kernel is installed/upgraded. The os-initrd-mgr can be configured in a number of ways. I found it mostly necessary to manually execute os-initrd-mgr when developing support for new hardware models. The man page has more information about the internals and command line switches.
 
1 members found this post helpful.
Old 06-19-2023, 12:09 PM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,551

Rep: Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314Reputation: 1314
These modules have been included within the latest batch which is heading out as I write this.

I suspect udev will pick up your USB sound hardware and load the module directly, but if not you'll need to load them once the OS has fully booted.

Sound modules are not included within the Operating System Initial RAM Disk (OS InitRD) because they aren't required to boot the system from cold.
You've found a gap in the documentation so I've added a section 'Loading Additional Linux Kernel Modules within the OS Proper' to all 3 guides explaining how to load modules from within the OS Proper: basically, edit /etc/rc.d/rc.modules

Thanks for the suggestion.
 
2 members found this post helpful.
Old 06-19-2023, 06:48 PM   #5
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,312

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
slac-in-the-box let us know if get anywhere
 
1 members found this post helpful.
Old 06-27-2023, 08:20 PM   #6
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780

Original Poster
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Yay! USB headset functions perfectly! Thanks for the update -- I've been too busy parenting and hadn't rebuilt a kernel yet -- now there's no need. Thank you mralk3, drmozes and glorsplitz! And yes, headphones were detected and the kernel modules loaded automatically!

Last edited by slac-in-the-box; 06-28-2023 at 07:58 AM.
 
1 members found this post helpful.
  


Reply

Tags
initrd, slackware_aarch64, snd_usb_audio, usb headset



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
modprobe snd_usb_audio not working on startup toothsome Linux - Hardware 4 05-30-2016 01:28 PM
C-Media USB Audio Adapter and snd_usb_audio module qlands Slackware 1 04-20-2011 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration