mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
alsa-mixer: add hw_device_index to pa_alsa_mapping
We have so far assumed that HDMI always uses device indexes 3, 7, 8, 9, 10, 11, 12 and 13. These values are hardcoded in the path configuration. The Intel HDMI LPE driver, however, uses different device numbering scheme. Since the indexes aren't always the same, we need to query the hw device index from ALSA. Later patches will use the queried index for HDMI jack detection and ELD information reading. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=100488
This commit is contained in:
parent
838d95dab7
commit
09ff3fca2f
2 changed files with 30 additions and 0 deletions
|
|
@ -275,6 +275,10 @@ struct pa_alsa_mapping {
|
|||
bool exact_channels:1;
|
||||
bool fallback:1;
|
||||
|
||||
/* The "y" in "hw:x,y". This is set to -1 before the device index has been
|
||||
* queried, or if the query failed. */
|
||||
int hw_device_index;
|
||||
|
||||
/* Temporarily used during probing */
|
||||
snd_pcm_t *input_pcm;
|
||||
snd_pcm_t *output_pcm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue