diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2018-06-01 11:32:30 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-01 11:37:00 -0400 |
commit | ceec4684085a9e4dc60439d84ab47ce260444804 (patch) | |
tree | 53172bb38877b041b82f6a0725e472aba199d9b6 | |
parent | a3aa60d511746bd6c0d0366d4eb90a7998bcde8b (diff) |
ALSA: pci/hda: Remove unused, broken, header file
sound/pci/hda/local.h seems to be an earlier version of
sound/hda/local.h; it was added at the same time but doesn't seem to
have ever been used (within the git history). Most of its macros
depend on a hdac_read_parm() function which is not defined anywhere.
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/local.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sound/pci/hda/local.h b/sound/pci/hda/local.h deleted file mode 100644 index 3b8b7d78f9e0..000000000000 --- a/sound/pci/hda/local.h +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
2 | /* | ||
3 | */ | ||
4 | |||
5 | #ifndef __HDAC_LOCAL_H | ||
6 | #define __HDAC_LOCAL_H | ||
7 | |||
8 | int hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm); | ||
9 | |||
10 | #define get_wcaps(codec, nid) \ | ||
11 | hdac_read_parm(codec, nid, AC_PAR_AUDIO_WIDGET_CAP) | ||
12 | /* get the widget type from widget capability bits */ | ||
13 | static inline int get_wcaps_type(unsigned int wcaps) | ||
14 | { | ||
15 | if (!wcaps) | ||
16 | return -1; /* invalid type */ | ||
17 | return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; | ||
18 | } | ||
19 | |||
20 | #define get_pin_caps(codec, nid) \ | ||
21 | hdac_read_parm(codec, nid, AC_PAR_PIN_CAP) | ||
22 | |||
23 | static inline | ||
24 | unsigned int get_pin_cfg(struct hdac_device *codec, hda_nid_t nid) | ||
25 | { | ||
26 | unsigned int val; | ||
27 | |||
28 | if (snd_hdac_read(codec, nid, AC_VERB_GET_CONFIG_DEFAULT, 0, &val)) | ||
29 | return -1; | ||
30 | return val; | ||
31 | } | ||
32 | |||
33 | #define get_amp_caps(codec, nid, dir) \ | ||
34 | hdac_read_parm(codec, nid, (dir) == HDA_OUTPUT ? \ | ||
35 | AC_PAR_AMP_OUT_CAP : AC_PAR_AMP_IN_CAP) | ||
36 | |||
37 | #define get_power_caps(codec, nid) \ | ||
38 | hdac_read_parm(codec, nid, AC_PAR_POWER_STATE) | ||
39 | |||
40 | #endif /* __HDAC_LOCAL_H */ | ||