"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/modules/alsa/alsa-util.c" between
pulseaudio-14.0.tar.xz and pulseaudio-14.2.tar.xz

About: PulseAudio is a networked sound server (for POSIX OSes), a proxy for your sound applications.

alsa-util.c  (pulseaudio-14.0.tar.xz):alsa-util.c  (pulseaudio-14.2.tar.xz)
skipping to change at line 1638 skipping to change at line 1638
continue; continue;
if (snd_hctl_elem_get_index(helem) != index) if (snd_hctl_elem_get_index(helem) != index)
continue; continue;
if (snd_hctl_elem_get_device(helem) != device) if (snd_hctl_elem_get_device(helem) != device)
continue; continue;
return elem; return elem;
} }
return NULL; return NULL;
} }
snd_mixer_elem_t *pa_alsa_mixer_find_card(snd_mixer_t *mixer, const char *name, snd_mixer_elem_t *pa_alsa_mixer_find_card(snd_mixer_t *mixer, struct pa_alsa_mix
unsigned int device) { er_id *alsa_id, unsigned int device) {
return pa_alsa_mixer_find(mixer, SND_CTL_ELEM_IFACE_CARD, name, 0, device); return pa_alsa_mixer_find(mixer, SND_CTL_ELEM_IFACE_CARD, alsa_id->name, als
a_id->index, device);
} }
snd_mixer_elem_t *pa_alsa_mixer_find_pcm(snd_mixer_t *mixer, const char *name, u nsigned int device) { snd_mixer_elem_t *pa_alsa_mixer_find_pcm(snd_mixer_t *mixer, const char *name, u nsigned int device) {
return pa_alsa_mixer_find(mixer, SND_CTL_ELEM_IFACE_PCM, name, 0, device); return pa_alsa_mixer_find(mixer, SND_CTL_ELEM_IFACE_PCM, name, 0, device);
} }
static int mixer_class_compare(const snd_mixer_elem_t *c1, const snd_mixer_elem_ t *c2) static int mixer_class_compare(const snd_mixer_elem_t *c1, const snd_mixer_elem_ t *c2)
{ {
/* Dummy compare function */ /* Dummy compare function */
return c1 == c2 ? 0 : (c1 > c2 ? 1 : -1); return c1 == c2 ? 0 : (c1 > c2 ? 1 : -1);
 End of changes. 1 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)