From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001014]: card detect function is never called in pxa2xx-ac97 Date: Mon, 4 Apr 2005 20:51:54 +0200 Message-ID: <2457f168a8a7af0bd0a76601eb7494aa@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 572D2230 for ; Mon, 4 Apr 2005 20:51:54 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org A NOTE has been added to this issue. ====================================================================== ====================================================================== Reported By: twinsen Assigned To: perex ====================================================================== Project: ALSA - driver Issue ID: 1014 Category: 0_compilation problem_!!! Reproducibility: always Severity: minor Priority: normal Status: assigned Distribution: custom: PXA255/uClibc Kernel Version: 2.6.11.5 ====================================================================== Date Submitted: 03-25-2005 00:04 CET Last Modified: 04-04-2005 20:51 CEST ====================================================================== Summary: card detect function is never called in pxa2xx-ac97 Description: Hi there, I have a some problem with this driver. The environment: ALSA source: alsa-driver-1.0.9rc1 Kernel source: linux-2.6.11.5 (stock) I cross compiled the kernel and the alsa source for arm target with a toolchain from handhelds.org. I used the following configure command line: ./configure --with-cards=pxa2xx-ac97 --with-kernel=/home/twinsen/EmbeddedLinux/Kernel/linux-2.6.11.5 --with-build=/home/twinsen/EmbeddedLinux/Kernel/linux-2.6.11.5 --with-cross=/usr/local/arm/3.3.2/bin/arm-linux- config runs without problems, when running make gcc complains about "pci_dev_present" being redefined (alsa-driver-1.0.9rc1/include/adriver.h, orig: include/linux/pci.h), but compiles ok. The problem: I loaded all modules (snd, snd-timer, snd-page-alloc, snd-pcm, snd-ac97-codec, snd-pxa2xx-pcm, snd-pxa2xx-ac97) but still no soundcard in /proc/asound/cards. I looked a bit inside the driver, and when snd-pxa2xx-ac97 is loaded, the module init function registers the new driver: driver_register(&pxa2xx_ac97_driver); The driver struct contains a probe function: .probe = pxa2xx_ac97_probe, but it's never called, so the driver doesn't even check the existance of the sound card. Why is that? Did I srcew up the cross compiling? Thanks: George ====================================================================== ---------------------------------------------------------------------- twinsen - 04-03-05 22:28 ---------------------------------------------------------------------- I've made an strace log of speakertest running: http://blackmilk.dyndns.org/arm/speakertest_strace.txt Seemingly the following kernel calls fail: ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbedfa7d8) = -1 ENOTTY (Inappropriate ioctl for device) old_mmap(NULL, 4096, PROT_READ, MAP_SHARED, 4, 0x80000000) = -1 ENXIO (No such device or address) I hope this helps :) ---------------------------------------------------------------------- twinsen - 04-04-05 20:51 ---------------------------------------------------------------------- I've tested some applications that use the lagacy /dev/dsp interface, and they work fine (plax[sox], madplay). So the driver and the OSS emulation woks, problem is in the native alsa part. Issue History Date Modified Username Field Change ====================================================================== 03-25-05 00:04 twinsen New Issue 03-25-05 00:04 twinsen Distribution => custom: PXA255/uClibc 03-25-05 00:04 twinsen Kernel Version => 2.6.11.5 03-29-05 16:25 tiwai Note Added: 0004247 03-29-05 23:43 twinsen Note Added: 0004259 04-03-05 21:47 twinsen Note Added: 0004321 04-03-05 22:28 twinsen Note Added: 0004322 04-04-05 20:51 twinsen Note Added: 0004330 ====================================================================== ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click