help needed-- providing control interface
hello,
I am providing control interface for my driver to access from user space with functions get & put .
( driver is for arm platform ) .
I want to know
* while creating new controls should I be allowed to create my hardware
specific controls like gain, power, rate & other codec specific parameters.
or should I take care of mapping OSS mixer controls to ALSA mixer.
* How user comes to know what controls are available & the valid range of
values for sliders & switches.
As I'm new to ALSA, can anyone explain me in detail, in this ragard. Thanks & Regards
Pavana S
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Quoted 5 lines · Pavana Sharma
I am providing control interface for my driver to access from user space with functions get & put .
* while creating new controls should I be allowed to create my hardware
specific controls like gain, power, rate & other codec specific parameters.
All controls are hardware-specific. There are no requirements what controls you must, or must not, provide.
Quoted 1 line
or should I take care of mapping OSS mixer controls to ALSA mixer.
ALSA does this automatically, based on the control names.
Quoted 2 lines
* How user comes to know what controls are available & the valid range of
values for sliders & switches.
The driver defines type and range of a control in the info callback.
The user can determine these things with the snd_ctl_* functions in the ALSA library. See the source code of amixer and alsactl for details.
HTH
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click