Skip to content

Commit 888dcb7

Browse files
jmbergtiwai
authored andcommitted
ALSA: aoa: clean up file names
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>
1 parent 72474be commit 888dcb7

22 files changed

Lines changed: 30 additions & 24 deletions

‎sound/aoa/codecs/Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
15
obj-$(CONFIG_SND_AOA_ONYX) += snd-aoa-codec-onyx.o
26
obj-$(CONFIG_SND_AOA_TAS) += snd-aoa-codec-tas.o
37
obj-$(CONFIG_SND_AOA_TOONIE) += snd-aoa-codec-toonie.o
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
3737
MODULE_LICENSE("GPL");
3838
MODULE_DESCRIPTION("pcm3052 (onyx) codec driver for snd-aoa");
3939

40-
#include "snd-aoa-codec-onyx.h"
40+
#include "onyx.h"
4141
#include "../aoa.h"
4242
#include "../soundbus/soundbus.h"
4343

@@ -292,7 +292,7 @@ static int onyx_snd_capture_source_put(struct snd_kcontrol *kcontrol,
292292
static struct snd_kcontrol_new capture_source_control = {
293293
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
294294
/* 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
296296
* 'Playback' category.
297297
* If I name it 'Capture Source', it shows up in strange
298298
* 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,
477477

478478
ucontrol->value.iec958.status[3] = 0x3f;
479479
ucontrol->value.iec958.status[4] = 0x0f;
480-
480+
481481
return 0;
482482
}
483483

@@ -682,7 +682,7 @@ static int onyx_usable(struct codec_info_item *cii,
682682
onyx_read_register(onyx, ONYX_REG_DIG_INFO4, &v);
683683
spdif_enabled = !!(v & ONYX_SPDIF_ENABLE);
684684
onyx_read_register(onyx, ONYX_REG_DAC_CONTROL, &v);
685-
analog_enabled =
685+
analog_enabled =
686686
(v & (ONYX_MUTE_RIGHT|ONYX_MUTE_LEFT))
687687
!= (ONYX_MUTE_RIGHT|ONYX_MUTE_LEFT);
688688
mutex_unlock(&onyx->mutex);
@@ -882,7 +882,7 @@ static int onyx_init_codec(struct aoa_codec *codec)
882882
msleep(1);
883883
onyx->codec.gpio->methods->set_hw_reset(onyx->codec.gpio, 0);
884884
msleep(1);
885-
885+
886886
if (onyx_register_init(onyx)) {
887887
printk(KERN_ERR PFX "failed to initialise onyx registers\n");
888888
return -ENODEV;
@@ -1069,7 +1069,7 @@ static int onyx_i2c_attach(struct i2c_adapter *adapter)
10691069

10701070
/* if that didn't work, try desperate mode for older
10711071
* machines that have stuff missing from the device tree */
1072-
1072+
10731073
if (!of_device_is_compatible(busnode, "k2-i2c"))
10741074
return -ENODEV;
10751075

File renamed without changes.
File renamed without changes.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
7171
MODULE_LICENSE("GPL");
7272
MODULE_DESCRIPTION("tas codec driver for snd-aoa");
7373

74-
#include "snd-aoa-codec-tas.h"
75-
#include "snd-aoa-codec-tas-gain-table.h"
76-
#include "snd-aoa-codec-tas-basstreble.h"
74+
#include "tas.h"
75+
#include "tas-gain-table.h"
76+
#include "tas-basstreble.h"
7777
#include "../aoa.h"
7878
#include "../soundbus/soundbus.h"
7979

@@ -880,7 +880,7 @@ static void tas_exit_codec(struct aoa_codec *codec)
880880
return;
881881
tas->codec.soundbus_dev->detach_codec(tas->codec.soundbus_dev, tas);
882882
}
883-
883+
884884

885885
static struct i2c_driver tas_driver;
886886

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static int __init toonie_init(void)
131131
toonie->codec.owner = THIS_MODULE;
132132
toonie->codec.init = toonie_init_codec;
133133
toonie->codec.exit = toonie_exit_codec;
134-
134+
135135
if (aoa_codec_register(&toonie->codec)) {
136136
kfree(toonie);
137137
return -EINVAL;

‎sound/aoa/core/Makefile‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
obj-$(CONFIG_SND_AOA) += snd-aoa.o
2-
snd-aoa-objs := snd-aoa-core.o \
3-
snd-aoa-alsa.o \
4-
snd-aoa-gpio-pmf.o \
5-
snd-aoa-gpio-feature.o
2+
snd-aoa-objs := core.o \
3+
alsa.o \
4+
gpio-pmf.o \
5+
gpio-feature.o
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* GPL v2, can be found in COPYING.
77
*/
88
#include <linux/module.h>
9-
#include "snd-aoa-alsa.h"
9+
#include "alsa.h"
1010

1111
static int index = -1;
1212
module_param(index, int, 0444);
@@ -64,7 +64,7 @@ int aoa_snd_device_new(snd_device_type_t type,
6464
{
6565
struct snd_card *card = aoa_get_card();
6666
int err;
67-
67+
6868
if (!card) return -ENOMEM;
6969

7070
err = snd_device_new(card, type, device_data, ops);

0 commit comments

Comments
 (0)