v4 patch series fixes
This commit is contained in:
parent
80fda86179
commit
beaa28b590
|
|
@ -4,7 +4,7 @@
|
||||||
#include "us144mkii.h"
|
#include "us144mkii.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fpoInitPattern() - Generates a packet distribution pattern.
|
* fpo_init_pattern() - Generates a packet distribution pattern.
|
||||||
* @size: The number of elements in the pattern array (e.g., 8).
|
* @size: The number of elements in the pattern array (e.g., 8).
|
||||||
* @pattern_array: Pointer to the array to be populated.
|
* @pattern_array: Pointer to the array to be populated.
|
||||||
* @initial_value: The base value to initialize each element with.
|
* @initial_value: The base value to initialize each element with.
|
||||||
|
|
@ -115,7 +115,6 @@ void process_capture_routing_us144mkii(struct tascam_card *tascam,
|
||||||
int us144mkii_configure_device_for_rate(struct tascam_card *tascam, int rate)
|
int us144mkii_configure_device_for_rate(struct tascam_card *tascam, int rate)
|
||||||
{
|
{
|
||||||
struct usb_device *dev = tascam->dev;
|
struct usb_device *dev = tascam->dev;
|
||||||
|
|
||||||
u8 *rate_payload_buf __free(kfree) = NULL;
|
u8 *rate_payload_buf __free(kfree) = NULL;
|
||||||
u16 rate_vendor_wValue;
|
u16 rate_vendor_wValue;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
@ -209,7 +208,6 @@ int us144mkii_configure_device_for_rate(struct tascam_card *tascam, int rate)
|
||||||
USB_CTRL_TIMEOUT_MS);
|
USB_CTRL_TIMEOUT_MS);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
|
|
||||||
|
|
@ -182,9 +182,7 @@ void playback_urb_complete(struct urb *urb)
|
||||||
goto out;
|
goto out;
|
||||||
runtime = substream->runtime;
|
runtime = substream->runtime;
|
||||||
|
|
||||||
{
|
scoped_guard(spinlock_irqsave, &tascam->lock) {
|
||||||
guard(spinlock_irqsave)(&tascam->lock);
|
|
||||||
|
|
||||||
for (i = 0; i < urb->number_of_packets; i++) {
|
for (i = 0; i < urb->number_of_packets; i++) {
|
||||||
unsigned int frames_for_packet;
|
unsigned int frames_for_packet;
|
||||||
size_t bytes_for_packet;
|
size_t bytes_for_packet;
|
||||||
|
|
@ -290,12 +288,11 @@ void feedback_urb_complete(struct urb *urb)
|
||||||
capture_ss = tascam->capture_substream;
|
capture_ss = tascam->capture_substream;
|
||||||
capture_rt = capture_ss ? capture_ss->runtime : NULL;
|
capture_rt = capture_ss ? capture_ss->runtime : NULL;
|
||||||
|
|
||||||
|
scoped_guard(spinlock_irqsave, &tascam->lock)
|
||||||
{
|
{
|
||||||
guard(spinlock_irqsave)(&tascam->lock);
|
|
||||||
|
|
||||||
if (tascam->feedback_urb_skip_count > 0) {
|
if (tascam->feedback_urb_skip_count > 0) {
|
||||||
tascam->feedback_urb_skip_count--;
|
tascam->feedback_urb_skip_count--;
|
||||||
goto continue_unlock;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
old_in_idx = tascam->feedback_pattern_in_idx;
|
old_in_idx = tascam->feedback_pattern_in_idx;
|
||||||
|
|
@ -358,7 +355,7 @@ void feedback_urb_complete(struct urb *urb)
|
||||||
schedule_work(
|
schedule_work(
|
||||||
&tascam->stop_pcm_work);
|
&tascam->stop_pcm_work);
|
||||||
tascam->feedback_synced = false;
|
tascam->feedback_synced = false;
|
||||||
goto continue_unlock;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
|
|
@ -429,8 +426,6 @@ void feedback_urb_complete(struct urb *urb)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
continue_unlock:
|
|
||||||
if (playback_period_elapsed)
|
if (playback_period_elapsed)
|
||||||
snd_pcm_period_elapsed(playback_ss);
|
snd_pcm_period_elapsed(playback_ss);
|
||||||
if (capture_period_elapsed)
|
if (capture_period_elapsed)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue