diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-06-04 05:41:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-04 05:42:27 -0400 |
commit | cdbc653a04ee692a7105a96e8dd6055d9971d45c (patch) | |
tree | c1282680b3115edfd693a27bc6758208534ac557 /sound/pci/hda/hda_auto_parser.c | |
parent | 009f8c90f571d87855914dbc20e6c0ea2a3b19ae (diff) | |
parent | ceec4684085a9e4dc60439d84ab47ce260444804 (diff) |
Merge branch 'for-next' into for-linus
4.18-rc1 merge material.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_auto_parser.c')
-rw-r--r-- | sound/pci/hda/hda_auto_parser.c | 10 |
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 | */ |
794 | void snd_hda_apply_verbs(struct hda_codec *codec) | 794 | void 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 | } |
802 | EXPORT_SYMBOL_GPL(snd_hda_apply_verbs); | 802 | EXPORT_SYMBOL_GPL(snd_hda_apply_verbs); |
803 | 803 | ||
@@ -890,10 +890,10 @@ EXPORT_SYMBOL_GPL(snd_hda_apply_fixup); | |||
890 | static bool pin_config_match(struct hda_codec *codec, | 890 | static 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; |