[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cdi-devel] [PATCH 1/9] hdaudio: Fix use of wrong loop counter



Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 hdaudio/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hdaudio/main.c b/hdaudio/main.c
index bd7a269..c46d3f7 100644
--- a/hdaudio/main.c
+++ b/hdaudio/main.c
@@ -238,7 +238,7 @@ static int find_output_widget(struct hda_device* hda, int codec)
 
         DPRINTF("    %d widgets starting at ID %d\n",
             num_widgets, widgets_start);
-        for (j = 0; i < num_widgets; j++) {
+        for (j = 0; j < num_widgets; j++) {
             param = codec_query(hda, codec, widgets_start + j,
                 VERB_GET_PARAMETER | PARAM_AUDIO_WID_CAP);
             if ((param != 0) && ((param & 0xf00000) == 0)) {
-- 
2.1.4