mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2026-03-22 05:33:54 -04:00
fixed -c option
This commit is contained in:
parent
40cfde62d7
commit
295539577d
2 changed files with 7 additions and 3 deletions
|
|
@ -52,7 +52,6 @@ int output_open(output_t *output)
|
|||
switch (output->channels) {
|
||||
case 1:
|
||||
case 2:
|
||||
sprintf(devstr, "default");
|
||||
if (output->spdif != SPDIF_NONE) {
|
||||
unsigned char s[4];
|
||||
if (output->spdif == SPDIF_PRO) {
|
||||
|
|
@ -76,6 +75,11 @@ int output_open(output_t *output)
|
|||
sprintf(devstr, "iec958:AES0=0x%x,AES1=0x%x,AES2=0x%x,AES3=0x%x", s[0], s[1], s[2], s[3]);
|
||||
if (out_config.card)
|
||||
sprintf(devstr + strlen(devstr), ",CARD=%s", out_config.card);
|
||||
} else {
|
||||
if (out_config.card)
|
||||
sprintf(devstr, "plughw:%s", out_config.card);
|
||||
else
|
||||
sprintf(devstr, "default");
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue