• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Pipewireパッケージ(ちょっと変更)


コミットメタ情報

リビジョン92330b9de341c3b7bc537d2f42687b65c7ceb527 (tree)
日時2023-11-16 00:35:17
作者Wim Taymans <wtaymans@redh...>
コミッターWim Taymans

ログメッセージ

alsa: the default poll_descriptors is good now

Remove our custom poll_descriptors function because the default is
enough now that we update from revents.

変更サマリ

差分

--- a/pipewire-alsa/alsa-plugins/pcm_pipewire.c
+++ b/pipewire-alsa/alsa-plugins/pcm_pipewire.c
@@ -159,15 +159,6 @@ static int snd_pcm_pipewire_close(snd_pcm_ioplug_t *io)
159159 return 0;
160160 }
161161
162-static int snd_pcm_pipewire_poll_descriptors(snd_pcm_ioplug_t *io, struct pollfd *pfds, unsigned int space)
163-{
164- snd_pcm_pipewire_t *pw = io->private_data;
165- update_active(io);
166- pfds->fd = pw->fd;
167- pfds->events = POLLIN | POLLERR | POLLNVAL;
168- return 1;
169-}
170-
171162 static int snd_pcm_pipewire_poll_revents(snd_pcm_ioplug_t *io,
172163 struct pollfd *pfds, unsigned int nfds,
173164 unsigned short *revents)
@@ -179,10 +170,8 @@ static int snd_pcm_pipewire_poll_revents(snd_pcm_ioplug_t *io,
179170 if (pw->error < 0)
180171 return pw->error;
181172
182- update_active(io);
183-
184173 *revents = pfds[0].revents & ~(POLLIN | POLLOUT);
185- if (pfds[0].revents & POLLIN && pw->active)
174+ if (pfds[0].revents & POLLIN && update_active(io))
186175 *revents |= (io->stream == SND_PCM_STREAM_PLAYBACK) ? POLLOUT : POLLIN;
187176
188177 pw_log_trace_fp("poll %d", *revents);
@@ -910,7 +899,6 @@ static snd_pcm_ioplug_callback_t pipewire_pcm_callback = {
910899 .delay = snd_pcm_pipewire_delay,
911900 .drain = snd_pcm_pipewire_drain,
912901 .prepare = snd_pcm_pipewire_prepare,
913- .poll_descriptors = snd_pcm_pipewire_poll_descriptors,
914902 .poll_revents = snd_pcm_pipewire_poll_revents,
915903 .hw_params = snd_pcm_pipewire_hw_params,
916904 .sw_params = snd_pcm_pipewire_sw_params,