mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] radio/sound/miro: fix build, cleanup depends/selects
@ 2009-12-08 17:13 Randy Dunlap
  2009-12-08 17:19 ` Takashi Iwai
  2009-12-09 19:06 ` Krzysztof Helt
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2009-12-08 17:13 UTC (permalink / raw)
  To: lkml, torvalds; +Cc: Mauro Carvalho Chehab, Krzysztof Helt, Takashi Iwai

From: Randy Dunlap <randy.dunlap@oracle.com>

miropcm20 uses ALSA (snd_) interfaces from the SND_MIRO
driver, so it should depend on SND.
(selecting SND_MIRO when CONFIG_SND is not enabled is a
problem.)

drivers/built-in.o: In function `vidioc_s_ctrl':
radio-miropcm20.c:(.text+0x227499): undefined reference to `snd_aci_cmd'
drivers/built-in.o: In function `vidioc_s_frequency':
radio-miropcm20.c:(.text+0x227574): undefined reference to `snd_aci_cmd'
radio-miropcm20.c:(.text+0x227588): undefined reference to `snd_aci_cmd'
drivers/built-in.o: In function `pcm20_init':
radio-miropcm20.c:(.init.text+0x2a784): undefined reference to `snd_aci_get_aci'

miropcm20 selects SND_MIRO but SND_ISA may be not enabled, so
also select SND_ISA so that the snd-miro driver will be built.
Otherwise there are missing symbols:

ERROR: "snd_opl4_create" [sound/isa/opti9xx/snd-miro.ko] undefined!
ERROR: "snd_wss_pcm" [sound/isa/opti9xx/snd-miro.ko] undefined!
ERROR: "snd_wss_timer" [sound/isa/opti9xx/snd-miro.ko] undefined!
ERROR: "snd_wss_create" [sound/isa/opti9xx/snd-miro.ko] undefined!
ERROR: "snd_wss_mixer" [sound/isa/opti9xx/snd-miro.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
Cc: Takashi Iwai <tiwai@suse.de>
---
 drivers/media/radio/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-next-20091204.orig/drivers/media/radio/Kconfig
+++ linux-next-20091204/drivers/media/radio/Kconfig
@@ -197,7 +197,8 @@ config RADIO_MAESTRO
 
 config RADIO_MIROPCM20
 	tristate "miroSOUND PCM20 radio"
-	depends on ISA && VIDEO_V4L2
+	depends on ISA && VIDEO_V4L2 && SND
+	select SND_ISA
 	select SND_MIRO
 	---help---
 	  Choose Y here if you have this FM radio card. You also need to enable

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] radio/sound/miro: fix build, cleanup depends/selects
  2009-12-08 17:13 [PATCH] radio/sound/miro: fix build, cleanup depends/selects Randy Dunlap
@ 2009-12-08 17:19 ` Takashi Iwai
  2009-12-09 19:06 ` Krzysztof Helt
  1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2009-12-08 17:19 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: lkml, torvalds, Mauro Carvalho Chehab, Krzysztof Helt

At Tue, 8 Dec 2009 09:13:07 -0800,
Randy Dunlap wrote:
> 
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> miropcm20 uses ALSA (snd_) interfaces from the SND_MIRO
> driver, so it should depend on SND.
> (selecting SND_MIRO when CONFIG_SND is not enabled is a
> problem.)
> 
> drivers/built-in.o: In function `vidioc_s_ctrl':
> radio-miropcm20.c:(.text+0x227499): undefined reference to `snd_aci_cmd'
> drivers/built-in.o: In function `vidioc_s_frequency':
> radio-miropcm20.c:(.text+0x227574): undefined reference to `snd_aci_cmd'
> radio-miropcm20.c:(.text+0x227588): undefined reference to `snd_aci_cmd'
> drivers/built-in.o: In function `pcm20_init':
> radio-miropcm20.c:(.init.text+0x2a784): undefined reference to `snd_aci_get_aci'
> 
> miropcm20 selects SND_MIRO but SND_ISA may be not enabled, so
> also select SND_ISA so that the snd-miro driver will be built.
> Otherwise there are missing symbols:
> 
> ERROR: "snd_opl4_create" [sound/isa/opti9xx/snd-miro.ko] undefined!
> ERROR: "snd_wss_pcm" [sound/isa/opti9xx/snd-miro.ko] undefined!
> ERROR: "snd_wss_timer" [sound/isa/opti9xx/snd-miro.ko] undefined!
> ERROR: "snd_wss_create" [sound/isa/opti9xx/snd-miro.ko] undefined!
> ERROR: "snd_wss_mixer" [sound/isa/opti9xx/snd-miro.ko] undefined!
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
> Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
> Cc: Takashi Iwai <tiwai@suse.de>

Thanks, applied to sound git tree now.
I'm going to send the second pull request tomorrow or so.


Takashi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] radio/sound/miro: fix build, cleanup depends/selects
  2009-12-08 17:13 [PATCH] radio/sound/miro: fix build, cleanup depends/selects Randy Dunlap
  2009-12-08 17:19 ` Takashi Iwai
@ 2009-12-09 19:06 ` Krzysztof Helt
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Helt @ 2009-12-09 19:06 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: lkml, torvalds, Mauro Carvalho Chehab, Krzysztof Helt, Takashi Iwai

On Tue, 8 Dec 2009 09:13:07 -0800
Randy Dunlap <randy.dunlap@ORACLE.COM> wrote:

> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> miropcm20 uses ALSA (snd_) interfaces from the SND_MIRO
> driver, so it should depend on SND.
> (selecting SND_MIRO when CONFIG_SND is not enabled is a
> problem.)
> 
> drivers/built-in.o: In function `vidioc_s_ctrl':
> radio-miropcm20.c:(.text+0x227499): undefined reference to `snd_aci_cmd'
> drivers/built-in.o: In function `vidioc_s_frequency':
> radio-miropcm20.c:(.text+0x227574): undefined reference to `snd_aci_cmd'
> radio-miropcm20.c:(.text+0x227588): undefined reference to `snd_aci_cmd'
> drivers/built-in.o: In function `pcm20_init':
> radio-miropcm20.c:(.init.text+0x2a784): undefined reference to `snd_aci_get_aci'
> 
> miropcm20 selects SND_MIRO but SND_ISA may be not enabled, so
> also select SND_ISA so that the snd-miro driver will be built.
> Otherwise there are missing symbols:
> 
> ERROR: "snd_opl4_create" [sound/isa/opti9xx/snd-miro.ko] undefined!
> ERROR: "snd_wss_pcm" [sound/isa/opti9xx/snd-miro.ko] undefined!
> ERROR: "snd_wss_timer" [sound/isa/opti9xx/snd-miro.ko] undefined!
> ERROR: "snd_wss_create" [sound/isa/opti9xx/snd-miro.ko] undefined!
> ERROR: "snd_wss_mixer" [sound/isa/opti9xx/snd-miro.ko] undefined!
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
> Cc: Krzysztof Helt <krzysztof.h1@wp.pl>
> Cc: Takashi Iwai <tiwai@suse.de>
> ---
>  drivers/media/radio/Kconfig |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>


----------------------------------------------------------------------
Internetowi nie placa! Otworz Konto Direct.
http://link.interia.pl/f24f7


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-09 19:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-08 17:13 [PATCH] radio/sound/miro: fix build, cleanup depends/selects Randy Dunlap
2009-12-08 17:19 ` Takashi Iwai
2009-12-09 19:06 ` Krzysztof Helt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®