Skip to contentSkip to conversation

ALSA: fix ice1712 section mismatch

PATCH In review Randy Dunlap 3 participants 4 messages Jun 25, 2007 – Jun 26, 2007 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: fix ice1712 section mismatch

From: Randy Dunlap <[email protected]>

Cannot mix const and __initdata:
sound/pci/ice1712/prodigy192.c:708: error: ak4114_controls causes a section type conflict

---
 sound/pci/ice1712/prodigy192.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/ice1712/prodigy192.c +1 -1
@@ -705,7 +705,7 @@ static int ak4114_input_sw_put(struct sn
 }
 
 
-static const struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
+static struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
 	{
 		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
 		.name = "MIODIO IEC958 Capture Input",
#1 lore raw
Quoted 5 lines · On Mon, 25 Jun 2007 16:17:39 -0700 Randy Dunlap <[email protected]> wrote:

From: Randy Dunlap <[email protected]>

Cannot mix const and __initdata:
sound/pci/ice1712/prodigy192.c:708: error: ak4114_controls causes a section type conflict

This is a fatal compilation error, isn't it?

Quoted 7 lines
---
 sound/pci/ice1712/prodigy192.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

sound/pci/ice1712/prodigy192.c static int ak4114_input_sw_put(struct sn · line 711

Quoted 8 lines
sound/pci/ice1712/prodigy192.c +1 -1
@@ -705,7 +705,7 @@ static int ak4114_input_sw_put(struct sn
 }
 
 
-static const struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
+static struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
 	{
 		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
 		.name = "MIODIO IEC958 Capture Input",

That patch is already in the alsa git tree (has been there for five days), so I would of course prefer that the alsa guys merge it into 2.6.22.

However alsa merges are a bit spotty, so I'll queue this up anyway and will merge it in a day or three if nothing else happens, OK?

#2 lore raw
Quoted 10 lines · On Mon, 25 Jun 2007 16:41:10 -0700 Andrew Morton wrote:
Quoted 5 lines · On Mon, 25 Jun 2007 16:17:39 -0700 Randy Dunlap <[email protected]> wrote:

From: Randy Dunlap <[email protected]>

Cannot mix const and __initdata:
sound/pci/ice1712/prodigy192.c:708: error: ak4114_controls causes a section type conflict

This is a fatal compilation error, isn't it?

Yes.

Quoted 10 lines
Quoted 10 lines
---
 sound/pci/ice1712/prodigy192.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/ice1712/prodigy192.c +0 -0
@@ -705,7 +705,7 @@ static int ak4114_input_sw_put(struct sn
 }
 
 
Quoted 8 lines

sound/pci/ice1712/prodigy192.c static int ak4114_input_sw_put(struct sn · line 711

Quoted 5 lines
sound/pci/ice1712/prodigy192.c +1 -1
-static const struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
+static struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
 	{
 		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
 		.name = "MIODIO IEC958 Capture Input",

That patch is already in the alsa git tree (has been there for five days), so I would of course prefer that the alsa guys merge it into 2.6.22.

OK, I admit that I never look there.

Quoted 2 lines

However alsa merges are a bit spotty, so I'll queue this up anyway and will merge it in a day or three if nothing else happens, OK?

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#3 lore raw
In reply to Andrew Morton

At Mon, 25 Jun 2007 16:41:10 -0700,

Quoted 22 lines · Andrew Morton
Quoted 5 lines · On Mon, 25 Jun 2007 16:17:39 -0700 Randy Dunlap <[email protected]> wrote:

From: Randy Dunlap <[email protected]>

Cannot mix const and __initdata:
sound/pci/ice1712/prodigy192.c:708: error: ak4114_controls causes a section type conflict

This is a fatal compilation error, isn't it?

Quoted 10 lines
---
 sound/pci/ice1712/prodigy192.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/ice1712/prodigy192.c +0 -0
@@ -705,7 +705,7 @@ static int ak4114_input_sw_put(struct sn
 }
 
 
Quoted 8 lines

sound/pci/ice1712/prodigy192.c static int ak4114_input_sw_put(struct sn · line 711

Quoted 5 lines
sound/pci/ice1712/prodigy192.c +1 -1
-static const struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
+static struct snd_kcontrol_new ak4114_controls[] __devinitdata = {
 	{
 		.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
 		.name = "MIODIO IEC958 Capture Input",

That patch is already in the alsa git tree (has been there for five days), so I would of course prefer that the alsa guys merge it into 2.6.22.

Jaroslav, could you prepare the push?

Quoted 2 lines

However alsa merges are a bit spotty, so I'll queue this up anyway and will merge it in a day or three if nothing else happens, OK?

Yes, I think it's perhaps an easier path...

Thanks!

Takashi