summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Drake <drake@endlessm.com>2016-12-15 16:11:11 -0600
committerLennart Poettering <lennart@poettering.net>2016-12-15 23:11:11 +0100
commitd84071d569700547f6283061d5f66b585ec952b3 (patch)
tree6627690215b332bab497f0c9287399684a65c529 /src
parentfc2371c7b1b41c2e3c8123317933322173f8abae (diff)
rules: identify internal sound cards on platform bus (#4893)
We have a system which has the HDMI audio capability internally, but pulseaudio is not giving it a very high priority compared to e.g. USB sound cards. The sound device appears on the platform bus and it is not currently tagged with any form factor information. It seems safe to assume that any sound card that is directly on the platform bus is of internal form factor, but we must be careful because udev rules will match all parent devices, not just the immediate parent, and you will frequently encounter setups such as: Platform bus -> USB host controller -> USB sound card In that case, SUBSYSTEMS==platform would match even though we're clearly working with an external USB sound card. In order to detect true platform devices here, we rely on the observation that if any parent devices of the sound card are PCI, USB or firewire devices, then this sound card cannot directly connected to the platform bus. Otherwise, if we find a parent device on the platform bus, we assume this is an internal sound card connected directly to the platform bus.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions