diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/aoa/codecs/Makefile | 4 | ||||
-rw-r--r-- | sound/aoa/codecs/onyx.c (renamed from sound/aoa/codecs/snd-aoa-codec-onyx.c) | 12 | ||||
-rw-r--r-- | sound/aoa/codecs/onyx.h (renamed from sound/aoa/codecs/snd-aoa-codec-onyx.h) | 0 | ||||
-rw-r--r-- | sound/aoa/codecs/tas-basstreble.h (renamed from sound/aoa/codecs/snd-aoa-codec-tas-basstreble.h) | 0 | ||||
-rw-r--r-- | sound/aoa/codecs/tas-gain-table.h (renamed from sound/aoa/codecs/snd-aoa-codec-tas-gain-table.h) | 0 | ||||
-rw-r--r-- | sound/aoa/codecs/tas.c (renamed from sound/aoa/codecs/snd-aoa-codec-tas.c) | 8 | ||||
-rw-r--r-- | sound/aoa/codecs/tas.h (renamed from sound/aoa/codecs/snd-aoa-codec-tas.h) | 0 | ||||
-rw-r--r-- | sound/aoa/codecs/toonie.c (renamed from sound/aoa/codecs/snd-aoa-codec-toonie.c) | 2 | ||||
-rw-r--r-- | sound/aoa/core/Makefile | 8 | ||||
-rw-r--r-- | sound/aoa/core/alsa.c (renamed from sound/aoa/core/snd-aoa-alsa.c) | 4 | ||||
-rw-r--r-- | sound/aoa/core/alsa.h (renamed from sound/aoa/core/snd-aoa-alsa.h) | 0 | ||||
-rw-r--r-- | sound/aoa/core/core.c (renamed from sound/aoa/core/snd-aoa-core.c) | 2 | ||||
-rw-r--r-- | sound/aoa/core/gpio-feature.c (renamed from sound/aoa/core/snd-aoa-gpio-feature.c) | 2 | ||||
-rw-r--r-- | sound/aoa/core/gpio-pmf.c (renamed from sound/aoa/core/snd-aoa-gpio-pmf.c) | 0 | ||||
-rw-r--r-- | sound/aoa/fabrics/Makefile | 2 | ||||
-rw-r--r-- | sound/aoa/fabrics/layout.c (renamed from sound/aoa/fabrics/snd-aoa-fabric-layout.c) | 2 | ||||
-rw-r--r-- | sound/aoa/soundbus/i2sbus/Makefile | 2 | ||||
-rw-r--r-- | sound/aoa/soundbus/i2sbus/control.c (renamed from sound/aoa/soundbus/i2sbus/i2sbus-control.c) | 0 | ||||
-rw-r--r-- | sound/aoa/soundbus/i2sbus/core.c (renamed from sound/aoa/soundbus/i2sbus/i2sbus-core.c) | 4 | ||||
-rw-r--r-- | sound/aoa/soundbus/i2sbus/i2sbus.h | 2 | ||||
-rw-r--r-- | sound/aoa/soundbus/i2sbus/interface.h (renamed from sound/aoa/soundbus/i2sbus/i2sbus-interface.h) | 0 | ||||
-rw-r--r-- | sound/aoa/soundbus/i2sbus/pcm.c (renamed from sound/aoa/soundbus/i2sbus/i2sbus-pcm.c) | 0 |
22 files changed, 30 insertions, 24 deletions
diff --git a/sound/aoa/codecs/Makefile b/sound/aoa/codecs/Makefile index 31cbe68fd42f..c3ee77fc4b2d 100644 --- a/sound/aoa/codecs/Makefile +++ b/sound/aoa/codecs/Makefile | |||
@@ -1,3 +1,7 @@ | |||
1 | snd-aoa-codec-onyx-objs := onyx.o | ||
2 | snd-aoa-codec-tas-objs := tas.o | ||
3 | snd-aoa-codec-toonie-objs := toonie.o | ||
4 | |||
1 | obj-$(CONFIG_SND_AOA_ONYX) += snd-aoa-codec-onyx.o | 5 | obj-$(CONFIG_SND_AOA_ONYX) += snd-aoa-codec-onyx.o |
2 | obj-$(CONFIG_SND_AOA_TAS) += snd-aoa-codec-tas.o | 6 | obj-$(CONFIG_SND_AOA_TAS) += snd-aoa-codec-tas.o |
3 | obj-$(CONFIG_SND_AOA_TOONIE) += snd-aoa-codec-toonie.o | 7 | obj-$(CONFIG_SND_AOA_TOONIE) += snd-aoa-codec-toonie.o |
diff --git a/sound/aoa/codecs/snd-aoa-codec-onyx.c b/sound/aoa/codecs/onyx.c index 6a3837d480e5..15500b9d2da0 100644 --- a/sound/aoa/codecs/snd-aoa-codec-onyx.c +++ b/sound/aoa/codecs/onyx.c | |||
@@ -37,7 +37,7 @@ MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); | |||
37 | MODULE_LICENSE("GPL"); | 37 | MODULE_LICENSE("GPL"); |
38 | MODULE_DESCRIPTION("pcm3052 (onyx) codec driver for snd-aoa"); | 38 | MODULE_DESCRIPTION("pcm3052 (onyx) codec driver for snd-aoa"); |
39 | 39 | ||
40 | #include "snd-aoa-codec-onyx.h" | 40 | #include "onyx.h" |
41 | #include "../aoa.h" | 41 | #include "../aoa.h" |
42 | #include "../soundbus/soundbus.h" | 42 | #include "../soundbus/soundbus.h" |
43 | 43 | ||
@@ -292,7 +292,7 @@ static int onyx_snd_capture_source_put(struct snd_kcontrol *kcontrol, | |||
292 | static struct snd_kcontrol_new capture_source_control = { | 292 | static struct snd_kcontrol_new capture_source_control = { |
293 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 293 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
294 | /* If we name this 'Input Source', it properly shows up in | 294 | /* If we name this 'Input Source', it properly shows up in |
295 | * alsamixer as a selection, * but it's shown under the | 295 | * alsamixer as a selection, * but it's shown under the |
296 | * 'Playback' category. | 296 | * 'Playback' category. |
297 | * If I name it 'Capture Source', it shows up in strange | 297 | * If I name it 'Capture Source', it shows up in strange |
298 | * ways (two bools of which one can be selected at a | 298 | * ways (two bools of which one can be selected at a |
@@ -477,7 +477,7 @@ static int onyx_spdif_mask_get(struct snd_kcontrol *kcontrol, | |||
477 | 477 | ||
478 | ucontrol->value.iec958.status[3] = 0x3f; | 478 | ucontrol->value.iec958.status[3] = 0x3f; |
479 | ucontrol->value.iec958.status[4] = 0x0f; | 479 | ucontrol->value.iec958.status[4] = 0x0f; |
480 | 480 | ||
481 | return 0; | 481 | return 0; |
482 | } | 482 | } |
483 | 483 | ||
@@ -682,7 +682,7 @@ static int onyx_usable(struct codec_info_item *cii, | |||
682 | onyx_read_register(onyx, ONYX_REG_DIG_INFO4, &v); | 682 | onyx_read_register(onyx, ONYX_REG_DIG_INFO4, &v); |
683 | spdif_enabled = !!(v & ONYX_SPDIF_ENABLE); | 683 | spdif_enabled = !!(v & ONYX_SPDIF_ENABLE); |
684 | onyx_read_register(onyx, ONYX_REG_DAC_CONTROL, &v); | 684 | onyx_read_register(onyx, ONYX_REG_DAC_CONTROL, &v); |
685 | analog_enabled = | 685 | analog_enabled = |
686 | (v & (ONYX_MUTE_RIGHT|ONYX_MUTE_LEFT)) | 686 | (v & (ONYX_MUTE_RIGHT|ONYX_MUTE_LEFT)) |
687 | != (ONYX_MUTE_RIGHT|ONYX_MUTE_LEFT); | 687 | != (ONYX_MUTE_RIGHT|ONYX_MUTE_LEFT); |
688 | mutex_unlock(&onyx->mutex); | 688 | mutex_unlock(&onyx->mutex); |
@@ -882,7 +882,7 @@ static int onyx_init_codec(struct aoa_codec *codec) | |||
882 | msleep(1); | 882 | msleep(1); |
883 | onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); | 883 | onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0); |
884 | msleep(1); | 884 | msleep(1); |
885 | 885 | ||
886 | if (onyx_register_init(onyx)) { | 886 | if (onyx_register_init(onyx)) { |
887 | printk(KERN_ERR PFX "failed to initialise onyx registers\n"); | 887 | printk(KERN_ERR PFX "failed to initialise onyx registers\n"); |
888 | return -ENODEV; | 888 | return -ENODEV; |
@@ -1069,7 +1069,7 @@ static int onyx_i2c_attach(struct i2c_adapter *adapter) | |||
1069 | 1069 | ||
1070 | /* if that didn't work, try desperate mode for older | 1070 | /* if that didn't work, try desperate mode for older |
1071 | * machines that have stuff missing from the device tree */ | 1071 | * machines that have stuff missing from the device tree */ |
1072 | 1072 | ||
1073 | if (!of_device_is_compatible(busnode, "k2-i2c")) | 1073 | if (!of_device_is_compatible(busnode, "k2-i2c")) |
1074 | return -ENODEV; | 1074 | return -ENODEV; |
1075 | 1075 | ||
diff --git a/sound/aoa/codecs/snd-aoa-codec-onyx.h b/sound/aoa/codecs/onyx.h index ffd20254ff76..ffd20254ff76 100644 --- a/sound/aoa/codecs/snd-aoa-codec-onyx.h +++ b/sound/aoa/codecs/onyx.h | |||
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas-basstreble.h b/sound/aoa/codecs/tas-basstreble.h index 69b61136fd54..69b61136fd54 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas-basstreble.h +++ b/sound/aoa/codecs/tas-basstreble.h | |||
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas-gain-table.h b/sound/aoa/codecs/tas-gain-table.h index 4cfa6757715e..4cfa6757715e 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas-gain-table.h +++ b/sound/aoa/codecs/tas-gain-table.h | |||
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.c b/sound/aoa/codecs/tas.c index 6c515b2b8bbd..008e0f85097d 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas.c +++ b/sound/aoa/codecs/tas.c | |||
@@ -71,9 +71,9 @@ MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); | |||
71 | MODULE_LICENSE("GPL"); | 71 | MODULE_LICENSE("GPL"); |
72 | MODULE_DESCRIPTION("tas codec driver for snd-aoa"); | 72 | MODULE_DESCRIPTION("tas codec driver for snd-aoa"); |
73 | 73 | ||
74 | #include "snd-aoa-codec-tas.h" | 74 | #include "tas.h" |
75 | #include "snd-aoa-codec-tas-gain-table.h" | 75 | #include "tas-gain-table.h" |
76 | #include "snd-aoa-codec-tas-basstreble.h" | 76 | #include "tas-basstreble.h" |
77 | #include "../aoa.h" | 77 | #include "../aoa.h" |
78 | #include "../soundbus/soundbus.h" | 78 | #include "../soundbus/soundbus.h" |
79 | 79 | ||
@@ -880,7 +880,7 @@ static void tas_exit_codec(struct aoa_codec *codec) | |||
880 | return; | 880 | return; |
881 | tas->codec.soundbus_dev->detach_codec(tas->codec.soundbus_dev, tas); | 881 | tas->codec.soundbus_dev->detach_codec(tas->codec.soundbus_dev, tas); |
882 | } | 882 | } |
883 | 883 | ||
884 | 884 | ||
885 | static struct i2c_driver tas_driver; | 885 | static struct i2c_driver tas_driver; |
886 | 886 | ||
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.h b/sound/aoa/codecs/tas.h index ae177e3466e6..ae177e3466e6 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas.h +++ b/sound/aoa/codecs/tas.h | |||
diff --git a/sound/aoa/codecs/snd-aoa-codec-toonie.c b/sound/aoa/codecs/toonie.c index 3c7d1d8a9a6f..f13827e17562 100644 --- a/sound/aoa/codecs/snd-aoa-codec-toonie.c +++ b/sound/aoa/codecs/toonie.c | |||
@@ -131,7 +131,7 @@ static int __init toonie_init(void) | |||
131 | toonie->codec.owner = THIS_MODULE; | 131 | toonie->codec.owner = THIS_MODULE; |
132 | toonie->codec.init = toonie_init_codec; | 132 | toonie->codec.init = toonie_init_codec; |
133 | toonie->codec.exit = toonie_exit_codec; | 133 | toonie->codec.exit = toonie_exit_codec; |
134 | 134 | ||
135 | if (aoa_codec_register(&toonie->codec)) { | 135 | if (aoa_codec_register(&toonie->codec)) { |
136 | kfree(toonie); | 136 | kfree(toonie); |
137 | return -EINVAL; | 137 | return -EINVAL; |
diff --git a/sound/aoa/core/Makefile b/sound/aoa/core/Makefile index 62dc7287f663..a1596e88c718 100644 --- a/sound/aoa/core/Makefile +++ b/sound/aoa/core/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | obj-$(CONFIG_SND_AOA) += snd-aoa.o | 1 | obj-$(CONFIG_SND_AOA) += snd-aoa.o |
2 | snd-aoa-objs := snd-aoa-core.o \ | 2 | snd-aoa-objs := core.o \ |
3 | snd-aoa-alsa.o \ | 3 | alsa.o \ |
4 | snd-aoa-gpio-pmf.o \ | 4 | gpio-pmf.o \ |
5 | snd-aoa-gpio-feature.o | 5 | gpio-feature.o |
diff --git a/sound/aoa/core/snd-aoa-alsa.c b/sound/aoa/core/alsa.c index 17fe689ed287..617850463582 100644 --- a/sound/aoa/core/snd-aoa-alsa.c +++ b/sound/aoa/core/alsa.c | |||
@@ -6,7 +6,7 @@ | |||
6 | * GPL v2, can be found in COPYING. | 6 | * GPL v2, can be found in COPYING. |
7 | */ | 7 | */ |
8 | #include <linux/module.h> | 8 | #include <linux/module.h> |
9 | #include "snd-aoa-alsa.h" | 9 | #include "alsa.h" |
10 | 10 | ||
11 | static int index = -1; | 11 | static int index = -1; |
12 | module_param(index, int, 0444); | 12 | module_param(index, int, 0444); |
@@ -64,7 +64,7 @@ int aoa_snd_device_new(snd_device_type_t type, | |||
64 | { | 64 | { |
65 | struct snd_card *card = aoa_get_card(); | 65 | struct snd_card *card = aoa_get_card(); |
66 | int err; | 66 | int err; |
67 | 67 | ||
68 | if (!card) return -ENOMEM; | 68 | if (!card) return -ENOMEM; |
69 | 69 | ||
70 | err = snd_device_new(card, type, device_data, ops); | 70 | err = snd_device_new(card, type, device_data, ops); |
diff --git a/sound/aoa/core/snd-aoa-alsa.h b/sound/aoa/core/alsa.h index 9669e4489cab..9669e4489cab 100644 --- a/sound/aoa/core/snd-aoa-alsa.h +++ b/sound/aoa/core/alsa.h | |||
diff --git a/sound/aoa/core/snd-aoa-core.c b/sound/aoa/core/core.c index 19fdae400687..10bec6c61382 100644 --- a/sound/aoa/core/snd-aoa-core.c +++ b/sound/aoa/core/core.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <linux/module.h> | 10 | #include <linux/module.h> |
11 | #include <linux/list.h> | 11 | #include <linux/list.h> |
12 | #include "../aoa.h" | 12 | #include "../aoa.h" |
13 | #include "snd-aoa-alsa.h" | 13 | #include "alsa.h" |
14 | 14 | ||
15 | MODULE_DESCRIPTION("Apple Onboard Audio Sound Driver"); | 15 | MODULE_DESCRIPTION("Apple Onboard Audio Sound Driver"); |
16 | MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); | 16 | MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); |
diff --git a/sound/aoa/core/snd-aoa-gpio-feature.c b/sound/aoa/core/gpio-feature.c index 805dcbff2257..c93ad5dec66b 100644 --- a/sound/aoa/core/snd-aoa-gpio-feature.c +++ b/sound/aoa/core/gpio-feature.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * | 5 | * |
6 | * GPL v2, can be found in COPYING. | 6 | * GPL v2, can be found in COPYING. |
7 | * | 7 | * |
8 | * This file contains the GPIO control routines for | 8 | * This file contains the GPIO control routines for |
9 | * direct (through feature calls) access to the GPIO | 9 | * direct (through feature calls) access to the GPIO |
10 | * registers. | 10 | * registers. |
11 | */ | 11 | */ |
diff --git a/sound/aoa/core/snd-aoa-gpio-pmf.c b/sound/aoa/core/gpio-pmf.c index 5ca2220eac7d..5ca2220eac7d 100644 --- a/sound/aoa/core/snd-aoa-gpio-pmf.c +++ b/sound/aoa/core/gpio-pmf.c | |||
diff --git a/sound/aoa/fabrics/Makefile b/sound/aoa/fabrics/Makefile index 55fc5e7e52cf..da37c10eca51 100644 --- a/sound/aoa/fabrics/Makefile +++ b/sound/aoa/fabrics/Makefile | |||
@@ -1 +1,3 @@ | |||
1 | snd-aoa-fabric-layout-objs += layout.o | ||
2 | |||
1 | obj-$(CONFIG_SND_AOA_FABRIC_LAYOUT) += snd-aoa-fabric-layout.o | 3 | obj-$(CONFIG_SND_AOA_FABRIC_LAYOUT) += snd-aoa-fabric-layout.o |
diff --git a/sound/aoa/fabrics/snd-aoa-fabric-layout.c b/sound/aoa/fabrics/layout.c index dea7abb082cd..ad60f5d10e82 100644 --- a/sound/aoa/fabrics/snd-aoa-fabric-layout.c +++ b/sound/aoa/fabrics/layout.c | |||
@@ -66,7 +66,7 @@ struct layout { | |||
66 | unsigned int layout_id; | 66 | unsigned int layout_id; |
67 | struct codec_connect_info codecs[MAX_CODECS_PER_BUS]; | 67 | struct codec_connect_info codecs[MAX_CODECS_PER_BUS]; |
68 | int flags; | 68 | int flags; |
69 | 69 | ||
70 | /* if busname is not assigned, we use 'Master' below, | 70 | /* if busname is not assigned, we use 'Master' below, |
71 | * so that our layout table doesn't need to be filled | 71 | * so that our layout table doesn't need to be filled |
72 | * too much. | 72 | * too much. |
diff --git a/sound/aoa/soundbus/i2sbus/Makefile b/sound/aoa/soundbus/i2sbus/Makefile index e57a5cf65655..1b949b2a4028 100644 --- a/sound/aoa/soundbus/i2sbus/Makefile +++ b/sound/aoa/soundbus/i2sbus/Makefile | |||
@@ -1,2 +1,2 @@ | |||
1 | obj-$(CONFIG_SND_AOA_SOUNDBUS_I2S) += snd-aoa-i2sbus.o | 1 | obj-$(CONFIG_SND_AOA_SOUNDBUS_I2S) += snd-aoa-i2sbus.o |
2 | snd-aoa-i2sbus-objs := i2sbus-core.o i2sbus-pcm.o i2sbus-control.o | 2 | snd-aoa-i2sbus-objs := core.o pcm.o control.o |
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-control.c b/sound/aoa/soundbus/i2sbus/control.c index 87beb4ad4d63..87beb4ad4d63 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus-control.c +++ b/sound/aoa/soundbus/i2sbus/control.c | |||
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-core.c b/sound/aoa/soundbus/i2sbus/core.c index b4590df07466..be468edf3ecb 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus-core.c +++ b/sound/aoa/soundbus/i2sbus/core.c | |||
@@ -64,7 +64,7 @@ static void free_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, | |||
64 | struct dbdma_command_mem *r) | 64 | struct dbdma_command_mem *r) |
65 | { | 65 | { |
66 | if (!r->space) return; | 66 | if (!r->space) return; |
67 | 67 | ||
68 | dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, | 68 | dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, |
69 | r->size, r->space, r->bus_addr); | 69 | r->size, r->space, r->bus_addr); |
70 | } | 70 | } |
@@ -247,7 +247,7 @@ static int i2sbus_add_dev(struct macio_dev *macio, | |||
247 | * but request_resource doesn't know about parents and | 247 | * but request_resource doesn't know about parents and |
248 | * contained resources... | 248 | * contained resources... |
249 | */ | 249 | */ |
250 | dev->allocated_resource[i] = | 250 | dev->allocated_resource[i] = |
251 | request_mem_region(dev->resources[i].start, | 251 | request_mem_region(dev->resources[i].start, |
252 | dev->resources[i].end - | 252 | dev->resources[i].end - |
253 | dev->resources[i].start + 1, | 253 | dev->resources[i].start + 1, |
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus.h b/sound/aoa/soundbus/i2sbus/i2sbus.h index ff29654782c9..befefd99e271 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus.h +++ b/sound/aoa/soundbus/i2sbus/i2sbus.h | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <asm/pmac_feature.h> | 18 | #include <asm/pmac_feature.h> |
19 | #include <asm/dbdma.h> | 19 | #include <asm/dbdma.h> |
20 | 20 | ||
21 | #include "i2sbus-interface.h" | 21 | #include "interface.h" |
22 | #include "../soundbus.h" | 22 | #include "../soundbus.h" |
23 | 23 | ||
24 | struct i2sbus_control { | 24 | struct i2sbus_control { |
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-interface.h b/sound/aoa/soundbus/i2sbus/interface.h index c6b5f5452d20..c6b5f5452d20 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus-interface.h +++ b/sound/aoa/soundbus/i2sbus/interface.h | |||
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c b/sound/aoa/soundbus/i2sbus/pcm.c index 59bacd365733..59bacd365733 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus-pcm.c +++ b/sound/aoa/soundbus/i2sbus/pcm.c | |||