All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Hofman <pavel.hofman@ivitera.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org, Jack Pham <jackp@codeaurora.org>
Subject: Re: [PATCH v3] usb: gadget: u_audio.c: Adding Playback Pitch ctl for sync playback
Date: Wed, 13 Oct 2021 10:13:02 +0200	[thread overview]
Message-ID: <714fe0a9-cf2d-d2c4-d85e-b07e4cf6294a@ivitera.com> (raw)
In-Reply-To: <YWU3Ngtbbk7Y+dG1@kroah.com>



Dne 12. 10. 21 v 9:20 Greg Kroah-Hartman napsal(a):
> On Wed, Oct 06, 2021 at 10:12:58AM +0200, Pavel Hofman wrote:
>> EP IN is hard-coded as ASYNC both in f_uac1 and f_uac2 but u_audio sends
>> steady number of audio frames in each USB packet, without any control.
>>
>> This patch adds 'Playback Pitch 1000000' ctl analogous to the existing
>> 'Capture Pitch 1000000' ctl. The calculation of playback req->length in
>> u_audio_iso_complete respects the Playback Pitch ctl value to 1ppm now.
>>
>> Max. value for Playback Pitch is configured by the existing parameter
>> uac2_opts->fb_max, used also for the Capture Pitch.
>>
>> Since the EP IN packet size can be increased by uac2_opts->fb_max now,
>> maxPacketSize for the playback direction is calculated by the same
>> algorithm as for the async capture direction in
>> f_uac2.c:set_ep_max_packet_size.
>>
>> Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
>> ---
>>
>> Notes:
>>      v2 -> v3: only notes added
>>      
>>      For: usb-next
>>      Depends on patch 0560c9c ("usb: gadget: f_uac2: fixed EP-IN
>>      wMaxPacketSize") currently only in branch usb-linus.
> 
> I have dropped this from my usb-testing branch now due to all of the
> issues found by the 0-day bot with it (build failure and warnings.)
> 
> Please fix up and resubmit.
> 

I apologize for the issues, a fixed patch was submitted a while ago 
https://patchwork.kernel.org/project/linux-usb/patch/20211013073934.36476-1-pavel.hofman@ivitera.com/

Thanks a lot,

Pavel.

      reply	other threads:[~2021-10-13  8:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06  8:12 [PATCH v3] usb: gadget: u_audio.c: Adding Playback Pitch ctl for sync playback Pavel Hofman
2021-10-12  7:20 ` Greg Kroah-Hartman
2021-10-13  8:13   ` Pavel Hofman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=714fe0a9-cf2d-d2c4-d85e-b07e4cf6294a@ivitera.com \
    --to=pavel.hofman@ivitera.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jackp@codeaurora.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.