All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Clemens Ladisch <clemens@ladisch.de>
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: Mon, 08 Dec 2014 09:51:56 +0900	[thread overview]
Message-ID: <5484F62C.2010807@sakamocchi.jp> (raw)
In-Reply-To: <5484CE49.6090105@ladisch.de>

On Dec 6 2014 07:01, Clemens Ladisch wrote:
> 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.

Oops, indeed.

I correct it in my next patchset with the other correction, in a few days.


Thanks

Takashi Sakamoto
o-takashi@sakamocchi.jp

  reply	other threads:[~2014-12-08  0:51 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
2014-12-08  0:51     ` Takashi Sakamoto [this message]
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=5484F62C.2010807@sakamocchi.jp \
    --to=o-takashi@sakamocchi.jp \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=ffado-devel@lists.sourceforge.net \
    --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 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.