All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Jonathan Woithe <jwoithe@just42.net>
Cc: alsa-devel@alsa-project.org,
	linux1394-devel@lists.sourceforge.net, ffado-devel@lists.sf.net
Subject: Re: Sample program for hwdep interface
Date: Sun, 05 Jan 2014 20:18:35 +0900	[thread overview]
Message-ID: <52C93F8B.1010701@sakamocchi.jp> (raw)
In-Reply-To: <20131221101123.GA17855@marvin.atrad.com.au>

Jonathan, Clemens,

I'm sorry to be late for reply but I need to enjoy my year-end holidays 
to refresh my brain.

(Dec 21 2013 19:11), Jonathan Woithe wrote:
 > I thought this ticket was more or less resolved.

I've just added a workaround for this ticket.
My patch avoids buffer-over-run/assertion and apply some fallback.
Then FFADO just looks to handle the models.

(Dec 21 2013 19:11), Jonathan Woithe wrote:
 > This ticket requires fixes within FFADO's mixer/control code (or so I 
thought).

Yes. And this ticket still affects FFADO's streaming functionality.

(Dec 21 2013 19:11), Jonathan Woithe wrote:
 > How exactly does this program deal with ticket #360?
 > Or is this program simply demonstrating what FFADO must do?

This program just demonstrates how to use hwdep interface.

For Fireworks, via this interface, FFADO can use all of implemented 
commands without failures. And it's my solution for this ticket.

Here, I try to describe the detail related to this ticket[1].
I should have mentioned the detail in ffado-devel but I got the whole 
picture in the end of last year.

Cause:
The bug is due to failure of some commands in some models.
The commands are 'EfcGetClockCmd' and 'EfcPolledValuesCmd'.
These commands are used to get device status.
The bug appears in initializing process of FFADO.
So this bug affects both streaming and mixer/control functionality.

Workaround:
Using alternative way when failed.
  - 'AV/C PLUG SIGNAL FORMAT' command to get sampling rate (applied at 
r2240)
  - 'AV/C SIGNAL SOURCE' command to get clock source (not applied)
But disadvantages.
  - No alternatives for 'EfcPolledValuesCmd'
  - GenericAVC device class has a bug to switch sampling rate (I'm under 
further investigation.)

Fact:
I actually confirmed these commands are failed in one of reported models.
But these commands are success in unreported models.
FFADO implementation of these commands is over 'AV/C VENDOR DEPENDENT' 
command.
So I tried these commands via specific addresses which Windows driver uses.
Then I got always success in the models.

Information:
In the end of last year, I had a contact in Echo Audio.
I asked the implementation of 'Echo Fireworks Command/Response' over 
'AV/C vendor dependent' command.
The person answered that some commands are not implemented on current 
firmware for reported models.
(I have no information for the reason.)
The person also said that there are no differences between firmwares 
installed by drivers of Windows/OS X.

A solution:
Using these addresses for command/response.

An issue:
Using an address range for response has an issue.
The address range is an exclusive-resource in an system [2].

In my opinion, considering ALSA/FFADO, it's better that such resource is 
used
in kernel-land driver and the driver gives an interface to use it for 
user-land
application.

Of cource, there is another way, to use this resource just in
one user-land application such as ffado-dbus-server.
Then I need to make another way for kernel-land driver.
(Maybe implementing alternative AV/C commands)

[1] http://subversion.ffado.org/ticket/360
[2] 
http://mailman.alsa-project.org/pipermail/alsa-devel/2013-December/070447.html

Regards


