]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/pci/hda/hda_codec.h
ALSA: hda - Fix endless loop of codec configure
[karo-tx-linux.git] / sound / pci / hda / hda_codec.h
index d6fb2d5d01a70ef21eb533f1b86cb9c9c8f2be84..60ce1cfc300f9cb419acbc67425076c120829f13 100644 (file)
@@ -295,6 +295,8 @@ struct hda_codec {
 
 #define list_for_each_codec(c, bus) \
        list_for_each_entry(c, &(bus)->core.codec_list, core.list)
+#define list_for_each_codec_safe(c, n, bus)                            \
+       list_for_each_entry_safe(c, n, &(bus)->core.codec_list, core.list)
 
 /* snd_hda_codec_read/write optional flags */
 #define HDA_RW_NO_RESPONSE_FALLBACK    (1 << 0)