Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2716870pxb; Sun, 17 Oct 2021 23:39:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgtxOWWoGlVukoePdDTJ+cdbNM7UWgbLFtJyswWpDCVQAtlOk4DGuec5mAkqDle5iIYy11 X-Received: by 2002:a17:906:4ed9:: with SMTP id i25mr27923884ejv.228.1634539176901; Sun, 17 Oct 2021 23:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634539176; cv=none; d=google.com; s=arc-20160816; b=XbQPd3GHJlbNCos5lmv08DvBFTq7G0VR7wgNRdLlth2UCJfcCfaBM/K+ZMEaT/GnbU gaty+S8IUEYD4/RLJRgbarmC3JMpGWO39ttZhsy885KXB6n2nZjUTpUaBnkHapsfx1us WP/hf5waT0ShzNkhXNXacZsII6srSDbasqYrrjsWcFTlb+OvY5Ae2m7hm6nfhzcaU9DH PfzQift3eQ2sOTGjAskqE3upSprVxosi+wpIhPjQeNP6T9D9NVwVAxzV/BBRUHTf2+co Lu7FPjlzlOVv+fW1hnRIMHenyx7RtZ2tPoPiG1HrDL3sVqK9FNLWs2k+hta0x41X2eXt cCeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=axkVwMCJWGOjTC2SPYws1bBoVFyPgvGOg+EGo3bGeEc=; b=Iosb8MWMQ2mIct1TYqverAjGr4LO9vNr+IefqvxNNHBAjsyBRlA4rk+weMPFSQ28so pnBdDN79VugVq2K2v5b5wBmI9TE1fGVBZDJhMIzeiazuOJ+7w0IYJFT0HAidWUCfaVv3 0R+cF/p7a1Uq8HAtBpQ1FYDul/jYfKzABj7Y0+W3oceuqIq9y0+AU7CcTaw8EnK/P+bJ TSXK1MaChbGonRZkSyqQxrGerQYdvQx9krhxYAlyDrjeymcemps9vxbWttmxATDyYmsI An9i8WNhW7XszJbHu7Zc0vH7pnbZlTn8b6+2YyVy+q+VtSfrGmF2JvCr/F0vKvMQ2BRF ChyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=G1in2rQN; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si18596015edd.630.2021.10.17.23.39.13; Sun, 17 Oct 2021 23:39:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=G1in2rQN; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbhJRGjV (ORCPT + 99 others); Mon, 18 Oct 2021 02:39:21 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:56926 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbhJRGjV (ORCPT ); Mon, 18 Oct 2021 02:39:21 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 8EB2921A6B; Mon, 18 Oct 2021 06:37:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1634539029; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=axkVwMCJWGOjTC2SPYws1bBoVFyPgvGOg+EGo3bGeEc=; b=G1in2rQNCWV3Zq4oJ6CRFZnWQxNt2qNX6fSByLuILS+S1XH0lH9uKsnraRDjnJfuCe5qeY B4927tstZNkRhXvhI5kWRaR0rK+mbMjs4ut3vXNgZvfUG8IN4yfVs/FtaGAmiXinjC71n4 FOZRkd9jKV9aVgykAFoGjX+7HZE6r7Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1634539029; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=axkVwMCJWGOjTC2SPYws1bBoVFyPgvGOg+EGo3bGeEc=; b=i17mdPTgwkhGgZKMOWKjtKWlcS4xFcE0jm0FwMDn+/5p9aFKlig5xgLY4lhRrQAOdKE7DZ /LyMi5GKmMIlrtBA== Received: from alsa1.nue.suse.com (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 7AB09A3B84; Mon, 18 Oct 2021 06:37:09 +0000 (UTC) From: Takashi Iwai To: alsa-devel@alsa-project.org Cc: Takashi Sakamoto , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: firewire: Fix C++ style comments in uapi header Date: Mon, 18 Oct 2021 08:37:00 +0200 Message-Id: <20211018063700.30834-1-tiwai@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UAPI headers are built with -std=c90 and C++ style comments are explicitly prohibited. The recent commit overlooked the rule and caused the error at header installation. This patch corrects those. Fixes: bea36afa102e ("ALSA: firewire-motu: add message parser to gather meter information in register DSP model") Fixes: 90b28f3bb85c ("ALSA: firewire-motu: add message parser for meter information in command DSP model") Fixes: 634ec0b2906e ("ALSA: firewire-motu: notify event for parameter change in register DSP model") Reported-by: Stephen Rothwell Link: https://lore.kernel.org/r/20211018113812.0a16efb0@canb.auug.org.au Signed-off-by: Takashi Iwai --- include/uapi/sound/firewire.h | 70 ++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/include/uapi/sound/firewire.h b/include/uapi/sound/firewire.h index 76190a0cb069..e52a97b3ceaa 100644 --- a/include/uapi/sound/firewire.h +++ b/include/uapi/sound/firewire.h @@ -68,8 +68,8 @@ struct snd_firewire_event_tascam_control { struct snd_firewire_event_motu_register_dsp_change { unsigned int type; - __u32 count; // The number of changes. - __u32 changes[]; // Encoded event for change of register DSP. + __u32 count; /* The number of changes. */ + __u32 changes[]; /* Encoded event for change of register DSP. */ }; union snd_firewire_event { @@ -119,25 +119,27 @@ struct snd_firewire_tascam_state { __be32 data[SNDRV_FIREWIRE_TASCAM_STATE_COUNT]; }; -// In below MOTU models, software is allowed to control their DSP by accessing to registers. -// - 828mk2 -// - 896hd -// - Traveler -// - 8 pre -// - Ultralite -// - 4 pre -// - Audio Express -// -// On the other hand, the status of DSP is split into specific messages included in the sequence of -// isochronous packet. ALSA firewire-motu driver gathers the messages and allow userspace applications -// to read it via ioctl. In 828mk2, 896hd, and Traveler, hardware meter for all of physical inputs -// are put into the message, while one pair of physical outputs is selected. The selection is done by -// LSB one byte in asynchronous write quadlet transaction to 0x'ffff'f000'0b2c. -// -// I note that V3HD/V4HD uses asynchronous transaction for the purpose. The destination address is -// registered to 0x'ffff'f000'0b38 and '0b3c by asynchronous write quadlet request. The size of -// message differs between 23 and 51 quadlets. For the case, the number of mixer bus can be extended -// up to 12. +/* + * In below MOTU models, software is allowed to control their DSP by accessing to registers. + * - 828mk2 + * - 896hd + * - Traveler + * - 8 pre + * - Ultralite + * - 4 pre + * - Audio Express + * + * On the other hand, the status of DSP is split into specific messages included in the sequence of + * isochronous packet. ALSA firewire-motu driver gathers the messages and allow userspace applications + * to read it via ioctl. In 828mk2, 896hd, and Traveler, hardware meter for all of physical inputs + * are put into the message, while one pair of physical outputs is selected. The selection is done by + * LSB one byte in asynchronous write quadlet transaction to 0x'ffff'f000'0b2c. + * + * I note that V3HD/V4HD uses asynchronous transaction for the purpose. The destination address is + * registered to 0x'ffff'f000'0b38 and '0b3c by asynchronous write quadlet request. The size of + * message differs between 23 and 51 quadlets. For the case, the number of mixer bus can be extended + * up to 12. + */ #define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_METER_COUNT 40 @@ -219,18 +221,20 @@ struct snd_firewire_motu_register_dsp_parameter { __u8 reserved[64]; }; -// In below MOTU models, software is allowed to control their DSP by command in frame of -// asynchronous transaction to 0x'ffff'0001'0000: -// -// - 828 mk3 (FireWire only and Hybrid) -// - 896 mk3 (FireWire only and Hybrid) -// - Ultralite mk3 (FireWire only and Hybrid) -// - Traveler mk3 -// - Track 16 -// -// On the other hand, the states of hardware meter is split into specific messages included in the -// sequence of isochronous packet. ALSA firewire-motu driver gathers the message and allow userspace -// application to read it via ioctl. +/* + * In below MOTU models, software is allowed to control their DSP by command in frame of + * asynchronous transaction to 0x'ffff'0001'0000: + * + * - 828 mk3 (FireWire only and Hybrid) + * - 896 mk3 (FireWire only and Hybrid) + * - Ultralite mk3 (FireWire only and Hybrid) + * - Traveler mk3 + * - Track 16 + * + * On the other hand, the states of hardware meter is split into specific messages included in the + * sequence of isochronous packet. ALSA firewire-motu driver gathers the message and allow userspace + * application to read it via ioctl. + */ #define SNDRV_FIREWIRE_MOTU_COMMAND_DSP_METER_COUNT 400 -- 2.26.2