forked from tytso/ext4
-
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.
Merge tag 'asoc-v3.16-rc1' of git://git.kernel.org/pub/scm/linux/kern…
…el/git/broonie/sound into for-linus ASoC: Fixes for v3.16 Quite a few build coverage fixes in here among the usual small driver fixes includling the sigmadsp change from Lars - moving the driver to separate modules per bus (which is basically just code motion) avoids issues with some combinations of buses being enabled.
- Loading branch information
Showing
11 changed files
with
135 additions
and
89 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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Load Analog Devices SigmaStudio firmware files | ||
* | ||
* Copyright 2009-2011 Analog Devices Inc. | ||
* | ||
* Licensed under the GPL-2 or later. | ||
*/ | ||
|
||
#include <linux/i2c.h> | ||
#include <linux/export.h> | ||
#include <linux/module.h> | ||
|
||
#include "sigmadsp.h" | ||
|
||
static int sigma_action_write_i2c(void *control_data, | ||
const struct sigma_action *sa, size_t len) | ||
{ | ||
return i2c_master_send(control_data, (const unsigned char *)&sa->addr, | ||
len); | ||
} | ||
|
||
int process_sigma_firmware(struct i2c_client *client, const char *name) | ||
{ | ||
struct sigma_firmware ssfw; | ||
|
||
ssfw.control_data = client; | ||
ssfw.write = sigma_action_write_i2c; | ||
|
||
return _process_sigma_firmware(&client->dev, &ssfw, name); | ||
} | ||
EXPORT_SYMBOL(process_sigma_firmware); | ||
|
||
MODULE_AUTHOR("Lars-Peter Clausen <[email protected]>"); | ||
MODULE_DESCRIPTION("SigmaDSP I2C firmware loader"); | ||
MODULE_LICENSE("GPL"); |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Load Analog Devices SigmaStudio firmware files | ||
* | ||
* Copyright 2009-2011 Analog Devices Inc. | ||
* | ||
* Licensed under the GPL-2 or later. | ||
*/ | ||
|
||
#include <linux/regmap.h> | ||
#include <linux/export.h> | ||
#include <linux/module.h> | ||
|
||
#include "sigmadsp.h" | ||
|
||
static int sigma_action_write_regmap(void *control_data, | ||
const struct sigma_action *sa, size_t len) | ||
{ | ||
return regmap_raw_write(control_data, be16_to_cpu(sa->addr), | ||
sa->payload, len - 2); | ||
} | ||
|
||
int process_sigma_firmware_regmap(struct device *dev, struct regmap *regmap, | ||
const char *name) | ||
{ | ||
struct sigma_firmware ssfw; | ||
|
||
ssfw.control_data = regmap; | ||
ssfw.write = sigma_action_write_regmap; | ||
|
||
return _process_sigma_firmware(dev, &ssfw, name); | ||
} | ||
EXPORT_SYMBOL(process_sigma_firmware_regmap); | ||
|
||
MODULE_AUTHOR("Lars-Peter Clausen <[email protected]>"); | ||
MODULE_DESCRIPTION("SigmaDSP regmap firmware loader"); | ||
MODULE_LICENSE("GPL"); |
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
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
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
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