Skip to content
Commit 36c7b833 authored by Viral Mehta's avatar Viral Mehta Committed by Takashi Iwai
Browse files

ALSA: oss-mixer - Fixes recording gain control



At the time of initialization, SNDRV_MIXER_OSS_PRESENT_PVOLUME bit is not
set for MIC (slot 7).
So, the same should not be checked when an application tries to do gain
control for audio recording devices.

Just check slot->present for SNDRV_MIXER_OSS_PRESENT_CVOLUME independently.
Verified with a simple application which opens /dev/dsp for recording and
/dev/mixer for volume control.

Have tested two usb audio mic devices.

Signed-off-by: default avatarViral Mehta <viral.mehta@einfochips.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 041b6237
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment