aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-08-21 08:47:18 -0400
committerTakashi Iwai <tiwai@suse.de>2012-09-06 12:08:34 -0400
commit080108c4747c7378c3601b8584237484f977d8a8 (patch)
tree1fd819403a1e6ea93dae80bdaafd1ed3b2407ff7 /include/sound
parent6e67683d718c627aa585a82ae0eb44a7058eae5a (diff)
ALSA: Follow channel position definitions to alsa-lib mixer
There is already a set of channel position definitions in alsa-lib mixer.h, and it'd be more practical to keep the same order for the PCM channel map, too. The value is shifted with 1 to keep zero for UNKNOWN. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/asound.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/sound/asound.h b/include/sound/asound.h
index 376e75632e07..27686da0f650 100644
--- a/include/sound/asound.h
+++ b/include/sound/asound.h
@@ -474,20 +474,22 @@ enum {
474 474
475/* channel positions */ 475/* channel positions */
476enum { 476enum {
477 /* this follows the alsa-lib mixer channel value + 1 */
477 SNDRV_CHMAP_UNKNOWN = 0, 478 SNDRV_CHMAP_UNKNOWN = 0,
478 SNDRV_CHMAP_FL, /* front left */ 479 SNDRV_CHMAP_FL, /* front left */
479 SNDRV_CHMAP_FC, /* front center */
480 SNDRV_CHMAP_FR, /* front right */ 480 SNDRV_CHMAP_FR, /* front right */
481 SNDRV_CHMAP_FLC, /* front left center */
482 SNDRV_CHMAP_FRC, /* front right center */
483 SNDRV_CHMAP_RL, /* rear left */ 481 SNDRV_CHMAP_RL, /* rear left */
484 SNDRV_CHMAP_RC, /* rear center */
485 SNDRV_CHMAP_RR, /* rear right */ 482 SNDRV_CHMAP_RR, /* rear right */
486 SNDRV_CHMAP_RLC, /* rear left center */ 483 SNDRV_CHMAP_FC, /* front center */
487 SNDRV_CHMAP_RRC, /* rear right center */ 484 SNDRV_CHMAP_LFE, /* LFE */
488 SNDRV_CHMAP_SL, /* side left */ 485 SNDRV_CHMAP_SL, /* side left */
489 SNDRV_CHMAP_SR, /* side right */ 486 SNDRV_CHMAP_SR, /* side right */
490 SNDRV_CHMAP_LFE, /* LFE */ 487 SNDRV_CHMAP_RC, /* rear center */
488 /* new definitions */
489 SNDRV_CHMAP_FLC, /* front left center */
490 SNDRV_CHMAP_FRC, /* front right center */
491 SNDRV_CHMAP_RLC, /* rear left center */
492 SNDRV_CHMAP_RRC, /* rear right center */
491 SNDRV_CHMAP_FLW, /* front left wide */ 493 SNDRV_CHMAP_FLW, /* front left wide */
492 SNDRV_CHMAP_FRW, /* front right wide */ 494 SNDRV_CHMAP_FRW, /* front right wide */
493 SNDRV_CHMAP_FLH, /* front left high */ 495 SNDRV_CHMAP_FLH, /* front left high */