mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 17:18:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
36
sound/soc/codecs/sigmadsp-regmap.c
Normal file
36
sound/soc/codecs/sigmadsp-regmap.c
Normal file
|
@ -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 <lars@metafoo.de>");
|
||||
MODULE_DESCRIPTION("SigmaDSP regmap firmware loader");
|
||||
MODULE_LICENSE("GPL");
|
Loading…
Add table
Add a link
Reference in a new issue