Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wu Fengguang <fengguang.wu@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: [PATCH] speaker-test.c - add readability comments to speaker	channels
Date: Fri, 20 Feb 2009 21:05:33 +0800	[thread overview]
Message-ID: <20090220130533.GA8812@localhost> (raw)
In-Reply-To: <s5hhc30m6oa.wl%tiwai@suse.de>


Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
 speaker-test/speaker-test.c |   72 +++++++++++++++++-----------------
 1 file changed, 36 insertions(+), 36 deletions(-)

--- alsa-utils.orig/speaker-test/speaker-test.c
+++ alsa-utils/speaker-test/speaker-test.c
@@ -85,48 +85,48 @@ static const char *given_test_wav_file =
 static char *wav_file_dir = SOUNDSDIR;
 
 static const char *const channel_name[MAX_CHANNELS] = {
-  N_("Front Left"),
-  N_("Front Right"),
-  N_("Rear Left"),
-  N_("Rear Right"),
-  N_("Center"),
-  N_("LFE"),
-  N_("Side Left"),
-  N_("Side Right"),
-  N_("Channel 9"),
-  N_("Channel 10"),
-  N_("Channel 11"),
-  N_("Channel 12"),
-  N_("Channel 13"),
-  N_("Channel 14"),
-  N_("Channel 15"),
-  N_("Channel 16")
+  /*  0 */ N_("Front Left"),
+  /*  1 */ N_("Front Right"),
+  /*  2 */ N_("Rear Left"),
+  /*  3 */ N_("Rear Right"),
+  /*  4 */ N_("Center"),
+  /*  5 */ N_("LFE"),
+  /*  6 */ N_("Side Left"),
+  /*  7 */ N_("Side Right"),
+  /*  8 */ N_("Channel 9"),
+  /*  9 */ N_("Channel 10"),
+  /* 10 */ N_("Channel 11"),
+  /* 11 */ N_("Channel 12"),
+  /* 12 */ N_("Channel 13"),
+  /* 13 */ N_("Channel 14"),
+  /* 14 */ N_("Channel 15"),
+  /* 15 */ N_("Channel 16")
 };
 
 static const int	channels4[] = {
-  0,
-  1,
-  3,
-  2
+  0, /* Front Left  */
+  1, /* Front Right */
+  3, /* Rear Right  */
+  2, /* Rear Left   */
 };
 static const int	channels6[] = {
-  0,
-  4,
-  1,
-  3,
-  2,
-  5
-}; 
+  0, /* Front Left  */
+  4, /* Center      */
+  1, /* Front Right */
+  3, /* Rear Right  */
+  2, /* Rear Left   */
+  5, /* LFE         */
+};
 static const int	channels8[] = {
-  0,
-  4,
-  1,
-  7,
-  3,
-  2,
-  6,
-  5
-}; 
+  0, /* Front Left  */
+  4, /* Center      */
+  1, /* Front Right */
+  7, /* Side Right  */
+  3, /* Rear Right  */
+  2, /* Rear Left   */
+  6, /* Side Left   */
+  5, /* LFE         */
+};
 
 static void generate_sine(uint8_t *frames, int channel, int count, double *_phase) {
   double phase = *_phase;

  parent reply	other threads:[~2009-02-20 13:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11  7:22 [PATCH 0/4] Intel HDMI audio fixes Wu Fengguang
2009-02-11  7:22 ` [PATCH 1/4] hda - allow multi-channel HDMI audio playback when ELD is not present Wu Fengguang
2009-02-11  7:22 ` [PATCH 2/4] hda - enable HDMI audio pin out at module loading time Wu Fengguang
2009-02-11  7:22 ` [PATCH 3/4] hda - compute checksum in HDMI audio infoframe Wu Fengguang
2009-02-11  7:22 ` [PATCH 4/4] hda - add id for Intel IbexPeak integrated HDMI codec Wu Fengguang
2009-02-11  8:10 ` [PATCH 0/4] Intel HDMI audio fixes Takashi Iwai
2009-02-11  8:20   ` Wu Fengguang
     [not found] ` <20090211223241.GA31322@csy.ca>
2009-02-11 22:42   ` Takashi Iwai
     [not found]     ` <20090211225448.GA32203@csy.ca>
2009-02-11 23:02       ` Takashi Iwai
2009-02-12  4:41         ` Wu Fengguang
     [not found]           ` <20090213172821.GA843@csy.ca>
2009-02-14 10:28             ` Takashi Iwai
2009-02-12  1:25     ` Wu Fengguang
2009-02-12  7:54       ` Takashi Iwai
2009-02-12  7:58         ` Wu Fengguang
2009-02-20 13:05         ` Wu Fengguang [this message]
2009-02-20 17:07           ` [PATCH] speaker-test.c - add readability comments to speaker channels Takashi Iwai

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=20090220130533.GA8812@localhost \
    --to=fengguang.wu@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --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