mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
sink: Remove PASSTHROUGH flag
This removes the passthrough flag from sinks since we will drop exclusively passthrough sinks in favour of providing a list of formats supported by each sink. We can still determine whether a sink is in passthrough mode by checking if any non-PCM streams are attached to it.
This commit is contained in:
parent
54c391e6db
commit
71ec9577cf
5 changed files with 41 additions and 60 deletions
|
|
@ -1707,13 +1707,6 @@ static int setup_mixer(struct userdata *u, pa_bool_t ignore_dB, pa_bool_t sync_v
|
|||
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