xref: /linux/sound/soc/codecs/ntpfw.h (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /**
3  * ntpfw.h - Firmware helper functions for Neofidelity codecs
4  *
5  * Copyright (c) 2024, SaluteDevices. All Rights Reserved.
6  */
7 
8 #ifndef __NTPFW_H__
9 #define __NTPFW_H__
10 #include <linux/i2c.h>
11 #include <linux/firmware.h>
12 
13 /**
14  * ntpfw_load - load firmware to amplifier over i2c interface.
15  *
16  * @i2c		Pointer to amplifier's I2C client.
17  * @name	Firmware file name.
18  * @magic	Magic number to validate firmware.
19  * @return	0 or error code upon error.
20  */
21 int ntpfw_load(struct i2c_client *i2c, const char *name, const u32 magic);
22 
23 #endif /* __NTPFW_H__ */
24