Takashi Sakamoto


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk

  parent reply	other threads:[~2014-01-05 11:18 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20 13:13 [RFC v2][PATCH 00/38] Enhancement for support of some firewire devices Takashi Sakamoto
2013-12-20 13:13 ` [PATCH 01/38] firewire-lib: Rename functions, structure, member for AMDTP Takashi Sakamoto
2013-12-20 13:13 ` [PATCH 02/38] firewire-lib: Add macros instead of fixed value " Takashi Sakamoto
2013-12-20 13:13 ` [PATCH 03/38] firewire-lib: Add 'direction' member to 'amdtp_stream' structure Takashi Sakamoto
2013-12-20 13:13 ` [PATCH 04/38] firewire-lib: Split some codes into functions to reuse for both streams Takashi Sakamoto
2013-12-20 13:13 ` [PATCH 05/38] firewire-lib: Add support for AMDTP in-stream and PCM capture Takashi Sakamoto
2013-12-20 13:13 ` [PATCH 06/38] firewire-lib: Add support for MIDI capture/playback Takashi Sakamoto
2013-12-20 13:13 ` [PATCH 07/38] firewire-lib: Give syt value as parameter to handle_out_packet() Takashi Sakamoto
2013-12-20 13:13 ` [PATCH 08/38] firewire-lib: Add support for duplex streams synchronization in blocking mode Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 09/38] firewire-lib: Add sort function for transmitted packet Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 10/38] firewire-lib: Add transfer delay to synchronized duplex streams Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 11/38] firewire-lib: Add support for channel mapping Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 12/38] firewire-lib: Rename macros, variables and functions for CMP Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 13/38] firewire-lib: Add 'direction' member to 'cmp_connection' structure Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 14/38] firewire-lib: Add handling output connection by CMP Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 15/38] firewire-lib: Add a new function to check others' connection Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 16/38] firewire-lib: Add some AV/C general commands Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 17/38] firewire-lib: Add quirks for Fireworks Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 18/38] fireworks: Add skelton for Fireworks based devices Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 19/38] fireworks: Add transaction and some commands Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 20/38] fireworks: Add connection and stream management Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 21/38] fireworks: Add proc interface for debugging purpose Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 22/38] fireworks: Add MIDI interface Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 23/38] fireworks: Add PCM interface Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 24/38] fireworks: Add hwdep interface Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 25/38] fireworks: Add command/response functionality into " Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 26/38] bebob: Add skelton for BeBoB based devices Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 27/38] bebob: Add commands and connections/streams management Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 28/38] bebob: Add proc interface for debugging purpose Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 29/38] bebob: Add MIDI interface Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 30/38] bebob: Add PCM interface Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 31/38] bebob: Add hwdep interface Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 32/38] bebob: Prepare for device specific operations Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 33/38] bebob: Add support for Terratec PHASE, EWS series and Aureon Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 34/38] bebob: Add support for Yamaha GO series Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 35/38] bebob: Add support for Focusrite Saffire/SaffirePro series Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 36/38] bebob: Add support for M-Audio usual Firewire series Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 37/38] bebob: Add support for M-Audio special " Takashi Sakamoto
2013-12-20 13:14 ` [PATCH 38/38] bebob: Send a cue to load firmware for M-Audio " Takashi Sakamoto
2013-12-20 14:46 ` Sample program for hwdep interface Takashi Sakamoto
2013-12-21 10:11   ` [FFADO-devel] " Jonathan Woithe
2013-12-21 13:48     ` Clemens Ladisch
2014-01-05 11:18     ` Takashi Sakamoto [this message]
2014-01-12 13:22       ` Stefan Richter
2014-01-12 15:26         ` Takashi Sakamoto
2014-02-02 13:58           ` Echo Fireworks control protocol (was Re: Sample program for hwdep interface) Stefan Richter
2014-02-08 13:22             ` Takashi Sakamoto
2014-02-09 11:42               ` Jonathan Woithe
2014-02-09 14:51                 ` Stefan Richter
2014-02-09 16:53                   ` Takashi Sakamoto
2014-02-09 22:29                   ` Jonathan Woithe

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=52C93F8B.1010701@sakamocchi.jp \
    --to=o-takashi@sakamocchi.jp \
    --cc=alsa-devel@alsa-project.org \
    --cc=ffado-devel@lists.sf.net \
    --cc=jwoithe@just42.net \
    --cc=linux1394-devel@lists.sourceforge.net \
    /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.