• V
    ALSA: oss-mixer - Fixes recording gain control · 36c7b833
    Viral Mehta 提交于
    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: NViral Mehta <viral.mehta@einfochips.com>
    Signed-off-by: NTakashi Iwai <tiwai@suse.de>
    36c7b833
mixer_oss.c 39.8 KB