From: Qin Lin <linkinge@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: Re: ml403 ac97 driver
Date: Mon, 30 Jul 2007 21:22:52 -0700 (PDT) [thread overview]
Message-ID: <11918008.post@talk.nabble.com> (raw)
In-Reply-To: <11859770.post@talk.nabble.com>
HI ALL
I have compile the driver and test it with the help of Joachim.
1.add the lm4550 driver to kernel source
(someboby may can add them as a patch to kernel source)
#cp -r ml403_ac97cr $(KERNEL)/sound/drivers/
#vi $(KERNEL)/sound/drivers/Makefile
=add=
obj-$(CONFIG_SND_ML403_AC97) +=ml403_ac97cr/
#vi $(KERNEL)/sound/drivers/
=add=
config SND_ML403_AC97
tristate "ml403 ac97 codec(LM4550)"
depends on SND
select SND_AC97_CODEC
help
ml403 ac97 codec added by Joachim
enjoy it !
#vi $(KERNEL)/sound/drivers/ml403_ac97cr/Makefile
obj-$(CONFIG_SND_ML403_AC97) += ml403_ac97cr.o
#make xconfig
you can see the ml403_ac97cr in SOUND ALSA
2.cross-compile alsa-lib
I use ELDK4.0 to install cross compile in XILINX ML403.
$echo $CROSS_COMPILE
ppc_4xx-
$export CC=${CROSS_COMPILE}gcc
$export CPP=${CROSS_COMPILE}cpp
$export CXX=${CROSS_COMPILE}g++
$export LDD=${CROSS_COMPILE}ldd
$export AR=${CROSS_COMPILE}ar
$export LD=${CROSS_COMPILE}ld
$export RANLIB=${CROSS_COMPILE}ranlib
$export STRIP=${CROSS_COMPILE}strip
$cd ${ALSA-LIB-SOURCE}
$./configure --host=ppc-4xx-linux --target=ppc --prefix=/usr
$make install DESTDIR=${ALSA}
ps:ALSA lib will be install in path ${ALSA}/usr.Here use prefix=/usr is
important,do not change to another
path. Otherwise in the target board alsa will not find the config file by
default.You can use DESTDIR to set the lib path .
3.cross-compile alsa-utils
$export CC=${CROSS_COMPILE}gcc
$export CPP=${CROSS_COMPILE}cpp
$export CXX=${CROSS_COMPILE}g++
$export LDD=${CROSS_COMPILE}ldd
$export AR=${CROSS_COMPILE}ar
$export LD=${CROSS_COMPILE}ld
$export RANLIB=${CROSS_COMPILE}ranlib
$export STRIP=${CROSS_COMPILE}strip
$export CFLAGS="-I${ALSA}/usr/include -L${ALSA}/usr/lib"
$cd ${ALSA-UTILS-SOURCE}
$./configure --host=ppc-4xx-linux --target=ppc --prefix=/usr --disable-nls
$make install DESTDIR=${ALSA}
ps:use --disable-nls,otherwise there is an error about LC_ALL not defined.
3.copy the ${ALSA}/usr/* to the target rootfile /usr/ ,so you can use the
alsa utils.
4.insmod the drive module and create device node ,use
#aplay music.wav
to test the drive.
--
View this message in context: http://www.nabble.com/Re%3A-ml403-ac97-driver-tf4164866.html#a11918008
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
next prev parent reply other threads:[~2007-07-31 4:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <28652204.1477431184843737431.JavaMail.nabble@isper.nabble.com>
[not found] ` <1184918815.5886.13.camel@localhost>
[not found] ` <2ec96d6e0707280204k50efb707q99a824c37f539309@mail.gmail.com>
2007-07-29 8:48 ` ml403 ac97 driver Joachim Förster
2007-07-29 12:50 ` aq
2007-07-30 5:40 ` Qin Lin
2007-07-30 7:33 ` Joachim Förster
2007-07-30 8:28 ` Qin Lin
2007-07-31 4:22 ` Qin Lin [this message]
2007-07-31 7:50 ` Joachim Förster
2007-07-31 11:49 ` BUG-REPORT " Qin Lin
2007-08-09 17:01 ` Joachim Förster
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=11918008.post@talk.nabble.com \
--to=linkinge@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).