Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33697 - additon for gamepads
Summary: additon for gamepads
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Alsa Configuration Guide (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/alsa-gui...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-17 11:58 UTC by Wiliam
Modified: 2003-11-23 08:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to alsa-guide (alsa-guide.diff-33697,1.92 KB, patch)
2003-11-18 11:37 UTC, Sven Vermeulen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wiliam 2003-11-17 11:58:47 UTC
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
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-18 11:37:14 UTC
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?
Comment 2 Sergey Kuleshov (RETIRED) gentoo-dev 2003-11-23 06:30:11 UTC
I have to sound card with joystick either, but the patch looks good.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-23 08:29:46 UTC
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 :)