mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-09 01:28: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
42
include/sound/exynos_regmap_fw.h
Normal file
42
include/sound/exynos_regmap_fw.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* API to parse firmware binary and update codec
|
||||
*
|
||||
* Copyright (c) 2014 Samsung Electronics Co. Ltd.
|
||||
* Tushar Behera <tushar.b@samsung.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef _REGMAP_FW_H__
|
||||
#define _REGMAP_FW_H__
|
||||
|
||||
#include <linux/firmware.h>
|
||||
|
||||
#ifdef CONFIG_SND_SOC_REGMAP_FIRMWARE
|
||||
void exynos_regmap_update_fw(const char *fw_name,
|
||||
struct device *dev,
|
||||
struct regmap *regmap,
|
||||
int i2c_addr,
|
||||
void (*post_fn)(void *),
|
||||
void *post_fn_arg,
|
||||
void (*post_fn_failed)(void *),
|
||||
void *post_fn_failed_arg);
|
||||
#else
|
||||
static void exynos_regmap_update_fw(const char *fw_name,
|
||||
struct device *dev,
|
||||
struct regmap *regmap,
|
||||
int i2c_addr,
|
||||
void (*post_fn)(void *),
|
||||
void *post_fn_arg,
|
||||
void (*post_fn_failed)(void *),
|
||||
void *post_fn_failed_arg)
|
||||
{
|
||||
if (post_fn_failed)
|
||||
post_fn_failed(post_fn_failed_arg);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _REGMAP_FW_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue