[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 09/15] Revert "audio: fix wavcapture segfault"
From: |
Volker Rümelin |
Subject: |
[PATCH v3 09/15] Revert "audio: fix wavcapture segfault" |
Date: |
Tue, 1 Mar 2022 20:13:05 +0100 |
This reverts commit cbaf25d1f59ee13fc7542a06ea70784f2e000c04.
Since previous commit every audio backend has a pcm_ops function
table. It's no longer necessary to test if the table is available.
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
---
audio/audio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/audio/audio.c b/audio/audio.c
index 55f885f8e9..c420a8bd1c 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -612,7 +612,7 @@ static size_t audio_pcm_sw_read(SWVoiceIn *sw, void *buf,
size_t size)
total += isamp;
}
- if (hw->pcm_ops && !hw->pcm_ops->volume_in) {
+ if (!hw->pcm_ops->volume_in) {
mixeng_volume (sw->buf, ret, &sw->vol);
}
@@ -718,7 +718,7 @@ static size_t audio_pcm_sw_write(SWVoiceOut *sw, void *buf,
size_t size)
if (swlim) {
sw->conv (sw->buf, buf, swlim);
- if (sw->hw->pcm_ops && !sw->hw->pcm_ops->volume_out) {
+ if (!sw->hw->pcm_ops->volume_out) {
mixeng_volume (sw->buf, swlim, &sw->vol);
}
}
--
2.34.1
- Re: [PATCH v3 01/15] audio: replace open-coded buffer arithmetic, (continued)
- [PATCH v3 02/15] audio: move function audio_pcm_hw_clip_out(), Volker Rümelin, 2022/03/01
- [PATCH v3 03/15] audio: add function audio_pcm_hw_conv_in(), Volker Rümelin, 2022/03/01
- [PATCH v3 05/15] paaudio: increase default latency to 46ms, Volker Rümelin, 2022/03/01
- [PATCH v3 07/15] audio: copy playback stream in sequential order, Volker Rümelin, 2022/03/01
- [PATCH v3 06/15] jackaudio: use more jack audio buffers, Volker Rümelin, 2022/03/01
- [PATCH v3 04/15] audio: inline function audio_pcm_sw_get_rpos_in(), Volker Rümelin, 2022/03/01
- [PATCH v3 08/15] audio: add pcm_ops function table for capture backend, Volker Rümelin, 2022/03/01
- [PATCH v3 09/15] Revert "audio: fix wavcapture segfault",
Volker Rümelin <=
- [PATCH v3 14/15] paaudio: fix samples vs. frames mix-up, Volker Rümelin, 2022/03/01
- [PATCH v3 13/15] ossaudio: reduce effective playback buffer size, Volker Rümelin, 2022/03/01
- [PATCH v3 10/15] audio: restore mixing-engine playback buffer size, Volker Rümelin, 2022/03/01
- [PATCH v3 11/15] paaudio: reduce effective playback buffer size, Volker Rümelin, 2022/03/01
- [PATCH v3 12/15] dsoundaudio: reduce effective playback buffer size, Volker Rümelin, 2022/03/01
- [PATCH v3 15/15] sdlaudio: fix samples vs. frames mix-up, Volker Rümelin, 2022/03/01