Commit 2190b9a
ALSA: scarlett2: Allow passing any output to line_out_remap()
Line outputs 3 & 4 on the Gen 3 18i8 are internally the analogue 7 and
8 outputs, and this renumbering is hidden from the user by
line_out_remap(). By allowing higher values (representing non-analogue
outputs) to be passed to line_out_remap(), repeated code from
scarlett2_mux_src_enum_ctl_get() and scarlett2_mux_src_enum_ctl_put()
can be removed.
Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://lore.kernel.org/r/3b70267931f5994628ab27306c73cddd17b93c8f.1698342632.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>1 parent 701949c commit 2190b9a
1 file changed
Lines changed: 9 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2026 | 2026 | | |
2027 | 2027 | | |
2028 | 2028 | | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
2029 | 2032 | | |
2030 | 2033 | | |
2031 | 2034 | | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
2032 | 2039 | | |
2033 | 2040 | | |
2034 | 2041 | | |
| |||
3513 | 3520 | | |
3514 | 3521 | | |
3515 | 3522 | | |
3516 | | - | |
3517 | | - | |
3518 | | - | |
3519 | | - | |
3520 | | - | |
3521 | | - | |
3522 | | - | |
3523 | | - | |
| 3523 | + | |
3524 | 3524 | | |
3525 | 3525 | | |
3526 | 3526 | | |
| |||
3537 | 3537 | | |
3538 | 3538 | | |
3539 | 3539 | | |
3540 | | - | |
3541 | | - | |
3542 | | - | |
3543 | | - | |
3544 | | - | |
| 3540 | + | |
3545 | 3541 | | |
3546 | 3542 | | |
3547 | | - | |
3548 | | - | |
3549 | | - | |
3550 | 3543 | | |
3551 | 3544 | | |
3552 | 3545 | | |
| |||
0 commit comments