]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: add database entries for node with multiple units
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 7 Apr 2021 02:49:22 +0000 (11:49 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 7 Apr 2021 02:49:22 +0000 (11:49 +0900)
In IEEE 1394 bus, one node can include multiple units, which represent
certain functions such as video and audio. Although it's possible to
distinguish each unit, Linux FireWire character device corresponding to
the node can not have multiple group owners, therefore it's forced to
select one of the units as representative for function.

This commit adds database entries for units belongs to the same node.
The entries are aligned to inverse order of corresponding unit order
in configuration ROM to select the first unit as the representative.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
hwdb.d/80-ieee1394-unit-function.hwdb

index c499f938bfc2b96839aad4519796d987c886dab4..359ec8e5dafd4bc6839c0b8ea9eb93f262ca7714 100644 (file)
@@ -1071,3 +1071,65 @@ ieee1394:ven000002F0mo00000000sp0000A02Dver00000100
   ID_VENDOR_FROM_DATABASE=Cool Stream
   ID_MODEL_FROM_DATABASE=iSweet
   IEEE1394_UNIT_FUNCTION_VIDEO=1
+
+#
+# Node with multiple units for several functions.
+#
+# When deciding the type of unit, please cooperate with kernel developers working for driver.
+#
+
+# Apple iSight: unit 0: IIDC v1.30 function.
+ieee1394:node:ven0x080007mo0x000008units*0x00a02d:0x000102*
+ieee1394:ven00080007mo00000008sp0000A02Dver00000102
+  ID_VENDOR_FROM_DATABASE=Apple
+  ID_MODEL_FROM_DATABASE=iSight
+  IEEE1394_UNIT_FUNCTION_VIDEO=1
+
+# Apple iSight: unit 1: audio function.
+ieee1394:node:ven0x080007mo0x000008units*0x000a27:0x000010*
+ieee1394:ven00080007mo00000008sp00000A27ver00000010
+  ID_VENDOR_FROM_DATABASE=Apple
+  ID_MODEL_FROM_DATABASE=iSight
+  IEEE1394_UNIT_FUNCTION_AUDIO=1
+
+# Apple iSight: unit 2: factory function.
+ieee1394:node:ven0x080007mo0x000008units*0x000a27:0x000011*
+ieee1394:ven00080007mo00000008sp00000A27ver00000011
+  ID_VENDOR_FROM_DATABASE=Apple
+  ID_MODEL_FROM_DATABASE=iSight
+  IEEE1394_UNIT_FUNCTION_VIDEO=1
+
+# Apple iSight: unit 3: iris diaphragm function.
+ieee1394:node:ven0x080007mo0x000008units*0x000a27:0x000012*
+ieee1394:ven00080007mo00000008sp00000A27ver00000012
+  ID_VENDOR_FROM_DATABASE=Apple
+  ID_MODEL_FROM_DATABASE=iSight
+  IEEE1394_UNIT_FUNCTION_VIDEO=1
+
+# MOTU V4HD: unit 0: unknown function.
+ieee1394:node:ven0x0001f2units*0x0001f2:0x000021*
+ieee1394:ven000001F2mo*sp000001F2ver00000021
+  ID_VENDOR_FROM_DATABASE=MOTU
+  ID_MODEL_FROM_DATABASE=MOTU V4HD
+  IEEE1394_UNIT_FUNCTION_VIDEO=1
+
+# MOTU V4HD: unit 1: unknown function.
+ieee1394:node:ven0x0001f2units*0x0001f2:0x000022*
+ieee1394:ven000001F2mo*sp000001F2ver00000022
+  ID_VENDOR_FROM_DATABASE=MOTU
+  ID_MODEL_FROM_DATABASE=MOTU V4HD
+  IEEE1394_UNIT_FUNCTION_VIDEO=1
+
+# MOTU V4HD: unit 2: unknown function.
+ieee1394:node:ven0x0001f2units*0x0001f2:0x000023*
+ieee1394:ven000001F2mo*sp000001F2ver00000023
+  ID_VENDOR_FROM_DATABASE=MOTU
+  ID_MODEL_FROM_DATABASE=MOTU V4HD
+  IEEE1394_UNIT_FUNCTION_VIDEO=1
+
+# MOTU V4HD: unit 3: unknown function.
+ieee1394:node:ven0x0001f2units*0x0001f2:0x000024*
+ieee1394:ven000001F2mo*sp000001F2ver00000024
+  ID_VENDOR_FROM_DATABASE=MOTU
+  ID_MODEL_FROM_DATABASE=MOTU V4HD
+  IEEE1394_UNIT_FUNCTION_VIDEO=1