add card profile prober

This commit is contained in:
Lennart Poettering 2009-01-16 23:33:15 +01:00
parent b2b2eb1ee7
commit b4d80462bf
4 changed files with 208 additions and 52 deletions

View file

@ -81,6 +81,19 @@ snd_pcm_t *pa_alsa_open_by_device_string(
pa_bool_t *use_tsched,
pa_bool_t require_exact_channel_number);
typedef struct pa_alsa_profile_info {
pa_channel_map map;
const char *alsa_name;
const char *description;
const char *name;
} pa_alsa_profile_info;
int pa_alsa_probe_profiles(
const char *dev_id,
const pa_sample_spec *ss,
void (*cb)(const pa_alsa_profile_info *sink, const pa_alsa_profile_info *source, void *userdata),
void *userdata);
int pa_alsa_calc_mixer_map(snd_mixer_elem_t *elem, const pa_channel_map *channel_map, snd_mixer_selem_channel_id_t mixer_map[], pa_bool_t playback);
void pa_alsa_dump(snd_pcm_t *pcm);