Unable to set default audio device in v0.4.8
System Info
Pipewire Version: 0.3.45
Wireplumber version: 0.4.8
Distro: Arch Linux ARM
Kernel: 5.16.8-1-aarch64-ARCH
Desktop Environment: None
Problem
Unable to playback any music because there is no default audio device (you can play something with PULSE_SINK). And unable to set default audio device with wpctl set-default or pulsemixer.
When trying to set default audio device you will get this form wireplumber's log
D 06:47:53.359293 wp-pw-obj-mixin ../wireplumber/lib/wp/private/pipewire-object-mixin.c:128:enum_params_done: <WpPort:40:0xaaaaf2591350> got 2 params, ok, task <GTask:0xaaaaf24398f0>
D 06:47:53.359314 wp-pw-obj-mixin ../wireplumber/lib/wp/private/pipewire-object-mixin.c:594:enum_params_for_cache_done: <WpPort:40:0xaaaaf2591350> cached params id:3 (EnumFormat), n_params:2
D 06:47:53.359391 wp-core ../wireplumber/lib/wp/core.c:197:core_done: <WpCore:0xaaaaf2378010> done, seq 0x4000006e, task <GTask:0xaaaaf24399b0>
D 06:47:53.359414 wp-object ../wireplumber/lib/wp/object.c:537:wp_object_update_features: <WpPort:40:0xaaaaf2591350> features changed 0x11 -> 0x51
D 06:47:53.360239 m-default-nodes ../wireplumber/modules/module-default-nodes.c:510:schedule_rescan: <WpDefaultNodes:0xaaaaf23f6840> scheduling default nodes rescan
D 06:47:53.360300 wp-core ../wireplumber/lib/wp/core.c:956:wp_core_sync_closure: <WpCore:0xaaaaf2378010> sync, seq 0x4000006f, task <GTask:0xffff7400a6d0>
D 06:47:53.360552 wp-core ../wireplumber/lib/wp/core.c:197:core_done: <WpCore:0xaaaaf2378010> done, seq 0x4000006f, task <GTask:0xffff7400a6d0>
I 06:47:53.360932 m-default-nodes ../wireplumber/modules/module-default-nodes.c:335:reevaluate_default_node: <WpDefaultNodes:0xaaaaf23f6840> set default node for Audio/Sink: alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo
D 06:47:53.360984 pw.metadata ../pipewire/src/pipewire/impl-metadata.c:184:impl_set_property: 0xaaaaf24614b0: id:0 key:default.audio.sink type:Spa:String:JSON value:{"name":"alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo", "alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo":}
I 06:47:53.361069 pw.metadata ../pipewire/src/pipewire/impl-metadata.c:205:impl_set_property: 0xaaaaf24614b0: add id:0 key:default.audio.sink type:Spa:String:JSON value:{"name":"alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo", "alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo":}
D 06:47:53.361098 wp-metadata ../wireplumber/lib/wp/metadata.c:238:metadata_event_property: <WpImplMetadata:33:0xaaaaf2462220> add id:0 key:default.audio.sink type:Spa:String:JSON value:{"name":"alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo", "alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo":}
D 06:47:53.361156 m-default-nodes-ap ../wireplumber/modules/module-default-nodes-api.c:91:on_metadata_changed: <WpImplMetadata:33:0xaaaaf2462220> changed 'default.audio.sink' -> '(null)'
D 06:47:53.361208 wp-core ../wireplumber/lib/wp/core.c:956:wp_core_sync_closure: <WpCore:0xaaaaf2378010> sync, seq 0x40000070, task <GTask:0xffff7400a250>
I 06:47:53.362789 m-default-nodes ../wireplumber/modules/module-default-nodes.c:335:reevaluate_default_node: <WpDefaultNodes:0xaaaaf23f6840> set default node for Audio/Source: alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo
D 06:47:53.362941 pw.metadata ../pipewire/src/pipewire/impl-metadata.c:184:impl_set_property: 0xaaaaf24614b0: id:0 key:default.audio.source type:Spa:String:JSON value:{"name":"alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo", "alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo":}
I 06:47:53.362972 pw.metadata ../pipewire/src/pipewire/impl-metadata.c:205:impl_set_property: 0xaaaaf24614b0: add id:0 key:default.audio.source type:Spa:String:JSON value:{"name":"alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo", "alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo":}
D 06:47:53.363001 wp-metadata ../wireplumber/lib/wp/metadata.c:238:metadata_event_property: <WpImplMetadata:33:0xaaaaf2462220> add id:0 key:default.audio.source type:Spa:String:JSON value:{"name":"alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo", "alsa_output.usb-XENRAN_Audio_HD_USB_Audio-01.analog-stereo":}
D 06:47:53.363065 m-default-nodes-ap ../wireplumber/modules/module-default-nodes-api.c:91:on_metadata_changed: <WpImplMetadata:33:0xaaaaf2462220> changed 'default.audio.source' -> '(null)'
D 06:47:53.363126 wp-core ../wireplumber/lib/wp/core.c:956:wp_core_sync_closure: <WpCore:0xaaaaf2378010> sync, seq 0x40000072, task <GTask:0xffff7400a310>
D 06:47:53.364794 wp-core ../wireplumber/lib/wp/core.c:197:core_done: <WpCore:0xaaaaf2378010> done, seq 0x40000070, task <GTask:0xffff7400a250>
D 06:47:53.366025 wp-core ../wireplumber/lib/wp/core.c:197:core_done: <WpCore:0xaaaaf2378010> done, seq 0x40000072, task <GTask:0xffff7400a310>
D 06:47:53.367793 wp-object ../wireplumber/lib/wp/object.c:537:wp_object_update_features: <WpSiAudioAdapter:0xaaaaf258a0a0> features changed 0x0 -> 0x1
I 06:47:53.368003 script/create-item create-item.lua:76:chunk: <WpSiAudioAdapter:0xaaaaf258a0a0> activated item for node 51
I 06:47:54.344483 wp-state ../wireplumber/lib/wp/state.c:320:wp_state_save: <WpState:0xaaaaf2476700> saving state into /home/player/.local/state/wireplumber/default-routes
Edited by hacc1225