mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Audio device supporting burst mode exposes alt settings with different service intervals. In order to find the requested format as well as service interval remote entity provides service interval parameter. Data interval (bInterval - 1) is calculated using service interval and used to find the matching alt setting using find_format_and_si(). Change-Id: Ie15c78ab53eb5258085b54bf13459ebef44a44a4 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
17 lines
514 B
C
17 lines
514 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_init_pitch(struct snd_usb_audio *chip, int iface,
|
|
struct usb_host_interface *alts,
|
|
struct audioformat *fmt);
|
|
int snd_usb_enable_audio_stream(struct snd_usb_substream *subs,
|
|
int datainterval, bool enable);
|
|
|
|
#endif /* __USBAUDIO_PCM_H */
|