• Viral Mehta's avatar
    ALSA: oss-mixer - Fixes recording gain control · 36c7b833
    Viral Mehta authored
    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>
    36c7b833
mixer_oss.c 39.8 KB