revert android-tegra-2.6.36-honeycomb-mr1-9001adc to v2.6.36
[firefly-linux-kernel-4.4.55.git] / sound / pci / hda / hda_codec.c
index b959c9f1e6fbbcadabfc613d3b86c40faa7d5dd1..14829210ef0bf4b1bac018d4f5e31a1d1c4728b9 100644 (file)
@@ -1216,7 +1216,6 @@ void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid,
        struct hda_codec *c;
        struct hda_cvt_setup *p;
        unsigned int oldval, newval;
-       int type;
        int i;
 
        if (!nid)
@@ -1255,12 +1254,10 @@ void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid,
        p->dirty = 0;
 
        /* make other inactive cvts with the same stream-tag dirty */
-       type = get_wcaps_type(get_wcaps(codec, nid));
        list_for_each_entry(c, &codec->bus->codec_list, list) {
                for (i = 0; i < c->cvt_setups.used; i++) {
                        p = snd_array_elem(&c->cvt_setups, i);
-                       if (!p->active && p->stream_tag == stream_tag &&
-                           get_wcaps_type(get_wcaps(codec, p->nid)) == type)
+                       if (!p->active && p->stream_tag == stream_tag)
                                p->dirty = 1;
                }
        }
@@ -1284,9 +1281,6 @@ void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid,
        if (!nid)
                return;
 
-       if (codec->no_sticky_stream)
-               do_now = 1;
-
        snd_printdd("hda_codec_cleanup_stream: NID=0x%x\n", nid);
        p = get_hda_cvt_setup(codec, nid);
        if (p) {