diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-02-26 06:29:03 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-23 08:19:41 -0400 |
commit | 5e56bcea5017b7b7808df60f21ef01738b6e1a25 (patch) | |
tree | bf841e780837f867d8e842928440537e1eb465cc /include/sound | |
parent | faa75f8a2edf005a5caf43be4875ffeeb9bcb498 (diff) |
ALSA: hda - Allow driver to add vendor-specific verbs for regmap
Codecs may have own vendor-specific verbs, and we need to allow each
driver to give such verbs for cached accesses. Here a verb can be put
into a single array and looked through it at readable and writeable
callbacks.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/hda_regmap.h | 3 | ||||
-rw-r--r-- | include/sound/hdaudio.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sound/hda_regmap.h b/include/sound/hda_regmap.h index 95651d26437d..a6a4f3ddb469 100644 --- a/include/sound/hda_regmap.h +++ b/include/sound/hda_regmap.h | |||
@@ -11,7 +11,8 @@ | |||
11 | 11 | ||
12 | int snd_hdac_regmap_init(struct hdac_device *codec); | 12 | int snd_hdac_regmap_init(struct hdac_device *codec); |
13 | void snd_hdac_regmap_exit(struct hdac_device *codec); | 13 | void snd_hdac_regmap_exit(struct hdac_device *codec); |
14 | 14 | int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec, | |
15 | unsigned int verb); | ||
15 | int snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg, | 16 | int snd_hdac_regmap_read_raw(struct hdac_device *codec, unsigned int reg, |
16 | unsigned int *val); | 17 | unsigned int *val); |
17 | int snd_hdac_regmap_write_raw(struct hdac_device *codec, unsigned int reg, | 18 | int snd_hdac_regmap_write_raw(struct hdac_device *codec, unsigned int reg, |
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index ce7d8d1f59c6..702032598bea 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h | |||
@@ -75,6 +75,7 @@ struct hdac_device { | |||
75 | 75 | ||
76 | /* regmap */ | 76 | /* regmap */ |
77 | struct regmap *regmap; | 77 | struct regmap *regmap; |
78 | struct snd_array vendor_verbs; | ||
78 | bool lazy_cache:1; /* don't wake up for writes */ | 79 | bool lazy_cache:1; /* don't wake up for writes */ |
79 | bool caps_overwriting:1; /* caps overwrite being in process */ | 80 | bool caps_overwriting:1; /* caps overwrite being in process */ |
80 | }; | 81 | }; |