forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This cleans up the apple onboard audio driver filenames. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
- Loading branch information
Showing
22 changed files
with
30 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ MODULE_AUTHOR("Johannes Berg <[email protected]>"); | |
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; | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,9 +71,9 @@ MODULE_AUTHOR("Johannes Berg <[email protected]>"); | |
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; | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]>"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
snd-aoa-fabric-layout-objs += layout.o | ||
|
||
obj-$(CONFIG_SND_AOA_FABRIC_LAYOUT) += snd-aoa-fabric-layout.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.