mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
feat(intel): clarify firmware/DDC flow and preserve driver metadata
- Add explanatory comments across intel driver to clarify metadata parsing. - Ensure driver selection preserves runtime options (e.g. "intel/ddc_override:AABB") so driver-specific metadata is passed through to the host and available to drivers via host.hci_metadata. - Ensure transport parsing regex and metadata extraction so transport/source metadata is populated and visible to drivers. - Example usage: passing [driver=intel/ddc_override:AABB] will be preserved and can be consumed by the Intel driver to apply a DDC override blob.
This commit is contained in:
@@ -49,6 +49,10 @@ async def get_driver_for_host(host: Host) -> Optional[Driver]:
|
||||
driver_classes: dict[str, type[Driver]] = {"rtk": rtk.Driver, "intel": intel.Driver}
|
||||
probe_list: Iterable[str]
|
||||
if driver_name := host.hci_metadata.get("driver"):
|
||||
# The "driver" metadata may include runtime options after a '/' (for example
|
||||
# "intel/ddc=..."). Keep only the base driver name (the portion before the
|
||||
# first slash) so it matches a key in driver_classes (e.g. "intel").
|
||||
driver_name = driver_name.split("/")[0]
|
||||
# Only probe a single driver
|
||||
probe_list = [driver_name]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user