aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_auto_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_auto_parser.c')
-rw-r--r--sound/pci/hda/hda_auto_parser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/pci/hda/hda_auto_parser.c b/sound/pci/hda/hda_auto_parser.c
index d3ea73171a3d..b9a6b66aeb0e 100644
--- a/sound/pci/hda/hda_auto_parser.c
+++ b/sound/pci/hda/hda_auto_parser.c
@@ -793,11 +793,11 @@ EXPORT_SYMBOL_GPL(snd_hda_add_verbs);
793 */ 793 */
794void snd_hda_apply_verbs(struct hda_codec *codec) 794void snd_hda_apply_verbs(struct hda_codec *codec)
795{ 795{
796 const struct hda_verb **v;
796 int i; 797 int i;
797 for (i = 0; i < codec->verbs.used; i++) { 798
798 struct hda_verb **v = snd_array_elem(&codec->verbs, i); 799 snd_array_for_each(&codec->verbs, i, v)
799 snd_hda_sequence_write(codec, *v); 800 snd_hda_sequence_write(codec, *v);
800 }
801} 801}
802EXPORT_SYMBOL_GPL(snd_hda_apply_verbs); 802EXPORT_SYMBOL_GPL(snd_hda_apply_verbs);
803 803
@@ -890,10 +890,10 @@ EXPORT_SYMBOL_GPL(snd_hda_apply_fixup);
890static bool pin_config_match(struct hda_codec *codec, 890static bool pin_config_match(struct hda_codec *codec,
891 const struct hda_pintbl *pins) 891 const struct hda_pintbl *pins)
892{ 892{
893 const struct hda_pincfg *pin;
893 int i; 894 int i;
894 895
895 for (i = 0; i < codec->init_pins.used; i++) { 896 snd_array_for_each(&codec->init_pins, i, pin) {
896 struct hda_pincfg *pin = snd_array_elem(&codec->init_pins, i);
897 hda_nid_t nid = pin->nid; 897 hda_nid_t nid = pin->nid;
898 u32 cfg = pin->cfg; 898 u32 cfg = pin->cfg;
899 const struct hda_pintbl *t_pins; 899 const struct hda_pintbl *t_pins;