From: Takashi Iwai <tiwai@suse.de>
To: Martin Fiedler <martin_fiedler@web.de>
Cc: alsa-user@lists.sourceforge.net, alsa-devel@lists.sourceforge.net
Subject: OSS volume mapping (Re: [Alsa-user] SBLive, OSS mixer (PCM/Master) + digital out)
Date: Fri, 23 Aug 2002 12:05:50 +0200 [thread overview]
Message-ID: <s5hfzx5sxdt.wl@alsa2.suse.de> (raw)
In-Reply-To: <200208221734.50898.martin_fiedler@web.de>
At Thu, 22 Aug 2002 17:34:50 +0200,
Martin Fiedler wrote:
>
> Hi!
>
> Am Donnerstag, 22. August 2002 15:22 schrieb Takashi Iwai:
> > no, it's not possible.
> > so far, each OSS mixer is hard-coded to the alsa mixer element, such
> > as "Master" or "PCM".
> >
> > you can change the driver code (alsa-kernel/core/oss/mixer_oss.c)
> > but of course it's not a common solution...
>
> well... works for me ;-)
>
> I changed SOUND_MIXER_PCM to "Wave", it was "PCM" before.
right now i committed small changes for oss mixer emulation code to
cvs.
now a new proc file /proc/asound/card*/oss_mixer is created when
snd-mixer-oss is loaded (together with the alsa driver, too).
this file lists the supported OSS volume elements and the
corresponding ALSA control name and index.
and, you can _write_ to this file (only as root), in order to change
the mapping. i.e. you don't have to change the source code any more,
but just do like this:
# echo 'PCM "Wave" 0' > /proc/asound/card0/oss_mixer
this will be nice also for ICE1712. DAC or ADC volume can be mapped
to any OSS mixer elements, so that usual oss mixer applications can
control them.
the information is not kept if you reload the driver. however,
restoring it is easy.
you can save all the contents like this
cat /proc/asound/card0/oss_mixer > /somehwere/saved
and restore it (as root, again) via
cat /somewhere/saved > /proc/asound/card0/oss_mixer
> Sideeffect:
> if you adjust PCM with any OSS mixer (or xmms) alsamixer shows that Wave _and_
> Wave Capture is adjusted. I don't know what Wave Capture is so I don't care
> for now.
"Wave Capture Volume" defines the amount of signals to be routed from
Wave to Capture. if you set 100%, you can record the wave which is
being played. it's a feature of emu10k1, not AC97.
ciao,
Takashi
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
next parent reply other threads:[~2002-08-23 10:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200208221454.35940.martin_fiedler@web.de>
[not found] ` <s5hbs7vt4de.wl@alsa2.suse.de>
[not found] ` <200208221734.50898.martin_fiedler@web.de>
2002-08-23 10:05 ` Takashi Iwai [this message]
[not found] ` <200208232122.11425.martin_fiedler@web.de>
2002-08-27 8:34 ` OSS volume mapping (Re: [Alsa-user] SBLive, OSS mixer (PCM/Master) + digital out) Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hfzx5sxdt.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=alsa-user@lists.sourceforge.net \
--cc=martin_fiedler@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.