after you hav compiled alsa, do: "modinfo snd-module_name" to see if it has a joystick parameter. ie. bash-2.05b# modinfo snd-via82xx filename: /lib/modules/2.4.22-ck2/snd-via82xx.o description: "VIA VT82xx audio" author: "Jaroslav Kysela <perex@suse.cz>" license: "GPL" parm: index int array (min = 1, max = 8), description "Index value for VIA 82xx bridge." parm: id string array (min = 1, max = 8), description "ID string for VIA 82xx bridge." parm: enable int array (min = 1, max = 8), description "Enable audio part of VIA 82xx bridge." parm: mpu_port long array (min = 1, max = 8), description "MPU-401 port. (VT82C686x only)" parm: joystick int array (min = 1, max = 8), description "Enable joystick. (VT82C686x only)" parm: ac97_clock int array (min = 1, max = 8), description "AC'97 codec clock (default 48000Hz)." parm: dxs_support int array (min = 1, max = 8), description "Support for DXS channels (0 = auto, 1 = enable, 2 = disable, 3 = 48k only, 4 = no VRA)" if it has the parm: joystick add the following line to /etc/modules.d/alsa options snd-card_module joystick=1 snd-card_module should be the name of the alsa driver that you used in the alias snd-card-0 line. ie. alias snd-card-0 snd-via82xx options snd-via82xx joystick=1
Created attachment 20922 [details, diff] Patch to alsa-guide This patch adds the proposed joystick-information to the alsa-guide. I can't verify myself (no joystick, nor soundcard that supports one) but it sounds valid :) If a dovdev can review?
I have to sound card with joystick either, but the patch looks good.
Okay, well, I'm going to commit this anyway; if we receive an error about it we can remove it again, but it all seems valid (just did a bit of google'ing :)