alsa-lib: Implements support for capture/playback enums.
Review
Quoted 3 lines · James Courtier-Dutton
(quoted diff) +3
-0+ {" Playback Enum", CTL_PLAYBACK_ENUM}, + {" Capture Enum", CTL_CAPTURE_ENUM}, + {" Enum", CTL_GLOBAL_ENUM},
I don't like this. We already know, that it's the enum type, so it's not required to put this type to control id name again.
Could you just check, if control id name ends with " Capture" or " Playback" words and set CTL_XXXX_ENUM according that?
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 9 lines · Jaroslav Kysela
Review
Quoted 3 lines · James Courtier-Dutton
(quoted diff) +3
-0+ {" Playback Enum", CTL_PLAYBACK_ENUM}, + {" Capture Enum", CTL_CAPTURE_ENUM}, + {" Enum", CTL_GLOBAL_ENUM},I don't like this. We already know, that it's the enum type, so it's not required to put this type to control id name again.
Quoted 5 lines
Could you just check, if control id name ends with " Capture" or " Playback" words and set
CTL_XXXX_ENUMaccording that?Jaroslav
I would actually prefer to pass the info via the TLV interface.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
At Sat, 14 Oct 2006 12:24:10 +0100,
Quoted 11 lines · James Courtier-Dutton
Quoted 9 lines · Jaroslav Kysela
Review
Quoted 3 lines · James Courtier-Dutton
(quoted diff) +3
-0+ {" Playback Enum", CTL_PLAYBACK_ENUM}, + {" Capture Enum", CTL_CAPTURE_ENUM}, + {" Enum", CTL_GLOBAL_ENUM},I don't like this. We already know, that it's the enum type, so it's not required to put this type to control id name again.
Quoted 7 lines
Quoted 5 lines
Could you just check, if control id name ends with " Capture" or " Playback" words and set
CTL_XXXX_ENUMaccording that?Jaroslav
I would actually prefer to pass the info via the TLV interface.
Reason?
We already have the interface and we must keep it for compatibility reason, at least...
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 18 lines · Takashi Iwai
At Sat, 14 Oct 2006 12:24:10 +0100,
Quoted 9 lines · James Courtier-Dutton
Quoted 8 lines · Jaroslav Kysela
Review
Quoted 3 lines · James Courtier-Dutton
(quoted diff) +3
-0+ {" Playback Enum", CTL_PLAYBACK_ENUM}, + {" Capture Enum", CTL_CAPTURE_ENUM}, + {" Enum", CTL_GLOBAL_ENUM},I don't like this. We already know, that it's the enum type, so it's not required to put this type to control id name again.
Quoted 6 lines
Quoted 5 lines
Could you just check, if control id name ends with " Capture" or " Playback" words and set
CTL_XXXX_ENUMaccording that?Jaroslav
I would actually prefer to pass the info via the TLV interface.
Quoted 8 lines
Reason?
We already have the interface and we must keep it for compatibility reason, at least...
Takashi
The interface for splitting PLAYBACK ENUMs from CAPTURE ENUMs has not been implemented until I just did it. So what "compatibility" do we have to keep too. This is a alsa-driver to alsa-lib interface, and using the TLV interface will not break anything. I don't see where the problem is.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
At Mon, 16 Oct 2006 11:19:37 +0100,
Quoted 26 lines · James Courtier-Dutton
Quoted 24 lines · Takashi Iwai
At Sat, 14 Oct 2006 12:24:10 +0100,
Quoted 9 lines · James Courtier-Dutton
Quoted 8 lines · Jaroslav Kysela
Review
Quoted 3 lines · James Courtier-Dutton
(quoted diff) +3
-0+ {" Playback Enum", CTL_PLAYBACK_ENUM}, + {" Capture Enum", CTL_CAPTURE_ENUM}, + {" Enum", CTL_GLOBAL_ENUM},I don't like this. We already know, that it's the enum type, so it's not required to put this type to control id name again.
Quoted 6 lines
Quoted 5 lines
Could you just check, if control id name ends with " Capture" or " Playback" words and set
CTL_XXXX_ENUMaccording that?Jaroslav
I would actually prefer to pass the info via the TLV interface.
Reason?
We already have the interface and we must keep it for compatibility reason, at least...
Quoted 7 lines
Quoted 2 lines
Takashi
The interface for splitting PLAYBACK ENUMs from CAPTURE ENUMs has not been implemented until I just did it. So what "compatibility" do we have to keep too. This is a alsa-driver to alsa-lib interface, and using the TLV interface will not break anything. I don't see where the problem is.
You'd need more extra code in the driver to add TLV support.
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Quoted 9 lines · Jaroslav Kysela
Review
Quoted 3 lines · James Courtier-Dutton
(quoted diff) +3
-0+ {" Playback Enum", CTL_PLAYBACK_ENUM}, + {" Capture Enum", CTL_CAPTURE_ENUM}, + {" Enum", CTL_GLOBAL_ENUM},I don't like this. We already know, that it's the enum type, so it's not required to put this type to control id name again.
Quoted 3 lines
Could you just check, if control id name ends with " Capture" or " Playback" words and set
CTL_XXXX_ENUMaccording that?
Is did it that way, for consistency.
If you look at the naming of switches, volumes, I just used the same pattern for enums.
James
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642