Commit db2d1a91 authored by Adrian Knoth's avatar Adrian Knoth Committed by Takashi Iwai

ALSA: hdspm - AES32: Add TCO and Sync-In text entries

Provide the text for the two new clock options "TCO" and "Sync In" on
AES32 cards.
Signed-off-by: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 3c32de58
...@@ -561,10 +561,13 @@ static char *hdspm_speed_names[] = { "single", "double", "quad" }; ...@@ -561,10 +561,13 @@ static char *hdspm_speed_names[] = { "single", "double", "quad" };
static char *texts_autosync_aes_tco[] = { "Word Clock", static char *texts_autosync_aes_tco[] = { "Word Clock",
"AES1", "AES2", "AES3", "AES4", "AES1", "AES2", "AES3", "AES4",
"AES5", "AES6", "AES7", "AES8", "AES5", "AES6", "AES7", "AES8",
"TCO" }; "TCO", "Sync In"
};
static char *texts_autosync_aes[] = { "Word Clock", static char *texts_autosync_aes[] = { "Word Clock",
"AES1", "AES2", "AES3", "AES4", "AES1", "AES2", "AES3", "AES4",
"AES5", "AES6", "AES7", "AES8" }; "AES5", "AES6", "AES7", "AES8",
"Sync In"
};
static char *texts_autosync_madi_tco[] = { "Word Clock", static char *texts_autosync_madi_tco[] = { "Word Clock",
"MADI", "TCO", "Sync In" }; "MADI", "TCO", "Sync In" };
static char *texts_autosync_madi[] = { "Word Clock", static char *texts_autosync_madi[] = { "Word Clock",
...@@ -2941,11 +2944,11 @@ static int snd_hdspm_info_autosync_ref(struct snd_kcontrol *kcontrol, ...@@ -2941,11 +2944,11 @@ static int snd_hdspm_info_autosync_ref(struct snd_kcontrol *kcontrol,
if (AES32 == hdspm->io_type) { if (AES32 == hdspm->io_type) {
static char *texts[] = { "WordClock", "AES1", "AES2", "AES3", static char *texts[] = { "WordClock", "AES1", "AES2", "AES3",
"AES4", "AES5", "AES6", "AES7", "AES8", "None"}; "AES4", "AES5", "AES6", "AES7", "AES8", "TCO", "Sync In", "None"};
uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
uinfo->count = 1; uinfo->count = 1;
uinfo->value.enumerated.items = 10; uinfo->value.enumerated.items = ARRAY_SIZE(texts);
if (uinfo->value.enumerated.item >= if (uinfo->value.enumerated.item >=
uinfo->value.enumerated.items) uinfo->value.enumerated.items)
uinfo->value.enumerated.item = uinfo->value.enumerated.item =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment