* mixer control - Captuer Source - rename item name in enumerated control
@ 2005-09-13 15:22 Raymond
2005-09-13 15:38 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Raymond @ 2005-09-13 15:22 UTC (permalink / raw)
To: alsa-devel
Is it possible to rename "Video" to "MPU401" in enumerated "Capture
Source" mixer control by the au88x0 driver ?
numid=39,iface=MIXER,name='Capture Source'
; type=ENUMERATED,access=rw---,values=2,items=8
; Item #0 'Mic'
; Item #1 'CD'
; Item #2 'Video' <---------------MPU 401 / wavetable daugther card
; Item #3 'Aux'
; Item #4 'Line'
; Item #5 'Mix'
; Item #6 'Mix Mono'
; Item #7 'Phone'
: values=0,0
http://www.dearhoney.idv.tw/MUSEUM/soundcard-07.php
In Vortex and Vortex 2 sound cards , which has the wavetable connector,
the output of the wavetable daughter card is connected to capture source
- Video of analog mixer of AC97 codec.
This exclude all those onboard au8820 on IWill LE370, onboard au8830 on
ASUS P3B-1394.
http://www.3dsoundsurge.com/faqs/vortex1techfaq.html#Why%20am%20I%20not%20getting%20any%20sound%20from%20my%20wavetable%20daughterboard?
http://www.3dsoundsurge.com/faqs/vortex2techfaq.html#Why%20am%20I%20not%20getting%20any%20sound%20from%20my%20wavetable%20daughterboard?
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mixer control - Captuer Source - rename item name in enumerated control
2005-09-13 15:22 mixer control - Captuer Source - rename item name in enumerated control Raymond
@ 2005-09-13 15:38 ` Takashi Iwai
2005-09-14 10:31 ` Raymond
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2005-09-13 15:38 UTC (permalink / raw)
To: Raymond; +Cc: alsa-devel
At Tue, 13 Sep 2005 23:22:14 +0800,
Raymond wrote:
>
> Is it possible to rename "Video" to "MPU401" in enumerated "Capture
> Source" mixer control by the au88x0 driver ?
>
> numid=39,iface=MIXER,name='Capture Source'
> ; type=ENUMERATED,access=rw---,values=2,items=8
> ; Item #0 'Mic'
> ; Item #1 'CD'
> ; Item #2 'Video' <---------------MPU 401 / wavetable daugther card
> ; Item #3 'Aux'
> ; Item #4 'Line'
> ; Item #5 'Mix'
> ; Item #6 'Mix Mono'
> ; Item #7 'Phone'
> : values=0,0
Currently, you need an ugly hack.
Find "Capture Source" control and replace the private_value field with
the point to a new own struct ac97_enum. For example,
/* taken from ac97/ac97_local.h */
#define AC97_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, xtexts) \
{ .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
.mask = xmask, .texts = xtexts }
static const char *my_own_sel[] = { "Mic", "CD", "WaveTable", "Aux",
"line", Mix", "Mix Mono", "Phone" };
static const struct ac97_enum my_own_enum =
AC97_ENUM_DOUBLE(AC97_REC_SEL, 8, 0, 8, my_own_sel);
Then use snd_ctl_find_id() to get a snd_kcontrol_t object, and
replace its private_value field with (unsigned long)&my_own_enum.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mixer control - Captuer Source - rename item name in enumerated control
2005-09-13 15:38 ` Takashi Iwai
@ 2005-09-14 10:31 ` Raymond
2005-09-14 10:42 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Raymond @ 2005-09-14 10:31 UTC (permalink / raw)
To: alsa-devel; +Cc: openvortex-dev
Is it possible to detect which daugther card is connected (e.g Yamaha
DB50XG, TurtleBeach Cancun FX, Roland SCD-15...) and replace "Video"
with the name of daugther card on the mixer control ?
The hardware driver know how the hardware are connected more than the
alsa-lib
Not only the capture source will need to be changed.
numid=33,iface=MIXER,name='Video Playback Switch'
; type=BOOLEAN,access=rw---,values=1
: values=on
numid=34,iface=MIXER,name='Video Playback Volume'
; type=INTEGER,access=rw---,values=2,min=0,max=31,step=0
: values=9,9
It seem that get_compare_weight() use pre-defined names to perform
matching
Takashi Iwai wrote:
> At Tue, 13 Sep 2005 23:22:14 +0800,
> Raymond wrote:
>
>>Is it possible to rename "Video" to "MPU401" in enumerated "Capture
>>Source" mixer control by the au88x0 driver ?
>>
>>numid=39,iface=MIXER,name='Capture Source'
>> ; type=ENUMERATED,access=rw---,values=2,items=8
>> ; Item #0 'Mic'
>> ; Item #1 'CD'
>> ; Item #2 'Video' <---------------MPU 401 / wavetable daugther card
>> ; Item #3 'Aux'
>> ; Item #4 'Line'
>> ; Item #5 'Mix'
>> ; Item #6 'Mix Mono'
>> ; Item #7 'Phone'
>> : values=0,0
>
>
> Currently, you need an ugly hack.
>
> Find "Capture Source" control and replace the private_value field with
> the point to a new own struct ac97_enum. For example,
>
> /* taken from ac97/ac97_local.h */
> #define AC97_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, xtexts) \
> { .reg = xreg, .shift_l = xshift_l, .shift_r = xshift_r, \
> .mask = xmask, .texts = xtexts }
>
> static const char *my_own_sel[] = { "Mic", "CD", "WaveTable", "Aux",
> "line", Mix", "Mix Mono", "Phone" };
>
> static const struct ac97_enum my_own_enum =
> AC97_ENUM_DOUBLE(AC97_REC_SEL, 8, 0, 8, my_own_sel);
>
>
> Then use snd_ctl_find_id() to get a snd_kcontrol_t object, and
> replace its private_value field with (unsigned long)&my_own_enum.
>
>
> Takashi
>
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: mixer control - Captuer Source - rename item name in enumerated control
2005-09-14 10:31 ` Raymond
@ 2005-09-14 10:42 ` Clemens Ladisch
0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2005-09-14 10:42 UTC (permalink / raw)
To: Raymond; +Cc: alsa-devel, openvortex-dev
Raymond wrote:
> Is it possible to detect which daugther card is connected (e.g Yamaha
> DB50XG, TurtleBeach Cancun FX, Roland SCD-15...) and replace "Video"
> with the name of daugther card on the mixer control ?
This would require some SysEx, but AFAIK the connector doesn't have a
back channel for MIDI.
Regards,
Clemens
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-14 10:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-13 15:22 mixer control - Captuer Source - rename item name in enumerated control Raymond
2005-09-13 15:38 ` Takashi Iwai
2005-09-14 10:31 ` Raymond
2005-09-14 10:42 ` Clemens Ladisch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.