Lines Matching full:layout

3  * Apple Onboard Audio driver -- layout/machine id fabric
8 * layout-id or device-id property in the device tree.
20 MODULE_DESCRIPTION("Layout-ID fabric for snd-aoa");
24 /* These are the connections the layout fabric
63 struct layout { struct
69 * so that our layout table doesn't need to be filled argument
73 * multiple layout-ids */
78 MODULE_ALIAS("sound-layout-36"); argument
79 MODULE_ALIAS("sound-layout-41");
80 MODULE_ALIAS("sound-layout-45");
81 MODULE_ALIAS("sound-layout-47");
82 MODULE_ALIAS("sound-layout-48");
83 MODULE_ALIAS("sound-layout-49");
84 MODULE_ALIAS("sound-layout-50");
85 MODULE_ALIAS("sound-layout-51");
86 MODULE_ALIAS("sound-layout-56");
87 MODULE_ALIAS("sound-layout-57");
88 MODULE_ALIAS("sound-layout-58");
89 MODULE_ALIAS("sound-layout-60");
90 MODULE_ALIAS("sound-layout-61");
91 MODULE_ALIAS("sound-layout-62");
92 MODULE_ALIAS("sound-layout-64");
93 MODULE_ALIAS("sound-layout-65");
94 MODULE_ALIAS("sound-layout-66");
95 MODULE_ALIAS("sound-layout-67");
96 MODULE_ALIAS("sound-layout-68");
97 MODULE_ALIAS("sound-layout-69");
98 MODULE_ALIAS("sound-layout-70");
99 MODULE_ALIAS("sound-layout-72");
100 MODULE_ALIAS("sound-layout-76");
101 MODULE_ALIAS("sound-layout-80");
102 MODULE_ALIAS("sound-layout-82");
103 MODULE_ALIAS("sound-layout-84");
104 MODULE_ALIAS("sound-layout-86");
105 MODULE_ALIAS("sound-layout-90");
106 MODULE_ALIAS("sound-layout-92");
107 MODULE_ALIAS("sound-layout-94");
108 MODULE_ALIAS("sound-layout-96");
109 MODULE_ALIAS("sound-layout-98");
110 MODULE_ALIAS("sound-layout-100");
272 static struct layout layouts[] = {
563 static struct layout *find_layout_by_id(unsigned int id) in find_layout_by_id()
565 struct layout *l; in find_layout_by_id()
576 static struct layout *find_layout_by_device(unsigned int id) in find_layout_by_device()
578 struct layout *l; in find_layout_by_device()
589 static void use_layout(struct layout *l) in use_layout()
612 struct layout *layout; member
783 printk(KERN_INFO "snd-aoa-fabric-layout: " in check_codec()
788 printk(KERN_INFO "snd-aoa-fabric-layout: " in check_codec()
794 printk(KERN_INFO "snd-aoa-fabric-layout: " in check_codec()
806 printk(KERN_INFO "snd-aoa-fabric-layout: can use this codec\n"); in check_codec()
826 if (!ldev->layout->codecs[i].name) in layout_found_codec()
828 if (strcmp(ldev->layout->codecs[i].name, codec->name) == 0) { in layout_found_codec()
831 &ldev->layout->codecs[i]) == 0) in layout_found_codec()
842 /* here remove the codec from the layout dev's in layout_remove_codec()
1001 struct layout *layout = NULL; in aoa_fabric_layout_probe() local
1017 id = of_get_property(sound, "layout-id", NULL); in aoa_fabric_layout_probe()
1019 layout = find_layout_by_id(*id); in aoa_fabric_layout_probe()
1023 layout = find_layout_by_device(*id); in aoa_fabric_layout_probe()
1026 if (!layout) { in aoa_fabric_layout_probe()
1027 printk(KERN_ERR "snd-aoa-fabric-layout: unknown layout\n"); in aoa_fabric_layout_probe()
1038 ldev->layout = layout; in aoa_fabric_layout_probe()
1040 switch (layout->layout_id) { in aoa_fabric_layout_probe()
1047 "snd-aoa-fabric-layout: Using direct GPIOs\n"); in aoa_fabric_layout_probe()
1052 "snd-aoa-fabric-layout: Using PMF GPIOs\n"); in aoa_fabric_layout_probe()
1063 sdev->pcmid = ldev->layout->pcmid; in aoa_fabric_layout_probe()
1064 if (ldev->layout->busname) { in aoa_fabric_layout_probe()
1065 sdev->pcmname = ldev->layout->busname; in aoa_fabric_layout_probe()
1074 printk(KERN_INFO "snd-aoa-fabric-layout: can't use," in aoa_fabric_layout_probe()
1079 use_layout(layout); in aoa_fabric_layout_probe()