equal
deleted
inserted
replaced
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)); |