Gentoo Archives: gentoo-commits

From: "Mike Pagano (mpagano)" <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] linux-patches r1821 - genpatches-2.6/trunk/2.6.36
Date: Thu, 04 Nov 2010 20:30:06
Message-Id: 20101104203001.834D62003C@flycatcher.gentoo.org
1 Author: mpagano
2 Date: 2010-11-04 20:30:01 +0000 (Thu, 04 Nov 2010)
3 New Revision: 1821
4
5 Added:
6 genpatches-2.6/trunk/2.6.36/2700_disable-sticky-PCM-stream-assignment-for-AD-codecs.patch
7 Modified:
8 genpatches-2.6/trunk/2.6.36/0000_README
9 Log:
10 AD codec fix for PCM stream assignments for bug #344153
11
12 Modified: genpatches-2.6/trunk/2.6.36/0000_README
13 ===================================================================
14 --- genpatches-2.6/trunk/2.6.36/0000_README 2010-10-31 23:47:22 UTC (rev 1820)
15 +++ genpatches-2.6/trunk/2.6.36/0000_README 2010-11-04 20:30:01 UTC (rev 1821)
16 @@ -39,6 +39,10 @@
17 Individual Patch Descriptions:
18 --------------------------------------------------------------------------
19
20 +Patch: 2700_disable-sticky-PCM-stream-assignment-for-AD-codecs.patch
21 +From: http://bugs.gentoo.org/show_bug.cgi?id=344153
22 +Desc: AD codec fix for PCM stream assignments
23 +
24 Patch: 2900_xconfig-with-qt4.patch
25 From: http://bugs.gentoo.org/show_bug.cgi?id=342007
26 Desc: xconfig patch for qt4 - thanks to alexander stein
27
28 Added: genpatches-2.6/trunk/2.6.36/2700_disable-sticky-PCM-stream-assignment-for-AD-codecs.patch
29 ===================================================================
30 --- genpatches-2.6/trunk/2.6.36/2700_disable-sticky-PCM-stream-assignment-for-AD-codecs.patch (rev 0)
31 +++ genpatches-2.6/trunk/2.6.36/2700_disable-sticky-PCM-stream-assignment-for-AD-codecs.patch 2010-11-04 20:30:01 UTC (rev 1821)
32 @@ -0,0 +1,80 @@
33 +--- a/sound/pci/hda/hda_codec.c 2010-11-04 14:59:50.000000000 -0400
34 ++++ b/sound/pci/hda/hda_codec.c 2010-11-04 15:01:20.000000000 -0400
35 +@@ -1281,6 +1281,9 @@ void __snd_hda_codec_cleanup_stream(stru
36 + if (!nid)
37 + return;
38 +
39 ++ if (codec->no_sticky_stream)
40 ++ do_now = 1;
41 ++
42 + snd_printdd("hda_codec_cleanup_stream: NID=0x%x\n", nid);
43 + p = get_hda_cvt_setup(codec, nid);
44 + if (p) {
45 +--- a/sound/pci/hda/hda_codec.h 2010-11-04 14:59:52.000000000 -0400
46 ++++ b/sound/pci/hda/hda_codec.h 2010-11-04 15:01:49.000000000 -0400
47 +@@ -850,6 +850,7 @@ struct hda_codec {
48 + unsigned int pin_amp_workaround:1; /* pin out-amp takes index
49 + * (e.g. Conexant codecs)
50 + */
51 ++ unsigned int no_sticky_stream:1; /* no sticky-PCM stream assignment */
52 + unsigned int pins_shutup:1; /* pins are shut up */
53 + unsigned int no_trigger_sense:1; /* don't trigger at pin-sensing */
54 + #ifdef CONFIG_SND_HDA_POWER_SAVE
55 +--- a/sound/pci/hda/patch_analog.c 2010-11-04 15:00:03.000000000 -0400
56 ++++ b/sound/pci/hda/patch_analog.c 2010-11-04 15:03:24.000000000 -0400
57 +@@ -1276,6 +1276,7 @@ static int patch_ad1986a(struct hda_code
58 + spec->multiout.no_share_stream = 1;
59 +
60 + codec->no_trigger_sense = 1;
61 ++ codec->no_sticky_stream = 1;
62 +
63 + return 0;
64 + }
65 +@@ -1463,6 +1464,7 @@ static int patch_ad1983(struct hda_codec
66 + codec->patch_ops = ad198x_patch_ops;
67 +
68 + codec->no_trigger_sense = 1;
69 ++ codec->no_sticky_stream = 1;
70 +
71 + return 0;
72 + }
73 +@@ -1917,6 +1919,7 @@ static int patch_ad1981(struct hda_codec
74 + }
75 +
76 + codec->no_trigger_sense = 1;
77 ++ codec->no_sticky_stream = 1;
78 +
79 + return 0;
80 + }
81 +@@ -3235,6 +3238,7 @@ static int patch_ad1988(struct hda_codec
82 + spec->vmaster_nid = 0x04;
83 +
84 + codec->no_trigger_sense = 1;
85 ++ codec->no_sticky_stream = 1;
86 +
87 + return 0;
88 + }
89 +@@ -3449,6 +3453,7 @@ static int patch_ad1884(struct hda_codec
90 + codec->patch_ops = ad198x_patch_ops;
91 +
92 + codec->no_trigger_sense = 1;
93 ++ codec->no_sticky_stream = 1;
94 +
95 + return 0;
96 + }
97 +@@ -4422,6 +4427,7 @@ static int patch_ad1884a(struct hda_code
98 + }
99 +
100 + codec->no_trigger_sense = 1;
101 ++ codec->no_sticky_stream = 1;
102 +
103 + return 0;
104 + }
105 +@@ -4761,6 +4767,7 @@ static int patch_ad1882(struct hda_codec
106 + }
107 +
108 + codec->no_trigger_sense = 1;
109 ++ codec->no_sticky_stream = 1;
110 +
111 + return 0;
112 + }