All of lore.kernel.org
 help / color / mirror / Atom feed
* need help getting echo indigo io to work
@ 2005-07-19 14:58 Phil Frost
  2005-07-19 16:41 ` Lee Revell
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Frost @ 2005-07-19 14:58 UTC (permalink / raw)
  To: alsa-devel

It looks like no one can help on the user list, so I'm reposting this
here. In addition to the information I have below, I've traced the
problem a bit more.

By what I can tell by peppering the code with log messages, the failure
occurs in the kernel in drivers/base/firmware_class.c around line 431:

if (!fw_priv->fw->size || test_bit(FW_STATUS_ABORT, &fw_priv->status)) {
        retval = -ENOENT;
        ...

I've never done any kernel development, so I have no clue how to debug
this. Any help would be appreciated.

Phil

----- Forwarded message from Phil Frost <indigo@bitglue.com> -----

Delivery-date: Mon, 18 Jul 2005 11:43:12 -0400
From: Phil Frost <indigo@bitglue.com>
To: alsa-user@lists.sourceforge.net
Subject: [Alsa-user] need help getting echo indigo io to work

I recently purchaced an echo indigo io, a pcmcia sound device. I'm
trying to get it to work.

I started with the stock ubuntu kernel 2.6.10-5, but this has an old
alsa version and aparently the indigoio driver is not included with the
kernel sources anyway.

I downloaded, built and installed alsa-driver 1.0.9b, then alsa-firmware
1.0.9 without problems. /proc/asound/version shows:

Advanced Linux Sound Architecture Driver Version 1.0.9b.
Compiled on Jul 18 2005 for kernel 2.6.10-5-386.

Now when I insert the card, something seems to notice and the
snd_indigoio module is loaded successfully, but I do not see my card in
/proc/asound/cards.

Looking at dmesg, I see this:

ALSA /.../echoaudio.c:1870: Echoaudio driver starting...
PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
ACPI: PCI interrupt 0000:03:00.0[A] -> GSI 9 (level, low) -> IRQ 9
ALSA /.../echoaudio.c:1793: chip=ce0bc014
ALSA /.../echoaudio.c:1819: pci=cf926400 irq=9 subdev=00a0 Init hardware...
ALSA /.../indigoio_dsp.c:39: init_hw() - Indigo IO
ALSA /.../echoaudio.c:38: firmware requested: indigo_io_dsp.fw
ALSA /.../echoaudio.c:41: get_firmware(): Firmware not available (-2)
ALSA /.../echoaudio.c:1834: init_hw err=-2
ALSA /.../echoaudio.c:1730: Stop DSP...
ALSA /.../echoaudio_dsp.c:953: rest_in_peace() open=0
ALSA /.../echoaudio_dsp.c:913: stop_transport 0
ALSA /.../echoaudio_dsp.c:936: stop_transport: No pipes to stop!
ALSA /.../echoaudio.c:1735: Stopped.
ALSA /.../echoaudio.c:1747: MMIO freed.
ALSA /.../echoaudio.c:1753: Chip freed.
Echoaudio Indigo IO: probe of 0000:03:00.0 failed with error -2

I don't know much about how firmware loading should work, but I did
manage to find that /etc/hotplug/firmware.agent seems to be responsible
for finding the firmware. By putting some echos in there I traced what
it was doing, and it generates this output:

looking for ea/indigo_io_dsp.fw-2.6.10-5-386
looking in /lib/hotplug/firmware
looking in /usr/local/lib/hotplug/firmware
looking in /usr/lib/hotplug/firmware
loading /usr/lib/hotplug/firmware/ea/indigo_io_dsp.fw
loaded /usr/lib/hotplug/firmware/ea/indigo_io_dsp.fw > /sys//class/firmware/0000:03:00.0/data

So aparently, it does find the firmware and sends it off somewhere to be
loaded. I don't know what should happen next, or where or why it could
be failing. Ideas, anyone?

Many thanks,
Phil


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

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

* Re: need help getting echo indigo io to work
  2005-07-19 14:58 Phil Frost
@ 2005-07-19 16:41 ` Lee Revell
  0 siblings, 0 replies; 4+ messages in thread
From: Lee Revell @ 2005-07-19 16:41 UTC (permalink / raw)
  To: Phil Frost; +Cc: alsa-devel

On Tue, 2005-07-19 at 10:58 -0400, Phil Frost wrote:
> It looks like no one can help on the user list, so I'm reposting this
> here. In addition to the information I have below, I've traced the
> problem a bit more.

