Debian Codegraph @

src/scarlett2-ioctls.h

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2023 Geoffrey D. Bennett <[email protected]>
2 // SPDX-License-Identifier: GPL-3.0-or-later
3
4 #ifndef SCARLETT2_IOCTLS_H
5 #define SCARLETT2_IOCTLS_H
6
7 #include <alsa/hwdep.h>
8
9 int scarlett2_open_card(char *alsa_name, snd_hwdep_t **hwdep);
10 int scarlett2_get_protocol_version(snd_hwdep_t *hwdep);
11 int scarlett2_lock(snd_hwdep_t *hwdep);
12 int scarlett2_unlock(snd_hwdep_t *hwdep);
13 int scarlett2_close(snd_hwdep_t *hwdep);
14
15 int scarlett2_reboot(snd_hwdep_t *hwdep);
16 int scarlett2_erase_config(snd_hwdep_t *hwdep);
17 int scarlett2_erase_firmware(snd_hwdep_t *hwdep);
18 int scarlett2_get_erase_progress(snd_hwdep_t *hwdep);
19 int scarlett2_write_firmware(
20 snd_hwdep_t *hwdep,
21 off_t offset,
22 unsigned char *buf,
23 size_t buf_len
24 );
25
26 #endif // SCARLETT2_IOCTLS_H