* OSS emulation question
@ 2006-03-29 23:08 Adrian McMenamin
2006-03-30 12:55 ` Clemens Ladisch
0 siblings, 1 reply; 6+ messages in thread
From: Adrian McMenamin @ 2006-03-29 23:08 UTC (permalink / raw)
To: alsa-devel
My mixer code is currently not working because my device does not report
the availability of SOUND_MASK_VOLUME to the oss emulation code.
In the olden days I'd just write the ioctl - presumably I don't have to
do that with ALSA? How do I get round it?
Thanks
Adrian
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSS emulation question
2006-03-29 23:08 OSS emulation question Adrian McMenamin
@ 2006-03-30 12:55 ` Clemens Ladisch
2006-03-30 20:43 ` Adrian McMenamin
0 siblings, 1 reply; 6+ messages in thread
From: Clemens Ladisch @ 2006-03-30 12:55 UTC (permalink / raw)
To: Adrian McMenamin; +Cc: alsa-devel
Adrian McMenamin wrote:
> My mixer code is currently not working because my device does not report
> the availability of SOUND_MASK_VOLUME to the oss emulation code.
ALSA's OSS emulation automatically computed the mask value.
> In the olden days I'd just write the ioctl - presumably I don't have to
> do that with ALSA? How do I get round it?
See snd_mixer_oss_build() in core/oss/mixer_oss.c for a list of mixer
control names that get mapped to OSS controls (e.g., "Master Playback
Volume"/"...Switch" would be mapped to SOUND_MIXER_VOLUME).
HTH
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSS emulation question
2006-03-30 12:55 ` Clemens Ladisch
@ 2006-03-30 20:43 ` Adrian McMenamin
2006-03-31 9:37 ` Clemens Ladisch
0 siblings, 1 reply; 6+ messages in thread
From: Adrian McMenamin @ 2006-03-30 20:43 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
On Thu, 2006-03-30 at 14:55 +0200, Clemens Ladisch wrote:
> Adrian McMenamin wrote:
> > My mixer code is currently not working because my device does not report
> > the availability of SOUND_MASK_VOLUME to the oss emulation code.
>
> ALSA's OSS emulation automatically computed the mask value.
>
> > In the olden days I'd just write the ioctl - presumably I don't have to
> > do that with ALSA? How do I get round it?
>
> See snd_mixer_oss_build() in core/oss/mixer_oss.c for a list of mixer
> control names that get mapped to OSS controls (e.g., "Master Playback
> Volume"/"...Switch" would be mapped to SOUND_MIXER_VOLUME).
>
>
I have implemented master volume and master switch but all I get is:
audio/gain: setable Volume/PCM-Level not supported by your audio device:
0000
what is the minimum set of controls I need to have settable volume
in /dev/mixer (ie oss emulation)?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSS emulation question
2006-03-30 20:43 ` Adrian McMenamin
@ 2006-03-31 9:37 ` Clemens Ladisch
2006-04-01 9:25 ` Adrian McMenamin
2006-04-01 13:32 ` Adrian McMenamin
0 siblings, 2 replies; 6+ messages in thread
From: Clemens Ladisch @ 2006-03-31 9:37 UTC (permalink / raw)
To: Adrian McMenamin; +Cc: alsa-devel
Adrian McMenamin wrote:
> On Thu, 2006-03-30 at 14:55 +0200, Clemens Ladisch wrote:
> > See snd_mixer_oss_build() in core/oss/mixer_oss.c for a list of mixer
> > control names that get mapped to OSS controls (e.g., "Master Playback
> > Volume"/"...Switch" would be mapped to SOUND_MIXER_VOLUME).
>
> I have implemented master volume and master switch but all I get is:
>
> audio/gain: setable Volume/PCM-Level not supported by your audio device:
> 0000
>
> what is the minimum set of controls I need to have settable volume
> in /dev/mixer (ie oss emulation)?
One control should be enough.
What are the contents of /proc/asound/cardX/oss_mixer?
(You can change mappings, see Documentation/OSS-Emulation.txt)
Regards,
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSS emulation question
2006-03-31 9:37 ` Clemens Ladisch
@ 2006-04-01 9:25 ` Adrian McMenamin
2006-04-01 13:32 ` Adrian McMenamin
1 sibling, 0 replies; 6+ messages in thread
From: Adrian McMenamin @ 2006-04-01 9:25 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
On Fri, 2006-03-31 at 11:37 +0200, Clemens Ladisch wrote:
> Adrian McMenamin wrote:
> > On Thu, 2006-03-30 at 14:55 +0200, Clemens Ladisch wrote:
> > > See snd_mixer_oss_build() in core/oss/mixer_oss.c for a list of mixer
> > > control names that get mapped to OSS controls (e.g., "Master Playback
> > > Volume"/"...Switch" would be mapped to SOUND_MIXER_VOLUME).
> >
> > I have implemented master volume and master switch but all I get is:
> >
> > audio/gain: setable Volume/PCM-Level not supported by your audio device:
> > 0000
> >
> > what is the minimum set of controls I need to have settable volume
> > in /dev/mixer (ie oss emulation)?
>
> One control should be enough.
>
> What are the contents of /proc/asound/cardX/oss_mixer?
Doesn't look good....
/proc/asound/card0 # cat oss_mixer
VOLUME "" 0
BASS "" 0
TREBLE "" 0
SYNTH "" 0
PCM "" 0
SPEAKER "" 0
LINE "" 0
MIC "" 0
CD "" 0
IMIX "" 0
ALTPCM "" 0
RECLEV "" 0
IGAIN "" 0
OGAIN "" 0
LINE1 "" 0
LINE2 "" 0
LINE3 "" 0
DIGITAL1 "" 0
DIGITAL2 "" 0
DIGITAL3 "" 0
PHONEIN "" 0
PHONEOUT "" 0
VIDEO "" 0
RADIO "" 0
MONITOR "" 0
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: OSS emulation question
2006-03-31 9:37 ` Clemens Ladisch
2006-04-01 9:25 ` Adrian McMenamin
@ 2006-04-01 13:32 ` Adrian McMenamin
1 sibling, 0 replies; 6+ messages in thread
From: Adrian McMenamin @ 2006-04-01 13:32 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
On Fri, 2006-03-31 at 11:37 +0200, Clemens Ladisch wrote:
> (You can change mappings, see Documentation/OSS-Emulation.txt)
Manual reassignment works well, but I haven't yet been able to make
automatic. :(
But at least I know the mixer code is fundamentally sound and I'll stick
in my CVS
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-04-01 13:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-29 23:08 OSS emulation question Adrian McMenamin
2006-03-30 12:55 ` Clemens Ladisch
2006-03-30 20:43 ` Adrian McMenamin
2006-03-31 9:37 ` Clemens Ladisch
2006-04-01 9:25 ` Adrian McMenamin
2006-04-01 13:32 ` Adrian McMenamin
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.