Skip to contentSkip to conversation

OSS volume mapping (Re: [Alsa-user] SBLive, OSS mixer (PCM/Master) + digital out)

DISCUSSION Takashi Iwai 1 participant 2 messages Aug 23, 2002 – Aug 27, 2002 4 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

At Thu, 22 Aug 2002 17:34:50 +0200,

Quoted 8 lines · Martin Fiedler

Hi!

Am Donnerstag, 22. August 2002 15:22 schrieb Takashi Iwai:

Quoted 4 lines

no, it's not possible.
so far, each OSS mixer is hard-coded to the alsa mixer element, such as "Master" or "PCM".

Quoted 6 lines
Quoted 2 lines

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

Quoted 4 lines

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

At Fri, 23 Aug 2002 21:22:11 +0200,

Quoted 7 lines · Martin Fiedler
Quoted 4 lines

"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.

Ok, so this should be no real problem for playback. Maybe I just map "Wave Capture" to something like "Phone-In"...

I found a "trick" for this.
you can specify the direction if you want to affect only playback or capture, such like

VOLUME "Wave Playback" 0
PHONEIN "Wave Capture" 0

so that only "Wave Playback" is changed by OSS Volume and "Wave Capture" by OSS Phone-In.

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