mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-24 07:00:00 -05:00
ac3dec - Add -H option for HDMI
The HD-audio can have an independent HDMI PCM device via "hdmi". The option -H is for using hdmi instead of spdif. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0478bb19e1
commit
1ffbd0ab28
3 changed files with 20 additions and 3 deletions
|
|
@ -56,6 +56,7 @@ static void help(void)
|
|||
printf(" -C,--iec958c raw IEC958 (S/PDIF) consumer mode\n");
|
||||
printf(" -P,--iec958p raw IEC958 (S/PDIF) professional mode\n");
|
||||
printf(" -R,--iec958r raw IEC958 (S/PDIF) PCM\n");
|
||||
printf(" -H,--hdmi output to HDMI device\n");
|
||||
printf(" -Z,--zero=# add # zero-AC3-frames before stream\n");
|
||||
printf(" -q,--quit quit mode\n");
|
||||
}
|
||||
|
|
@ -106,6 +107,7 @@ int main(int argc,char *argv[])
|
|||
{"spdif", 0, NULL, 'C'},
|
||||
{"iec958p", 0, NULL, 'P'},
|
||||
{"iec958r", 0, NULL, 'R'},
|
||||
{"hdmi", 0, NULL, 'H'},
|
||||
{"zero", 1, NULL, 'Z'},
|
||||
{"quit", 0, NULL, 'q'},
|
||||
{NULL, 0, NULL, 0},
|
||||
|
|
@ -126,6 +128,7 @@ int main(int argc,char *argv[])
|
|||
out_config.rate = 48000;
|
||||
out_config.channels = 2;
|
||||
out_config.spdif = SPDIF_NONE;
|
||||
out_config.hdmi = 0;
|
||||
|
||||
morehelp = 0;
|
||||
while (1) {
|
||||
|
|
@ -166,6 +169,9 @@ int main(int argc,char *argv[])
|
|||
ac3_config.num_output_ch = 2;
|
||||
out_config.spdif = SPDIF_PCM;
|
||||
break;
|
||||
case 'H':
|
||||
out_config.hdmi = 1;
|
||||
break;
|
||||
case 'Z':
|
||||
zero = atoi(optarg);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue