6da0c634f8
Add functions snd_usb_enable_audio_stream and find_snd_usb_substream
to resolve ABI diff.
Test: build
Bug: 151372815
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Change-Id: I658d525233be3eb657a3b36c81a3920e65e96a40
(cherry picked from commit f055b3843f
)
[hridya: only include ABI diff, add EXPORT_SYMBOL_GPL,
add some pointer checks]
Signed-off-by: Hridya Valsaraju <hridya@google.com>
18 lines
681 B
C
18 lines
681 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __USBAUDIO_PCM_H
|
|
#define __USBAUDIO_PCM_H
|
|
|
|
snd_pcm_uframes_t snd_usb_pcm_delay(struct snd_usb_substream *subs,
|
|
unsigned int rate);
|
|
|
|
void snd_usb_set_pcm_ops(struct snd_pcm *pcm, int stream);
|
|
int snd_usb_pcm_suspend(struct snd_usb_stream *as);
|
|
int snd_usb_pcm_resume(struct snd_usb_stream *as);
|
|
|
|
int snd_usb_init_pitch(struct snd_usb_audio *chip, int iface,
|
|
struct usb_host_interface *alts,
|
|
struct audioformat *fmt);
|
|
void snd_usb_preallocate_buffer(struct snd_usb_substream *subs);
|
|
int snd_usb_enable_audio_stream(struct snd_usb_substream *subs,
|
|
int datainterval, bool enable);
|
|
#endif /* __USBAUDIO_PCM_H */
|