sound: usb: usb_audio_qmi_svc: Rename snd_usb_pcm_has_fixed_rate
Avoid running into duplicate symbol issues when compiling driver statically. This API would be exposed by both the USB SND PCM and the USB SND QMI drivers. Change-Id: I832cd1b93f3a55f8471a153b74635e218d0066a9 Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
This commit is contained in:
parent
6acb224d9a
commit
22e68ea3ad
@ -1314,7 +1314,7 @@ static int _snd_pcm_hw_param_set(struct snd_pcm_hw_params *params,
|
||||
return changed;
|
||||
}
|
||||
|
||||
bool snd_usb_pcm_has_fixed_rate(struct snd_usb_substream *subs)
|
||||
bool _snd_usb_pcm_has_fixed_rate(struct snd_usb_substream *subs)
|
||||
{
|
||||
const struct audioformat *fp;
|
||||
struct snd_usb_audio *chip;
|
||||
@ -1393,7 +1393,7 @@ static int enable_audio_stream(struct snd_usb_substream *subs,
|
||||
if (subs->data_endpoint)
|
||||
close_endpoints(chip, subs);
|
||||
|
||||
fixed_rate = snd_usb_pcm_has_fixed_rate(subs);
|
||||
fixed_rate = _snd_usb_pcm_has_fixed_rate(subs);
|
||||
subs->data_endpoint = snd_usb_endpoint_open(chip, fmt,
|
||||
¶ms, false, fixed_rate);
|
||||
if (!subs->data_endpoint) {
|
||||
|
Loading…
Reference in New Issue
Block a user