diff options
author | Vinod Koul <vinod.koul@intel.com> | 2015-10-08 09:48:06 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-10-08 19:09:36 +0200 |
commit | 70b4891cc889d359d3b1f3b8ec6f10c5800ecc70 (patch) | |
tree | 59fa5f672a67af0c7c73624e288c206eb732da43 /sound/pci/hda/hda_codec.h | |
parent | 1b5e6167c27e1d3be33155baf9660768ac74aae0 (diff) | |
download | op-kernel-dev-70b4891cc889d359d3b1f3b8ec6f10c5800ecc70.zip op-kernel-dev-70b4891cc889d359d3b1f3b8ec6f10c5800ecc70.tar.gz |
ALSA: hda: make use of core codec fns
Now that we have introduced the core fns we should make hda use these
helpers
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 2970413..95991e4 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -309,11 +309,21 @@ int snd_hda_codec_update_widgets(struct hda_codec *codec); /* * low level functions */ -unsigned int snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, +static inline unsigned int +snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, int flags, - unsigned int verb, unsigned int parm); -int snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, - unsigned int verb, unsigned int parm); + unsigned int verb, unsigned int parm) +{ + return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm); +} + +static inline int +snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, + unsigned int verb, unsigned int parm) +{ + return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm); +} + #define snd_hda_param_read(codec, nid, param) \ snd_hdac_read_parm(&(codec)->core, nid, param) #define snd_hda_get_sub_nodes(codec, nid, start_nid) \ |