Lines Matching full:layout

3  * Apple Onboard Audio driver -- layout/machine id fabric
8 * layout-id or device-id property in the device tree.
19 MODULE_DESCRIPTION("Layout-ID fabric for snd-aoa");
23 /* These are the connections the layout fabric
62 struct layout { struct
68 * so that our layout table doesn't need to be filled argument
72 * multiple layout-ids */
77 MODULE_ALIAS("sound-layout-36"); argument
78 MODULE_ALIAS("sound-layout-41");
79 MODULE_ALIAS("sound-layout-45");
80 MODULE_ALIAS("sound-layout-47");
81 MODULE_ALIAS("sound-layout-48");
82 MODULE_ALIAS("sound-layout-49");
83 MODULE_ALIAS("sound-layout-50");
84 MODULE_ALIAS("sound-layout-51");
85 MODULE_ALIAS("sound-layout-56");
86 MODULE_ALIAS("sound-layout-57");
87 MODULE_ALIAS("sound-layout-58");
88 MODULE_ALIAS("sound-layout-60");
89 MODULE_ALIAS("sound-layout-61");
90 MODULE_ALIAS("sound-layout-62");
91 MODULE_ALIAS("sound-layout-64");
92 MODULE_ALIAS("sound-layout-65");
93 MODULE_ALIAS("sound-layout-66");
94 MODULE_ALIAS("sound-layout-67");
95 MODULE_ALIAS("sound-layout-68");
96 MODULE_ALIAS("sound-layout-69");
97 MODULE_ALIAS("sound-layout-70");
98 MODULE_ALIAS("sound-layout-72");
99 MODULE_ALIAS("sound-layout-76");
100 MODULE_ALIAS("sound-layout-80");
101 MODULE_ALIAS("sound-layout-82");
102 MODULE_ALIAS("sound-layout-84");
103 MODULE_ALIAS("sound-layout-86");
104 MODULE_ALIAS("sound-layout-90");
105 MODULE_ALIAS("sound-layout-92");
106 MODULE_ALIAS("sound-layout-94");
107 MODULE_ALIAS("sound-layout-96");
108 MODULE_ALIAS("sound-layout-98");
109 MODULE_ALIAS("sound-layout-100");
271 static struct layout layouts[] = {
562 static struct layout *find_layout_by_id(unsigned int id) in find_layout_by_id()
564 struct layout *l; in find_layout_by_id()
575 static struct layout *find_layout_by_device(unsigned int id) in find_layout_by_device()
577 struct layout *l; in find_layout_by_device()
588 static void use_layout(struct layout *l) in use_layout()
611 struct layout *layout; member
782 printk(KERN_INFO "snd-aoa-fabric-layout: " in check_codec()
787 printk(KERN_INFO "snd-aoa-fabric-layout: " in check_codec()
793 printk(KERN_INFO "snd-aoa-fabric-layout: " in check_codec()
805 printk(KERN_INFO "snd-aoa-fabric-layout: can use this codec\n"); in check_codec()
825 if (!ldev->layout->codecs[i].name) in layout_found_codec()
827 if (strcmp(ldev->layout->codecs[i].name, codec->name) == 0) { in layout_found_codec()
830 &ldev->layout->codecs[i]) == 0) in layout_found_codec()
841 /* here remove the codec from the layout dev's in layout_remove_codec()
1000 struct layout *layout = NULL; in aoa_fabric_layout_probe() local
1016 id = of_get_property(sound, "layout-id", NULL); in aoa_fabric_layout_probe()
1018 layout = find_layout_by_id(*id); in aoa_fabric_layout_probe()
1022 layout = find_layout_by_device(*id); in aoa_fabric_layout_probe()
1025 if (!layout) { in aoa_fabric_layout_probe()
1026 printk(KERN_ERR "snd-aoa-fabric-layout: unknown layout\n"); in aoa_fabric_layout_probe()
1037 ldev->layout = layout; in aoa_fabric_layout_probe()
1039 switch (layout->layout_id) { in aoa_fabric_layout_probe()
1046 "snd-aoa-fabric-layout: Using direct GPIOs\n"); in aoa_fabric_layout_probe()
1051 "snd-aoa-fabric-layout: Using PMF GPIOs\n"); in aoa_fabric_layout_probe()
1062 sdev->pcmid = ldev->layout->pcmid; in aoa_fabric_layout_probe()
1063 if (ldev->layout->busname) { in aoa_fabric_layout_probe()
1064 sdev->pcmname = ldev->layout->busname; in aoa_fabric_layout_probe()
1073 printk(KERN_INFO "snd-aoa-fabric-layout: can't use," in aoa_fabric_layout_probe()
1078 use_layout(layout); in aoa_fabric_layout_probe()