From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: clemens@ladisch.de
Cc: alsa-devel@alsa-project.org, ffado-devel@lists.sf.net
Subject: Re: [PATCH 03/13] dice: Split transaction functionality into a file
Date: Tue, 27 May 2014 12:42:10 +0900 [thread overview]
Message-ID: <53840992.9000704@sakamocchi.jp> (raw)
In-Reply-To: <1400420198-24312-4-git-send-email-o-takashi@sakamocchi.jp>
[-- Attachment #1: Type: text/plain, Size: 112 bytes --]
This patch includes two bugs. Please apply attached fixup.
Regards
Takashi Sakamoto
o-takashi@sakamocchi.jp
[-- Attachment #2: 0084-fixup-for-PATCH-03-13.patch --]
[-- Type: text/x-diff, Size: 1884 bytes --]
>From 59777bb80164e54611a933ed090d67772e5b458b Mon Sep 17 00:00:00 2001
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Date: Tue, 27 May 2014 02:27:04 +0900
Subject: fixup for [PATCH 03/13]
fix wrong type of variable for function argument, and prevent from narrowing
conversion.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
sound/firewire/dice/dice.c | 8 ++++----
sound/firewire/dice/dice_transaction.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sound/firewire/dice/dice.c b/sound/firewire/dice/dice.c
index f410030..a0172a7 100644
--- a/sound/firewire/dice/dice.c
+++ b/sound/firewire/dice/dice.c
@@ -865,7 +865,7 @@ static int dice_interface_check(struct fw_unit *unit)
};
struct fw_device *device = fw_parent_device(unit);
struct fw_csr_iterator it;
- int key, vendor = -1, model = -1, err;
+ int key, val, vendor = -1, model = -1, err;
unsigned int category, i;
__be32 *pointers, value;
__be32 tx_data[4];
@@ -882,13 +882,13 @@ static int dice_interface_check(struct fw_unit *unit)
* ID, and a 22-bit serial number.
*/
fw_csr_iterator_init(&it, unit->directory);
- while (fw_csr_iterator_next(&it, &key, &value)) {
+ while (fw_csr_iterator_next(&it, &key, &val)) {
switch (key) {
case CSR_SPECIFIER_ID:
- vendor = value;
+ vendor = val;
break;
case CSR_MODEL:
- model = value;
+ model = val;
break;
}
}
diff --git a/sound/firewire/dice/dice_transaction.c b/sound/firewire/dice/dice_transaction.c
index 90773b8..1ac249a 100644
--- a/sound/firewire/dice/dice_transaction.c
+++ b/sound/firewire/dice/dice_transaction.c
@@ -12,7 +12,7 @@
#define NOTIFICATION_TIMEOUT_MS 100
static u64 get_subaddr(struct snd_dice *dice, enum snd_dice_addr_type type,
- unsigned int offset)
+ u64 offset)
{
switch (type) {
case SND_DICE_ADDR_TYPE_TX:
--
1.8.3.2
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2014-05-27 3:42 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-18 13:36 [RFC][PATCH 00/13 v1] Enhancement for Dice driver Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 01/13] dice: Rename structure and its members Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 02/13] dice: Move file to its own directory Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 03/13] dice: Split transaction functionality into a file Takashi Sakamoto
2014-05-27 3:42 ` Takashi Sakamoto [this message]
2014-05-18 13:36 ` [PATCH 04/13] dice: Split stream " Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 05/13] dice: Split PCM " Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 06/13] dice: Split hwdep " Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 07/13] dice: Split proc " Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 08/13] dice: Add new functions for limitation of PCM parameters Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 09/13] dice: Change the way to start stream Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 10/13] dice: Add support for duplex streams with synchronization Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 11/13] dice: Support for non SYT-Match sampling clock source mode Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 12/13] dice: Add support for PCM capture Takashi Sakamoto
2014-05-18 13:36 ` [PATCH 13/13] dice: Add support for MIDI capture/playback Takashi Sakamoto
2014-05-19 7:58 ` [RFC][PATCH 00/13 v1] Enhancement for Dice driver Stefan Richter
2014-05-19 8:36 ` Takashi Sakamoto
2014-05-19 8:43 ` Takashi Iwai
2014-05-19 9:11 ` Takashi Sakamoto
2014-05-19 8:46 ` Lars-Peter Clausen
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=53840992.9000704@sakamocchi.jp \
--to=o-takashi@sakamocchi.jp \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=ffado-devel@lists.sf.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox