audio: add function audio_pcm_hw_conv_in()
commit251f15496ec5f274f100cd155eb60b9add96196e
authorVolker Rümelin <vr_qemu@t-online.de>
Tue, 1 Mar 2022 19:12:59 +0000 (1 20:12 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Mar 2022 10:05:13 +0000 (4 11:05 +0100)
tree56820f6e69fc2e640eae34ceaf3a93da6c627fcf
parent8e56a172a15708c6b7382fbf3441bed26bc0ffef
audio: add function audio_pcm_hw_conv_in()

Add a function audio_pcm_hw_conv_in() similar to the existing
counterpart function audio_pcm_hw_clip_out(). This function reduces
the number of calls to the pcm_ops functions get_buffer_in() and
put_buffer_in(). That's one less call to get_buffer_in() and
put_buffer_in() every time the conv_buffer wraps around.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20220301191311.26695-3-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c