Ignore:
Timestamp:
Jun 18, 2009, 8:19:55 AM (16 years ago)
Author:
Paul Smedley
Message:

Update SPEAKER mixer control to PCSPEAKER

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/lib32/soundmixer.c

    r449 r451  
    5050        /* OSS_MIXER_SYNTH    */ { "Synth", 0 , OSS32_MIX_RECSRC_SYNTH},
    5151        /* OSS_MIXER_PCM      */ { "PCM", 0 , -1},
    52         /* OSS_MIXER_SPEAKER  */ { "PC Speaker", 0 , -1},
     52        /* OSS_MIXER_PCSPEAKER  */ { "PC Speaker", 0 , -1},
    5353        /* OSS_MIXER_LINE     */ { "Line", 0 , OSS32_MIX_RECSRC_LINE},
    5454        /* OSS_MIXER_MIC      */ { "Mic", 0, OSS32_MIX_RECSRC_MIC},
     
    440440        idxMute = pHandle->controls[OSS_MIXER_VIDEO].idxMute;
    441441        break;
    442     case OSS32_MIX_VOLUME_SPEAKER:
    443         idx = pHandle->controls[OSS_MIXER_SPEAKER].idxVolume;
    444         idxMute = pHandle->controls[OSS_MIXER_SPEAKER].idxMute;
     442    case OSS32_MIX_VOLUME_PCSPEAKER:
     443        idx = pHandle->controls[OSS_MIXER_PCSPEAKER].idxVolume;
     444        idxMute = pHandle->controls[OSS_MIXER_PCSPEAKER].idxMute;
    445445        if (idx == -1)
    446446        {
    447             /* if OSS_MIXER_SPEAKER isn't a valid control, try OSS_MIXER_SPEAKER2 */
    448             idx = pHandle->controls[OSS_MIXER_SPEAKER2].idxVolume;
    449             idxMute = pHandle->controls[OSS_MIXER_SPEAKER2].idxMute;
     447            /* if OSS_MIXER_PCSPEAKER isn't a valid control, try OSS_MIXER_SPEAKER */
     448            idx = pHandle->controls[OSS_MIXER_SPEAKER].idxVolume;
     449            idxMute = pHandle->controls[OSS_MIXER_SPEAKER].idxMute;
    450450        }
    451451        break;
     
    758758    case OSS_MIXER_VIDEO:
    759759        return OSS32_MIX_VOLUME_VIDEO;
    760     case OSS_MIXER_SPEAKER:
    761         return OSS32_MIX_VOLUME_SPEAKER;
     760    case OSS_MIXER_PCSPEAKER:
     761        return OSS32_MIX_VOLUME_PCSPEAKER;
    762762    case OSS_MIXER_PHONEOUT:
    763763        return OSS32_MIX_VOLUME_PHONE;
Note: See TracChangeset for help on using the changeset viewer.