diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-02-26 07:57:47 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-23 08:19:37 -0400 |
commit | 01ed3c06c6d5e7e861650ae76117dd4194d87316 (patch) | |
tree | d75e171cd46b58c985848cfc46a3e0d3492c2496 /sound/pci | |
parent | 4d75faa0448a6bb2fd6d56051a3675a3937cbada (diff) |
ALSA: hda - Use regmap for codec parameter reads
Let's start converting the access functions to regmap.
The first one is the simplest, just converting the codec parameter
read helper function snd_hda_param_read().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 0f5749ca1600..135b70f066f1 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -369,7 +369,7 @@ unsigned int snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, | |||
369 | int snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, | 369 | int snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, |
370 | unsigned int verb, unsigned int parm); | 370 | unsigned int verb, unsigned int parm); |
371 | #define snd_hda_param_read(codec, nid, param) \ | 371 | #define snd_hda_param_read(codec, nid, param) \ |
372 | snd_hda_codec_read(codec, nid, 0, AC_VERB_PARAMETERS, param) | 372 | snd_hdac_read_parm(&(codec)->core, nid, param) |
373 | #define snd_hda_get_sub_nodes(codec, nid, start_nid) \ | 373 | #define snd_hda_get_sub_nodes(codec, nid, start_nid) \ |
374 | snd_hdac_get_sub_nodes(&(codec)->core, nid, start_nid) | 374 | snd_hdac_get_sub_nodes(&(codec)->core, nid, start_nid) |
375 | int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, | 375 | int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid, |