mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Follow channel position definitions to mixer channel in mixer.h
mixer.h already contains some channel position definitions. To be more consistent over all systems, better to follow the same order for the new channel map, too. But since UNKNOWN channel must be zero but the definition in mixer.h contains -1 as UNKNOWN, simply shift the value with 1. If the conversion is required between SND_CHMAP and SND_MIXER_SCHN, just increment/decrement 1. Eventually I'll provide helper functions for that... Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
915b26bfe8
commit
0f36270dd3
3 changed files with 20 additions and 21 deletions
|
|
@ -486,18 +486,18 @@ enum snd_pcm_chmap_type {
|
|||
enum snd_pcm_chmap_position {
|
||||
SND_CHMAP_UNKNOWN = 0, /** unspecified */
|
||||
SND_CHMAP_FL, /** front left */
|
||||
SND_CHMAP_FC, /** front center */
|
||||
SND_CHMAP_FR, /** front right */
|
||||
SND_CHMAP_FLC, /** front left center */
|
||||
SND_CHMAP_FRC, /* front right center */
|
||||
SND_CHMAP_RL, /** rear left */
|
||||
SND_CHMAP_RC, /** rear center */
|
||||
SND_CHMAP_RR, /** rear right */
|
||||
SND_CHMAP_RLC, /** rear left center */
|
||||
SND_CHMAP_RRC, /** rear right center */
|
||||
SND_CHMAP_FC, /** front center */
|
||||
SND_CHMAP_LFE, /** LFE */
|
||||
SND_CHMAP_SL, /** side left */
|
||||
SND_CHMAP_SR, /** side right */
|
||||
SND_CHMAP_LFE, /** LFE */
|
||||
SND_CHMAP_RC, /** rear center */
|
||||
SND_CHMAP_FLC, /** front left center */
|
||||
SND_CHMAP_FRC, /** front right center */
|
||||
SND_CHMAP_RLC, /** rear left center */
|
||||
SND_CHMAP_RRC, /** rear right center */
|
||||
SND_CHMAP_FLW, /** front left wide */
|
||||
SND_CHMAP_FRW, /** front right wide */
|
||||
SND_CHMAP_FLH, /** front left high */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue