alsa-mixer: add hw_device_index to pa_alsa_mapping
authorTanu Kaskinen <tanuk@iki.fi>
Sun, 8 Oct 2017 16:48:24 +0000 (19:48 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 13 Feb 2018 19:32:12 +0000 (21:32 +0200)
commit09ff3fca2fa9fe928990b3f0effeb1ddfbba0df1
treea32d3a348a051f8bd166eb2e800fb929664123c9
parent838d95dab7181cda950e4eace579ea7d32faf019
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
src/modules/alsa/alsa-mixer.c
src/modules/alsa/alsa-mixer.h