All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <liam.girdwood@wolfsonmicro.com>
To: Chow Raymond <usher_raymond82@yahoo.com>
Cc: Clemens Ladisch <clemens@ladisch.de>, alsa-devel@lists.sourceforge.net
Subject: Re: Compulab sound device
Date: Fri, 19 Aug 2005 14:24:21 +0100	[thread overview]
Message-ID: <1124457861.2861.251.camel@cearnarfon> (raw)
In-Reply-To: <20050819124710.36978.qmail@web54603.mail.yahoo.com>

On Fri, 2005-08-19 at 05:47 -0700, Chow Raymond wrote:
> Ok..I backport ARM audio changes from 2.6.12 to 2.6.7.
> I manage to build a zImage file and manage to make
> modules too. However..there are few warnings that i
> encounter during make modules
> 

You might want to back port from ALSA kernel CVS as this has some
updates to pxa2xx-ac97.c for PM and ac97 warm resets. 


> sound/pci/ac97/ac97_codec.c: In function
> `snd_ac97_mixer':
> sound/pci/ac97/ac97_codec.c:1771: warning: unused
> variable `pid'
> sound/pci/ac97/ac97_codec.c: At top level:
> sound/pci/ac97/ac97_codec.c:1740: warning:
> `null_build_ops' defined but not used
> 
> Building modules, stage 2.
>   MODPOST
> *** Warning: "dma_mmap_writecombine"
> [sound/arm/snd-pxa2xx-pcm.ko] undefined!
> *** Warning: "pxa_set_cken"
> [sound/arm/snd-pxa2xx-ac97.ko] undefined!
> *** Warning: "snd_ac97_get_short_name"
> [sound/arm/snd-pxa2xx-ac97.ko] undefined!

Has sound/pci/ac97/ac97_codec.c and sound/arm/pxa2xx-pcm.c been built ?
They are both required form pxa2xx ac97 audio. 

> 
> I thought warnings would be ok. I started inserting
> modules but when I want to insert the snd-pxa2xx-ac97
> module, I get the following error.
> 
> [root@ARMCore sound1]$ insmod snd-pxa2xx-ac97.ko
> snd_pxa2xx_ac97: Unknown symbol pxa2xx_pcm_new
> snd_pxa2xx_ac97: Unknown symbol
> snd_ac97_get_short_name
> snd_pxa2xx_ac97: Unknown symbol pxa_set_cken
> insmod: error inserting 'snd-pxa2xx-ac97.ko': -1
> Unknown symbol in module
> 

This means that snd-pxa2xx-pcm.ko has not been inserted. It's built from
pxa2xx-pcm.c

> Which file should I fix? There is not any
> snd-pxa2xx-ac97.c file. What does unknown symbol in
> module means?
> 

This relates to sound/arm/pxa2xx-ac97.c

You should have the following rules in sound/arm/Makefile:-

snd-pxa2xx-pcm-objs := pxa2xx-pcm.o
snd-pxa2xx-ac97-objs := pxa2xx-ac97.o

obj-$(CONFIG_SND_PXA2xx_PCM) += snd-pxa2xx-pcm.o
obj-$(CONFIG_SND_PXA2xx_AC97) += snd-pxa2xx-ac97.o

and the following options in sound/arm/Kconfig

config SND_PXA2xx_AC97
	tristate "AC97 driver for the Intel PXA2xx chip"
	depends on ARCH_PXA && SND
	select SND_PXA2xx_PCM
	select SND_AC97_CODEC
	help
	  Say Y or M if you want to support any AC97 codec attached to
	  the PXA2xx AC97 interface.

config SND_PXA2xx_PCM
	tristate
	select SND_PCM
	help
	  Generic PCM module for PXA2xx


HTH

Liam



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

  parent reply	other threads:[~2005-08-19 13:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-09 21:57 Alsa-lib problem Nambiar, Anil
2005-08-09 22:05 ` Lee Revell
2005-08-09 22:18 ` James Courtier-Dutton
2005-08-10  9:48   ` Takashi Iwai
2005-08-15  3:06     ` Compulab sound device Chow Raymond
2005-08-15  7:41       ` Clemens Ladisch
2005-08-15  8:39         ` Chow Raymond
2005-08-15 11:32           ` Clemens Ladisch
2005-08-16  7:04             ` Chow Raymond
2005-08-16  7:22               ` Clemens Ladisch
2005-08-16 12:58                 ` Chow Raymond
2005-08-17 13:40                   ` Clemens Ladisch
2005-08-19 12:47                     ` Chow Raymond
2005-08-19 13:17                       ` Clemens Ladisch
2005-08-19 13:24                       ` Liam Girdwood [this message]
2005-08-19 13:51                         ` Chow Raymond
2005-08-19 14:10                           ` Liam Girdwood
2005-08-22  7:06                             ` Chow Raymond
2005-08-23  3:57                               ` Lee Revell
2005-08-23  9:13                                 ` Takashi Iwai
2005-08-23  9:49                                   ` Chow Raymond
2005-08-24 10:32                                   ` Chow Raymond
2005-08-24 12:04                                     ` Takashi Iwai
2005-08-25  1:45                                       ` Chow Raymond
2005-08-25  8:38                                         ` Clemens Ladisch
2005-08-25  8:52                                           ` Chow Raymond

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1124457861.2861.251.camel@cearnarfon \
    --to=liam.girdwood@wolfsonmicro.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=clemens@ladisch.de \
    --cc=usher_raymond82@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.