mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
AC3 passthrough support
Second version after Tanu's feedback
TODO:
- notify client that volume control is disabled
- change sink rate in passthrough mode if needed
- automatic detection of passthrough mode instead of hard
coded profile names
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
This commit is contained in:
parent
021aa306aa
commit
9b6c84ad6e
10 changed files with 124 additions and 6 deletions
|
|
@ -1616,6 +1616,13 @@ static int setup_mixer(struct userdata *u, pa_bool_t ignore_dB) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* FIXME: need automatic detection rather than hard-coded path */
|
||||
if (!strcmp(u->mixer_path->name, "iec958-passthrough-output")) {
|
||||
u->sink->flags |= PA_SINK_PASSTHROUGH;
|
||||
} else {
|
||||
u->sink->flags &= ~PA_SINK_PASSTHROUGH;
|
||||
}
|
||||
|
||||
if (!u->mixer_path->has_volume)
|
||||
pa_log_info("Driver does not support hardware volume control, falling back to software volume control.");
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue