mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add card profile prober
This commit is contained in:
parent
b2b2eb1ee7
commit
b4d80462bf
4 changed files with 208 additions and 52 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue