alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Wagner <wagi@monom.org>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: alsa-devel@alsa-project.org,
	linux1394-devel@lists.sourceforge.net,
	ffado-devel@lists.sourceforge.net
Subject: Re: [RFC][PATCH 00/13] bebob: a new driver for BridgeCo BeBoB based device
Date: Sun, 15 Dec 2013 17:17:25 +0100	[thread overview]
Message-ID: <52ADD615.4090003@monom.org> (raw)
In-Reply-To: <52A8553C.3050205@sakamocchi.jp>

Hi Takashi,

On 12/11/2013 01:06 PM, Takashi Sakamoto wrote:
> I'm sorry to be late for reply but I was hard to prepare series of patch
> for Fireworks driver.

No problemo. I am also slow as a heavy droged slug :)

>> I have uploaded some two logs. The first one is for the fa-66
>> (fw-fa66.txt) and the second one is for the Audio5 (fw-a5.txt).
>>
>> There seems to be an issue with the Audio5, though I haven't
>> looked into it yet (quite busy, sorry) For that device I
>> even got a serial console to it) Maybe you see the problem
>> already from the log.
>
> In the log of Audio5, there were much lock transaction for
> iPCR[0]/oPCR[0]. This means that snd-bebob tried to establish connection
> several times to start transmitting/receiving streams.

IIRC, I loaded the ALSA module by issuing

$ pactl load-module module-alsa-sink device=hw:X,X

> I guess that the module-alsa-sink of PulseAudio retried
> snd_pcm_prepare() several times due to get err. When snd_pcm_prepare()
> failed, snd_bebob_stream_start_duplex() is failed inner snd-bebob.
> Establishing connections is done by make_both_connections() so we should
> notice the codes after this function.
>
> There are four possibilities, two of them are related to start_stream()
> and the others are related to amdtp_stream_wait_callback(). But the
> former generates log output. So amdtp_stream_wait_callback() causes this
> issue;
>
> This function return false when snd-bebob cannot receive AMDTP
> in-packets within 100 msec after establishing connection. Please see
> amdtp.c in detail. I programmed this to prevent snd-bebob from waiting
> forever to receive in-packets.
>
> So I guess you can playback/capture with your device when you expand the
> time (200 msec or more). Or there are some bugs of snd-bebob to handle
> your device.

The A5 is basically the SDK from BridgeCo. It is surprising to see that
this device shows these kind of generic errors.

> Would you test and get logs again after expand waiting time? Then please
> use aplay/arecord to test. I believe simple tools help our investigating.

I'll give it a try coming week. Sorry for my really slow
debugging/testing cycles.

> And I hope you to give me an advice for my headache. As long as I
> investigated, snd-bebob can support 64 device and models (I count the
> devices to which the same expansion card can apply). But there are some
> devices which I can't identify its vendor_id/model_id.

You mean the vendor_id/model_id is not unique?

> [Identified devices and models]
> * Edirol FA-66/FA-101
> * PreSonus FIREBOX/FIREPOD
> * BridgeCo RDAudio1/Audio5
> * Mackie Onyx 820/1220/1620/1640 (Firewire I/O Card)
> * Mackie d.2 (Firewire Option)
> * Stanton FinalScratch 2 (ScratchAmp)
> * Tascam  IF-FW DM
> * Apogee Rosetta 200/400 (X-FireWire card)
> * Apogee DA/AD/DD-16X (X-FireWire card)
> * ESI Quotafire610
> * AcousticReality eARMasterOne
> * CME MatrixKFW
> * Phonic HB 12/12 MkII/12 Universal
> * Phonic HB 18/18 MkII/18 Universal
> * Phonic HB 24/24 MkII/24 Universal
> * Phonic FireFly 202/302
> * Lynx Aurora 8/16 (LT-FW)
> * ICON FireXon
> * PrismSound Orpheus/ADA-8XR
> * Yamaha GO44/GO46
> * TerraTec PHASE 24 FW/PHASE X24 FW/PHASE 88 Rack FW
> * Terratec EWS MIC2/EWS MIC4
> * Terratec Aureon 7.1 Firewire
> * Focusrite Saffire/Saffire LE/SaffirePro10 IO/SaffirePro26 IO
> * M-Audio Firewire410/AudioPhile/Solo/Ozonic/NRV10
> * M-Audio Firewire1814/ProjectMix IO/ProfireLightBridge
>
> [Unidentified devices and models]
> * PreSonus, Inspire 1394
> * Mackie, Digital X Bus x.200
> * Mackie, Digital X Bus x.400
> * CME, UF400e
> * Infrasonic, DewX
> * Infrasonic, Windy6
> * Rolf Spuler, Firewire Guitar
>
> Do you have any idea to identify them?

If the vendor/model id is not unique, maybe a more heuristic approach
is needed, e.g. by reading the number of in/out streams which makes
the device unique. But as you see, I don't have a good idea here.

cheers,
daniel

      parent reply	other threads:[~2013-12-15 16:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-23  6:09 [RFC][PATCH 00/13] bebob: a new driver for BridgeCo BeBoB based device Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 01/13] bebob: Add skelton for BridgeCo BeBoB based devices Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 02/13] bebob: Add command and stream management Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 03/13] bebob: Add proc interface for debug Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 04/13] bebob: Add functionality to change sampling rate and control interface Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 05/13] bebob: Add MIDI interface Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 06/13] bebob: Add PCM interface Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 07/13] bebob: Add hwdep interface to lock/unlock streaming Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 08/13] bebob: Prepare for device specific operations Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 09/13] bebob: add support for M-Audio Firewire series Takashi Sakamoto
2013-11-24  6:34   ` Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 10/13] bebob: Add support for Focusrite Saffire/SaffirePro series Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 11/13] bebob: Add support for Terratec PHASE series Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 12/13] bebob: Add support for Yamaha GO series Takashi Sakamoto
2013-11-23  6:09 ` [PATCH 13/13] bebob: Add support for Presonus FIREBOX/FIREPOD Takashi Sakamoto
2013-11-30 17:55 ` [FFADO-devel] [RFC][PATCH 00/13] bebob: a new driver for BridgeCo BeBoB based device Daniel Wagner
2013-12-01  4:42   ` Takashi Sakamoto
2013-12-05 21:08     ` Daniel Wagner
2013-12-11 12:06       ` Takashi Sakamoto
2013-12-11 14:17         ` Takashi Sakamoto
2013-12-15 16:17         ` Daniel Wagner [this message]

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=52ADD615.4090003@monom.org \
    --to=wagi@monom.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=ffado-devel@lists.sourceforge.net \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=o-takashi@sakamocchi.jp \
    /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).