]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: aoa: clean up file names
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 23 Oct 2008 13:47:56 +0000 (15:47 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 Oct 2008 16:43:42 +0000 (18:43 +0200)
This cleans up the apple onboard audio driver filenames.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
22 files changed:
sound/aoa/codecs/Makefile
sound/aoa/codecs/onyx.c [moved from sound/aoa/codecs/snd-aoa-codec-onyx.c with 99% similarity]
sound/aoa/codecs/onyx.h [moved from sound/aoa/codecs/snd-aoa-codec-onyx.h with 100% similarity]
sound/aoa/codecs/tas-basstreble.h [moved from sound/aoa/codecs/snd-aoa-codec-tas-basstreble.h with 100% similarity]
sound/aoa/codecs/tas-gain-table.h [moved from sound/aoa/codecs/snd-aoa-codec-tas-gain-table.h with 100% similarity]
sound/aoa/codecs/tas.c [moved from sound/aoa/codecs/snd-aoa-codec-tas.c with 99% similarity]
sound/aoa/codecs/tas.h [moved from sound/aoa/codecs/snd-aoa-codec-tas.h with 100% similarity]
sound/aoa/codecs/toonie.c [moved from sound/aoa/codecs/snd-aoa-codec-toonie.c with 98% similarity]
sound/aoa/core/Makefile
sound/aoa/core/alsa.c [moved from sound/aoa/core/snd-aoa-alsa.c with 98% similarity]
sound/aoa/core/alsa.h [moved from sound/aoa/core/snd-aoa-alsa.h with 100% similarity]
sound/aoa/core/core.c [moved from sound/aoa/core/snd-aoa-core.c with 99% similarity]
sound/aoa/core/gpio-feature.c [moved from sound/aoa/core/snd-aoa-gpio-feature.c with 99% similarity]
sound/aoa/core/gpio-pmf.c [moved from sound/aoa/core/snd-aoa-gpio-pmf.c with 100% similarity]
sound/aoa/fabrics/Makefile
sound/aoa/fabrics/layout.c [moved from sound/aoa/fabrics/snd-aoa-fabric-layout.c with 99% similarity]
sound/aoa/soundbus/i2sbus/Makefile
sound/aoa/soundbus/i2sbus/control.c [moved from sound/aoa/soundbus/i2sbus/i2sbus-control.c with 100% similarity]
sound/aoa/soundbus/i2sbus/core.c [moved from sound/aoa/soundbus/i2sbus/i2sbus-core.c with 99% similarity]
sound/aoa/soundbus/i2sbus/i2sbus.h
sound/aoa/soundbus/i2sbus/interface.h [moved from sound/aoa/soundbus/i2sbus/i2sbus-interface.h with 100% similarity]
sound/aoa/soundbus/i2sbus/pcm.c [moved from sound/aoa/soundbus/i2sbus/i2sbus-pcm.c with 100% similarity]

index 31cbe68fd42f172eebdc36bdc755996c462a3940..c3ee77fc4b2dc4bb5ae60191bea60705edcc4c36 100644 (file)
@@ -1,3 +1,7 @@
+snd-aoa-codec-onyx-objs := onyx.o
+snd-aoa-codec-tas-objs := tas.o
+snd-aoa-codec-toonie-objs := toonie.o
+
 obj-$(CONFIG_SND_AOA_ONYX) += snd-aoa-codec-onyx.o
 obj-$(CONFIG_SND_AOA_TAS) += snd-aoa-codec-tas.o
 obj-$(CONFIG_SND_AOA_TOONIE) += snd-aoa-codec-toonie.o
similarity index 99%
rename from sound/aoa/codecs/snd-aoa-codec-onyx.c
rename to sound/aoa/codecs/onyx.c
index 6a3837d480e5efa33ba11efd9460dcdab725d835..15500b9d2da04c44f62795515cd7fc20c042e73d 100644 (file)
@@ -37,7 +37,7 @@ MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("pcm3052 (onyx) codec driver for snd-aoa");
 
-#include "snd-aoa-codec-onyx.h"
+#include "onyx.h"
 #include "../aoa.h"
 #include "../soundbus/soundbus.h"
 
@@ -292,7 +292,7 @@ static int onyx_snd_capture_source_put(struct snd_kcontrol *kcontrol,
 static struct snd_kcontrol_new capture_source_control = {
        .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
        /* If we name this 'Input Source', it properly shows up in
-        * alsamixer as a selection, * but it's shown under the 
+        * alsamixer as a selection, * but it's shown under the
         * 'Playback' category.
         * If I name it 'Capture Source', it shows up in strange
         * 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,
 
        ucontrol->value.iec958.status[3] = 0x3f;
        ucontrol->value.iec958.status[4] = 0x0f;
-       
+
        return 0;
 }
 
@@ -682,7 +682,7 @@ static int onyx_usable(struct codec_info_item *cii,
        onyx_read_register(onyx, ONYX_REG_DIG_INFO4, &v);
        spdif_enabled = !!(v & ONYX_SPDIF_ENABLE);
        onyx_read_register(onyx, ONYX_REG_DAC_CONTROL, &v);
-       analog_enabled = 
+       analog_enabled =
                (v & (ONYX_MUTE_RIGHT|ONYX_MUTE_LEFT))
                 != (ONYX_MUTE_RIGHT|ONYX_MUTE_LEFT);
        mutex_unlock(&onyx->mutex);
@@ -882,7 +882,7 @@ static int onyx_init_codec(struct aoa_codec *codec)
        msleep(1);
        onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0);
        msleep(1);
-       
+
        if (onyx_register_init(onyx)) {
                printk(KERN_ERR PFX "failed to initialise onyx registers\n");
                return -ENODEV;
@@ -1069,7 +1069,7 @@ static int onyx_i2c_attach(struct i2c_adapter *adapter)
 
        /* if that didn't work, try desperate mode for older
         * machines that have stuff missing from the device tree */
-       
+
        if (!of_device_is_compatible(busnode, "k2-i2c"))
                return -ENODEV;
 
similarity index 99%
rename from sound/aoa/codecs/snd-aoa-codec-tas.c
rename to sound/aoa/codecs/tas.c
index 6c515b2b8bbd00309f0baec15cebc9307ff3807d..008e0f85097dc958d4f3f267a3c395b9179561e9 100644 (file)
@@ -71,9 +71,9 @@ MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("tas codec driver for snd-aoa");
 
-#include "snd-aoa-codec-tas.h"
-#include "snd-aoa-codec-tas-gain-table.h"
-#include "snd-aoa-codec-tas-basstreble.h"
+#include "tas.h"
+#include "tas-gain-table.h"
+#include "tas-basstreble.h"
 #include "../aoa.h"
 #include "../soundbus/soundbus.h"
 
@@ -880,7 +880,7 @@ static void tas_exit_codec(struct aoa_codec *codec)
                return;
        tas->codec.soundbus_dev->detach_codec(tas->codec.soundbus_dev, tas);
 }
-       
+
 
 static struct i2c_driver tas_driver;
 
similarity index 98%
rename from sound/aoa/codecs/snd-aoa-codec-toonie.c
rename to sound/aoa/codecs/toonie.c
index 3c7d1d8a9a6f3f2568c40502e886a3d6e7ccd6ff..f13827e17562959d178d92edd76db44e545b84bc 100644 (file)
@@ -131,7 +131,7 @@ static int __init toonie_init(void)
        toonie->codec.owner = THIS_MODULE;
        toonie->codec.init = toonie_init_codec;
        toonie->codec.exit = toonie_exit_codec;
-                                        
+
        if (aoa_codec_register(&toonie->codec)) {
                kfree(toonie);
                return -EINVAL;
index 62dc7287f66315382b5dd4918e9b28027857bd82..a1596e88c718ceb808c15765229a0ddee00cfc51 100644 (file)
@@ -1,5 +1,5 @@
 obj-$(CONFIG_SND_AOA) += snd-aoa.o
-snd-aoa-objs := snd-aoa-core.o \
-               snd-aoa-alsa.o \
-               snd-aoa-gpio-pmf.o \
-               snd-aoa-gpio-feature.o
+snd-aoa-objs := core.o \
+               alsa.o \
+               gpio-pmf.o \
+               gpio-feature.o
similarity index 98%
rename from sound/aoa/core/snd-aoa-alsa.c
rename to sound/aoa/core/alsa.c
index 17fe689ed2878d9a3f70dfc10777f19ec4612d9c..617850463582fc682696969659bcda553ec02eb6 100644 (file)
@@ -6,7 +6,7 @@
  * GPL v2, can be found in COPYING.
  */
 #include <linux/module.h>
-#include "snd-aoa-alsa.h"
+#include "alsa.h"
 
 static int index = -1;
 module_param(index, int, 0444);
@@ -64,7 +64,7 @@ int aoa_snd_device_new(snd_device_type_t type,
 {
        struct snd_card *card = aoa_get_card();
        int err;
-       
+
        if (!card) return -ENOMEM;
 
        err = snd_device_new(card, type, device_data, ops);
similarity index 99%
rename from sound/aoa/core/snd-aoa-core.c
rename to sound/aoa/core/core.c
index 19fdae400687eef99eae88b1e1dd9730d91d7ec9..10bec6c6138203463c3368766295b9c79ebd858d 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/module.h>
 #include <linux/list.h>
 #include "../aoa.h"
-#include "snd-aoa-alsa.h"
+#include "alsa.h"
 
 MODULE_DESCRIPTION("Apple Onboard Audio Sound Driver");
 MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
similarity index 99%
rename from sound/aoa/core/snd-aoa-gpio-feature.c
rename to sound/aoa/core/gpio-feature.c
index 805dcbff22572c79748783b0ee6ae4022ed3e1f8..c93ad5dec66b54d7e50f10b98a06cd0ac9c5e5a8 100644 (file)
@@ -5,7 +5,7 @@
  *
  * GPL v2, can be found in COPYING.
  *
- * This file contains the GPIO control routines for 
+ * This file contains the GPIO control routines for
  * direct (through feature calls) access to the GPIO
  * registers.
  */
index 55fc5e7e52cfa0da563e1987c38494c35d63402c..da37c10eca51087bac1d08e5984f13720f29bd25 100644 (file)
@@ -1 +1,3 @@
+snd-aoa-fabric-layout-objs += layout.o
+
 obj-$(CONFIG_SND_AOA_FABRIC_LAYOUT) += snd-aoa-fabric-layout.o
similarity index 99%
rename from sound/aoa/fabrics/snd-aoa-fabric-layout.c
rename to sound/aoa/fabrics/layout.c
index dea7abb082cd1a5efd4038d2756147a852bd7760..ad60f5d10e82543195e17e843c62e39d7d0aa367 100644 (file)
@@ -66,7 +66,7 @@ struct layout {
        unsigned int layout_id;
        struct codec_connect_info codecs[MAX_CODECS_PER_BUS];
        int flags;
-       
+
        /* if busname is not assigned, we use 'Master' below,
         * so that our layout table doesn't need to be filled
         * too much.
index e57a5cf65655b4eee4f4a2f162c77a0a3380c0ba..1b949b2a402814d021febb71349a43370a6f5af4 100644 (file)
@@ -1,2 +1,2 @@
 obj-$(CONFIG_SND_AOA_SOUNDBUS_I2S) += snd-aoa-i2sbus.o
-snd-aoa-i2sbus-objs := i2sbus-core.o i2sbus-pcm.o i2sbus-control.o
+snd-aoa-i2sbus-objs := core.o pcm.o control.o
similarity index 99%
rename from sound/aoa/soundbus/i2sbus/i2sbus-core.c
rename to sound/aoa/soundbus/i2sbus/core.c
index e6beb92c6933f9df991af076f3ed17fb7b36b214..d1b5cff92499d68e954763fe2b10dd856ccaffbd 100644 (file)
@@ -64,7 +64,7 @@ static void free_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev,
                                       struct dbdma_command_mem *r)
 {
        if (!r->space) return;
-       
+
        dma_free_coherent(&macio_get_pci_dev(i2sdev->macio)->dev,
                            r->size, r->space, r->bus_addr);
 }
@@ -247,7 +247,7 @@ static int i2sbus_add_dev(struct macio_dev *macio,
                 * but request_resource doesn't know about parents and
                 * contained resources...
                 */
-               dev->allocated_resource[i] = 
+               dev->allocated_resource[i] =
                        request_mem_region(dev->resources[i].start,
                                           dev->resources[i].end -
                                           dev->resources[i].start + 1,
index ff29654782c96efdee2c3f9ba21064ea49bba393..befefd99e271a525a9a5175768501d199aa64887 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/pmac_feature.h>
 #include <asm/dbdma.h>
 
-#include "i2sbus-interface.h"
+#include "interface.h"
 #include "../soundbus.h"
 
 struct i2sbus_control {