jdk/src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_Ports.c
changeset 21278 ef8a3a2a72f2
parent 7792 612315e0949d
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   399         return;
   399         return;
   400     }
   400     }
   401     numControls = 0;
   401     numControls = 0;
   402     elem = portMixer->elems[portIndex];
   402     elem = portMixer->elems[portIndex];
   403     if (snd_mixer_selem_has_playback_volume(elem) || snd_mixer_selem_has_capture_volume(elem)) {
   403     if (snd_mixer_selem_has_playback_volume(elem) || snd_mixer_selem_has_capture_volume(elem)) {
   404         /* Since we've splitted/duplicated elements with both playback and capture on the recovery
   404         /* Since we've split/duplicated elements with both playback and capture on the recovery
   405            of elements, we now can assume that we handle only to deal with either playback or
   405            of elements, we now can assume that we handle only to deal with either playback or
   406            capture. */
   406            capture. */
   407         isPlayback = isPlaybackFunction(portMixer->types[portIndex]);
   407         isPlayback = isPlaybackFunction(portMixer->types[portIndex]);
   408         isMono = (isPlayback && snd_mixer_selem_is_playback_mono(elem)) ||
   408         isMono = (isPlayback && snd_mixer_selem_is_playback_mono(elem)) ||
   409             (!isPlayback && snd_mixer_selem_is_capture_mono(elem));
   409             (!isPlayback && snd_mixer_selem_is_capture_mono(elem));