mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
Merge "sound: usb: Ensure UAC3 Power Domain is set to D0 when enabling stream"
This commit is contained in:
commit
bcd2f67f9d
1 changed files with 7 additions and 0 deletions
|
|
@ -640,6 +640,8 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int snd_usb_pcm_change_state(struct snd_usb_substream *subs, int state);
|
||||
|
||||
int snd_usb_enable_audio_stream(struct snd_usb_substream *subs,
|
||||
int datainterval, bool enable)
|
||||
{
|
||||
|
|
@ -661,6 +663,11 @@ int snd_usb_enable_audio_stream(struct snd_usb_substream *subs,
|
|||
}
|
||||
|
||||
snd_usb_autoresume(subs->stream->chip);
|
||||
|
||||
ret = snd_usb_pcm_change_state(subs, UAC3_PD_STATE_D0);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (datainterval != -EINVAL)
|
||||
fmt = find_format_and_si(subs, datainterval);
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue