mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
alsa: profile 0 is Off
This commit is contained in:
parent
857b2a0cfb
commit
9420497dd9
1 changed files with 3 additions and 3 deletions
|
|
@ -145,7 +145,7 @@ static int activate_profile(struct impl *this, snd_ctl_t *ctl_hndl, uint32_t id)
|
||||||
|
|
||||||
this->n_nodes = 0;
|
this->n_nodes = 0;
|
||||||
|
|
||||||
if (id == 1)
|
if (id == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
snd_pcm_info_alloca(&pcminfo);
|
snd_pcm_info_alloca(&pcminfo);
|
||||||
|
|
@ -307,13 +307,13 @@ static int impl_enum_params(void *object, int seq,
|
||||||
param = spa_pod_builder_add_object(&b,
|
param = spa_pod_builder_add_object(&b,
|
||||||
SPA_TYPE_OBJECT_ParamProfile, id,
|
SPA_TYPE_OBJECT_ParamProfile, id,
|
||||||
SPA_PARAM_PROFILE_index, SPA_POD_Int(0),
|
SPA_PARAM_PROFILE_index, SPA_POD_Int(0),
|
||||||
SPA_PARAM_PROFILE_name, SPA_POD_String("On"));
|
SPA_PARAM_PROFILE_name, SPA_POD_String("Off"));
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
param = spa_pod_builder_add_object(&b,
|
param = spa_pod_builder_add_object(&b,
|
||||||
SPA_TYPE_OBJECT_ParamProfile, id,
|
SPA_TYPE_OBJECT_ParamProfile, id,
|
||||||
SPA_PARAM_PROFILE_index, SPA_POD_Int(1),
|
SPA_PARAM_PROFILE_index, SPA_POD_Int(1),
|
||||||
SPA_PARAM_PROFILE_name, SPA_POD_String("Off"));
|
SPA_PARAM_PROFILE_name, SPA_POD_String("On"));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue