Ticket #361: pulseaudio-embbeded_LTSP_VIA-0.9.10.diff

File pulseaudio-embbeded_LTSP_VIA-0.9.10.diff, 0.7 kB (added by illuusio, 3 years ago)

Little patch workaround to fix cases when there isn't Master or PCM in ALSA mixer

  • src/modules/module-alsa-sink.c

    old new  
    843843        } 
    844844 
    845845        if (found) 
    846             if (!(u->mixer_elem = pa_alsa_find_elem(u->mixer_handle, "Master", "PCM"))) 
    847                 found = FALSE; 
     846            if (!(u->mixer_elem = pa_alsa_find_elem(u->mixer_handle, "Master", "PCM"))){ 
     847               // Many VIA based embbed system has this (LTSP usage mainly) 
     848               if (!(u->mixer_elem = pa_alsa_find_elem(u->mixer_handle, "Master Front", "Front"))) 
     849                   found = FALSE; 
     850            } 
    848851 
    849852        if (!found) { 
    850853            snd_mixer_close(u->mixer_handle);