summaryrefslogtreecommitdiff
path: root/corking.h
blob: fb4483cbea5fe9faa70276523a3797a1bcfa3d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef CORKING_H
#define CORKING_H

#include <stdbool.h>

extern void set_tcp_cork(int fd);
extern void set_tcp_uncork(int fd);
extern void set_udp_cork(int fd);
extern void set_udp_uncork(int fd);
extern void set_sock_cork(int fd, bool is_udp);
extern void set_sock_uncork(int fd, bool is_udp);

#endif /* CORKING_H */
lue='reload'/>
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>2016-09-01 11:38:40 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-09-02 14:13:39 +0200
commit847175e8e660045f9366e7efd091969e8f32cc0c (patch)
tree7ebb89db1f66f9c5191eae46f2af7468d65e9aa8
parenta695c302b49c8bf10b5336585a533d363d6436db (diff)
greybus: audio: Fetch jack_mask, button_mask from module's topology data
Added extra fields namely jack_mask & button_mask for each module_info. These fields are required while registering jack & reporting jack events. Earlier, these were hard coded values assuming fixed capabilities say HEADSET, LINEOUT, etc. supported by GB-codec driver. Now these are computed dynamically based on module's jack capability shared via topology data. Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org> Reviewed-by: Mark Greer <mgreer@animalcreek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat
-rw-r--r--drivers/staging/greybus/audio_codec.c68
-rw-r--r--drivers/staging/greybus/audio_codec.h8
-rw-r--r--drivers/staging/greybus/audio_module.c15
-rw-r--r--drivers/staging/greybus/audio_topology.c7
4 files changed, 63 insertions, 35 deletions
diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c