Sounds like a driver bug to me.  A bunch of driver model stuff changed
recently in the kernel, I suspect the echo driver was developed against
a newer version.

I suspect it would work with 2.6.12.

Lee



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

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

* Re: need help getting echo indigo io to work
       [not found] ` <20050719192814.5cecf532.pochini@shiny.it>
@ 2005-07-19 23:14   ` Phil Frost
  2005-07-20  3:25     ` [Alsa-user] " Lee Revell
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Frost @ 2005-07-19 23:14 UTC (permalink / raw)
  To: alsa-user; +Cc: alsa-devel

On Tue, Jul 19, 2005 at 07:28:14PM +0200, Giuliano Pochini wrote:
> On Mon, 18 Jul 2005 11:40:08 -0400
> Phil Frost <indigo@bitglue.com> wrote:
> 
> > I recently purchaced an echo indigo io, a pcmcia sound device. I'm
> > trying to get it to work.
> > [...]
> > ALSA /.../echoaudio.c:38: firmware requested: indigo_io_dsp.fw
> > ALSA /.../echoaudio.c:41: get_firmware(): Firmware not available (-2)
> > [...]
> > I don't know much about how firmware loading should work
> 
> A script is called with the firmware name in an envronment variable and it
> searches the file with the fw and then it does cat "file > fw_sink".
> 
> > but I did
> > manage to find that /etc/hotplug/firmware.agent seems to be responsible
> > for finding the firmware. By putting some echos in there I traced what
> > it was doing, and it generates this output:
> >
> > looking for ea/indigo_io_dsp.fw-2.6.10-5-386
> > looking in /lib/hotplug/firmware
> > looking in /usr/local/lib/hotplug/firmware
> > looking in /usr/lib/hotplug/firmware
> > loading /usr/lib/hotplug/firmware/ea/indigo_io_dsp.fw
> > loaded /usr/lib/hotplug/firmware/ea/indigo_io_dsp.fw > /sys//class/firmware/0000:03:00.0/data
> >
> > So aparently, it does find the firmware and sends it off somewhere to be
> > loaded. I don't know what should happen next, or where or why it could
> > be failing. Ideas, anyone?
> 
> Hm. The part that loads the firmware is very simple: it calls
> request_firmware() and it fail if it returns an error.
> 
> Error -2 is -ENOENT (No such file or directory). request_firmware() returns
> that error code if the file has zero size of if the script aborted the
> operation. Please check if /usr/lib/hotplug/firmware/ea/indigo_io_dsp.fw is
> empty.

It's 17 kb away from empty. Also, firmware.agent seems to complete
successfuly from what I can tell. Lee Revell suggested on alsa-devel
that I should try with 2.6.12 since there have been changes in the
driver model since 2.6.10 (what i'm using). Indeed that seems to have
been the cause of the problem. With 2.6.12 I was able to play audio
nicely.

However, with 2.6.12 both support for my video hardware (radeon mobility
m6 ly on a sharp mm20 laptop) and my wireless network (prism) is broken.
I guess I have the choice between being blind or deaf. :(


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

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

* Re: [Alsa-user] need help getting echo indigo io to work
  2005-07-19 23:14   ` need help getting echo indigo io to work Phil Frost
@ 2005-07-20  3:25     ` Lee Revell
  0 siblings, 0 replies; 4+ messages in thread
From: Lee Revell @ 2005-07-20  3:25 UTC (permalink / raw)
  To: Phil Frost; +Cc: alsa-user, alsa-devel

On Tue, 2005-07-19 at 19:14 -0400, Phil Frost wrote:
> However, with 2.6.12 both support for my video hardware (radeon mobility
> m6 ly on a sharp mm20 laptop) and my wireless network (prism) is broken.
> I guess I have the choice between being blind or deaf. :(

Ugh, not again...

Try the latest stable kernel, 2.6.12.3 I think.

Also how does it break?

Lee



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

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

end of thread, other threads:[~2005-07-20  3:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20050718154008.GA30165@unununium.org>
     [not found] ` <20050719192814.5cecf532.pochini@shiny.it>
2005-07-19 23:14   ` need help getting echo indigo io to work Phil Frost
2005-07-20  3:25     ` [Alsa-user] " Lee Revell
2005-07-19 14:58 Phil Frost
2005-07-19 16:41 ` Lee Revell

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.