diff options
Diffstat (limited to 'sound/aoa/fabrics/snd-aoa-fabric-layout.c')
-rw-r--r-- | sound/aoa/fabrics/snd-aoa-fabric-layout.c | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/sound/aoa/fabrics/snd-aoa-fabric-layout.c b/sound/aoa/fabrics/snd-aoa-fabric-layout.c index cbc8a3b5cea4..172eb95476c0 100644 --- a/sound/aoa/fabrics/snd-aoa-fabric-layout.c +++ b/sound/aoa/fabrics/snd-aoa-fabric-layout.c | |||
@@ -77,24 +77,39 @@ struct layout { | |||
77 | int pcmid; | 77 | int pcmid; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | MODULE_ALIAS("sound-layout-36"); | ||
80 | MODULE_ALIAS("sound-layout-41"); | 81 | MODULE_ALIAS("sound-layout-41"); |
81 | MODULE_ALIAS("sound-layout-45"); | 82 | MODULE_ALIAS("sound-layout-45"); |
83 | MODULE_ALIAS("sound-layout-47"); | ||
84 | MODULE_ALIAS("sound-layout-48"); | ||
85 | MODULE_ALIAS("sound-layout-49"); | ||
86 | MODULE_ALIAS("sound-layout-50"); | ||
82 | MODULE_ALIAS("sound-layout-51"); | 87 | MODULE_ALIAS("sound-layout-51"); |
88 | MODULE_ALIAS("sound-layout-56"); | ||
89 | MODULE_ALIAS("sound-layout-57"); | ||
83 | MODULE_ALIAS("sound-layout-58"); | 90 | MODULE_ALIAS("sound-layout-58"); |
84 | MODULE_ALIAS("sound-layout-60"); | 91 | MODULE_ALIAS("sound-layout-60"); |
85 | MODULE_ALIAS("sound-layout-61"); | 92 | MODULE_ALIAS("sound-layout-61"); |
93 | MODULE_ALIAS("sound-layout-62"); | ||
86 | MODULE_ALIAS("sound-layout-64"); | 94 | MODULE_ALIAS("sound-layout-64"); |
87 | MODULE_ALIAS("sound-layout-65"); | 95 | MODULE_ALIAS("sound-layout-65"); |
96 | MODULE_ALIAS("sound-layout-66"); | ||
97 | MODULE_ALIAS("sound-layout-67"); | ||
88 | MODULE_ALIAS("sound-layout-68"); | 98 | MODULE_ALIAS("sound-layout-68"); |
89 | MODULE_ALIAS("sound-layout-69"); | 99 | MODULE_ALIAS("sound-layout-69"); |
90 | MODULE_ALIAS("sound-layout-70"); | 100 | MODULE_ALIAS("sound-layout-70"); |
91 | MODULE_ALIAS("sound-layout-72"); | 101 | MODULE_ALIAS("sound-layout-72"); |
102 | MODULE_ALIAS("sound-layout-76"); | ||
92 | MODULE_ALIAS("sound-layout-80"); | 103 | MODULE_ALIAS("sound-layout-80"); |
93 | MODULE_ALIAS("sound-layout-82"); | 104 | MODULE_ALIAS("sound-layout-82"); |
94 | MODULE_ALIAS("sound-layout-84"); | 105 | MODULE_ALIAS("sound-layout-84"); |
95 | MODULE_ALIAS("sound-layout-86"); | 106 | MODULE_ALIAS("sound-layout-86"); |
107 | MODULE_ALIAS("sound-layout-90"); | ||
96 | MODULE_ALIAS("sound-layout-92"); | 108 | MODULE_ALIAS("sound-layout-92"); |
109 | MODULE_ALIAS("sound-layout-94"); | ||
97 | MODULE_ALIAS("sound-layout-96"); | 110 | MODULE_ALIAS("sound-layout-96"); |
111 | MODULE_ALIAS("sound-layout-98"); | ||
112 | MODULE_ALIAS("sound-layout-100"); | ||
98 | 113 | ||
99 | /* onyx with all but microphone connected */ | 114 | /* onyx with all but microphone connected */ |
100 | static struct codec_connection onyx_connections_nomic[] = { | 115 | static struct codec_connection onyx_connections_nomic[] = { |
@@ -950,11 +965,12 @@ static int aoa_fabric_layout_probe(struct soundbus_dev *sdev) | |||
950 | layout_id = (unsigned int *) get_property(sound, "layout-id", NULL); | 965 | layout_id = (unsigned int *) get_property(sound, "layout-id", NULL); |
951 | if (!layout_id) | 966 | if (!layout_id) |
952 | goto outnodev; | 967 | goto outnodev; |
953 | printk(KERN_INFO "snd-aoa-fabric-layout: found bus with layout %d ", *layout_id); | 968 | printk(KERN_INFO "snd-aoa-fabric-layout: found bus with layout %d\n", |
969 | *layout_id); | ||
954 | 970 | ||
955 | layout = find_layout_by_id(*layout_id); | 971 | layout = find_layout_by_id(*layout_id); |
956 | if (!layout) { | 972 | if (!layout) { |
957 | printk("(no idea how to handle)\n"); | 973 | printk(KERN_ERR "snd-aoa-fabric-layout: unknown layout\n"); |
958 | goto outnodev; | 974 | goto outnodev; |
959 | } | 975 | } |
960 | 976 | ||
@@ -972,15 +988,17 @@ static int aoa_fabric_layout_probe(struct soundbus_dev *sdev) | |||
972 | case 51: /* PowerBook5,4 */ | 988 | case 51: /* PowerBook5,4 */ |
973 | case 58: /* Mac Mini */ | 989 | case 58: /* Mac Mini */ |
974 | ldev->gpio.methods = ftr_gpio_methods; | 990 | ldev->gpio.methods = ftr_gpio_methods; |
991 | printk(KERN_DEBUG | ||
992 | "snd-aoa-fabric-layout: Using direct GPIOs\n"); | ||
975 | break; | 993 | break; |
976 | default: | 994 | default: |
977 | ldev->gpio.methods = pmf_gpio_methods; | 995 | ldev->gpio.methods = pmf_gpio_methods; |
996 | printk(KERN_DEBUG | ||
997 | "snd-aoa-fabric-layout: Using PMF GPIOs\n"); | ||
978 | } | 998 | } |
979 | ldev->selfptr_headphone.ptr = ldev; | 999 | ldev->selfptr_headphone.ptr = ldev; |
980 | ldev->selfptr_lineout.ptr = ldev; | 1000 | ldev->selfptr_lineout.ptr = ldev; |
981 | sdev->ofdev.dev.driver_data = ldev; | 1001 | sdev->ofdev.dev.driver_data = ldev; |
982 | |||
983 | printk("(using)\n"); | ||
984 | list_add(&ldev->list, &layouts_list); | 1002 | list_add(&ldev->list, &layouts_list); |
985 | layouts_list_items++; | 1003 | layouts_list_items++; |
986 | 1004 | ||