Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: tiwai@suse.de, alsa-devel@alsa-project.org,
	ffado-devel@lists.sourceforge.net
Subject: Re: [PATCH 07/15] ALSA: oxfw: Add support for AV/C stream	format command to get/set supported stream formation
Date: Sun, 07 Dec 2014 23:01:45 +0100	[thread overview]
Message-ID: <5484CE49.6090105@ladisch.de> (raw)
In-Reply-To: <1417958348-30333-8-git-send-email-o-takashi@sakamocchi.jp>

Takashi Sakamoto wrote:
> +++ b/sound/firewire/oxfw/oxfw-command.c
> +int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir,
> +			  unsigned int pid, u8 *format, unsigned int len)
> +{
> +	buf[0] = 0x00;		/* CONTROL */
> +	buf[1] = 0xff;		/* UNIT */
> +	buf[2] = 0xbf;		/* EXTENDED STREAM FORMAT INFORMATION */
> +	buf[3] = 0xc0;		/* SINGLE subfunction */
> +	buf[4] = dir;		/* Plug Direction */
> +	buf[5] = 0x00;		/* UNIT */
> +	buf[6] = 0x00;		/* PCR (Isochronous Plug) */
> +	buf[7] = 0xff & pid;	/* Plug ID */
> +	buf[8] = 0xff;		/* Padding */
> +	buf[9] = 0xff;		/* Support status in response */
> +	memcpy(buf + 10, format, len);
> +
> +	/* do transaction and check buf[1-7] are the same against command */
> +	err = fcp_avc_transaction(unit, buf, len + 10, buf, len + 10,
> +				  BIT(1) | BIT(2) | BIT(3) | BIT(4) | BIT(5) |
> +				  BIT(6) | BIT(7) | BIT(8));

The comment says 1-7, the code says 1-8.


Regards,
Clemens

  reply	other threads:[~2014-12-07 22:02 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-07 13:18 [PATCH 00/15 v4] ALSA: Enhancement for existed FireWire drivers Takashi Sakamoto
2014-12-07 13:18 ` [PATCH 01/15] ALSA: dice: Change the way to start stream Takashi Sakamoto
2014-12-07 13:18 ` [PATCH 02/15] ALSA: dice: Add support for duplex streams with synchronization Takashi Sakamoto
2014-12-07 13:18 ` [PATCH 03/15] ALSA: dice: Support for non SYT-Match sampling clock source mode Takashi Sakamoto
2014-12-07 13:18 ` [PATCH 04/15] ALSA: dice: Add support for capturing PCM samples Takashi Sakamoto
2014-12-07 13:18 ` [PATCH 05/15] ALSA: dice: Add support for MIDI capture/playback Takashi Sakamoto
2014-12-07 21:44   ` Clemens Ladisch
2014-12-08  0:50     ` Takashi Sakamoto
2014-12-07 13:18 ` [PATCH 06/15] ALSA: oxfw: Change the way to name card Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 07/15] ALSA: oxfw: Add support for AV/C stream format command to get/set supported stream formation Takashi Sakamoto
2014-12-07 22:01   ` Clemens Ladisch [this message]
2014-12-08  0:51     ` Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 08/15] ALSA: oxfw: Change the way to make PCM rules/constraints Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 09/15] ALSA: oxfw: Add proc interface for debugging purpose Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 10/15] ALSA: oxfw: Change the way to start stream Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 11/15] ALSA: oxfw: Add support for Behringer/Mackie devices Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 12/15] ALSA: oxfw: Add support AMDTP in-stream Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 13/15] ALSA: oxfw: add support for capturing PCM samples Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 14/15] ALSA: oxfw: Add support for capture/playback MIDI messages Takashi Sakamoto
2014-12-07 13:19 ` [PATCH 15/15] ALSA: oxfw: Add hwdep interface Takashi Sakamoto
  -- strict thread matches above, loose matches on Subject: below --
2014-12-08 15:10 [PATCH 00/15 v5] ALSA: Enhancement for existed FireWire drivers Takashi Sakamoto
2014-12-08 15:10 ` [PATCH 07/15] ALSA: oxfw: Add support for AV/C stream format command to get/set supported stream formation Takashi Sakamoto

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=5484CE49.6090105@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=ffado-devel@lists.sourceforge.net \
    --cc=o-takashi@sakamocchi.jp \
    --cc=tiwai@suse.de \
    /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