All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: "Gerd Hoffmann" <kraxel@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"BALATON Zoltan" <balaton@eik.bme.hu>,
	qemu-devel@nongnu.org
Cc: devel@daynix.com,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Akihiko Odaki" <odaki@rsg.ci.i.u-tokyo.ac.jp>
Subject: Re: [PATCH v8 3/6] coreaudio: Improve naming
Date: Wed, 04 Mar 2026 11:52:51 +0100	[thread overview]
Message-ID: <6136780.MhkbZ0Pkbq@weasel> (raw)
In-Reply-To: <7c389f35-2da9-4e40-a695-731a1484cb04@rsg.ci.i.u-tokyo.ac.jp>

On Wednesday, 4 March 2026 11:42:41 CET Akihiko Odaki wrote:
> On 2026/03/04 18:25, Christian Schoenebeck wrote:
> > On Wednesday, 4 March 2026 07:16:56 CET Akihiko Odaki wrote:
> >> coreaudio had names that are not conforming to QEMU codding style.
> > 
> > coding
> > 
> >> coreaudioVoiceOut also had some members that are prefixed with redundant
> >> words like "output" or "audio".
> >> Global names included "out" to tell they are specific to output devices,
> >> but this rule was not completely enforced.
> >> The frame size had three different names "frameSize", "bufferFrameSize",
> >> and "frameCount".
> >> 
> >> Replace identifiers to fix these problems.
> >> 
> >> Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
> >> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
[...]
> >> @@ -349,16 +351,16 @@ static OSStatus audioDeviceIOProc(
> >> 
> >>           out += write_len;
> >>       
> >>       }
> >> 
> >> -    coreaudio_buf_unlock(core, "audioDeviceIOProc");
> >> +    coreaudio_voice_out_buf_unlock(core, "out_device_ioproc");
> > 
> > Behaviour change. Not pure refactoring. Should be split into a separate
> > patch.
> Two things are renamed here.
> - coreaudio_buf_unlock() is renamed to coreaudio_voice_out_buf_unlock().
> - "audioDeviceIOProc" is the name of this function. This function is
>    renamed to "out_device_ioproc".

Ah, these strings just end up being used in a log message. My bad, fine then!

/Christian




  reply	other threads:[~2026-03-04 10:53 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-04  6:16 [PATCH v8 0/6] coreaudio fixes Akihiko Odaki
2026-03-04  6:16 ` [PATCH v8 1/6] coreaudio: Remove unnecessary explicit casts Akihiko Odaki
2026-03-04  8:07   ` Marc-André Lureau
2026-03-04  6:16 ` [PATCH v8 2/6] coreaudio: Remove extra whitespaces Akihiko Odaki
2026-03-04  8:06   ` Marc-André Lureau
2026-03-04  6:16 ` [PATCH v8 3/6] coreaudio: Improve naming Akihiko Odaki
2026-03-04  8:07   ` Marc-André Lureau
2026-03-04  9:25   ` Christian Schoenebeck
2026-03-04 10:42     ` Akihiko Odaki
2026-03-04 10:52       ` Christian Schoenebeck [this message]
2026-03-04 12:00     ` BALATON Zoltan
2026-03-04  6:16 ` [PATCH v8 4/6] coreaudio: Commit the result of init in the end Akihiko Odaki
2026-03-04 11:56   ` Christian Schoenebeck
2026-03-07  4:10     ` Akihiko Odaki
2026-03-04  6:16 ` [PATCH v8 5/6] audio: Add functions to initialize buffers Akihiko Odaki
2026-03-04  8:11   ` Marc-André Lureau
2026-03-04  8:36   ` Christian Schoenebeck
2026-03-04 10:47     ` Akihiko Odaki
2026-03-04 11:17       ` Christian Schoenebeck
2026-03-07  4:17         ` Akihiko Odaki
2026-03-04  6:16 ` [PATCH v8 6/6] coreaudio: Initialize the buffer for device change Akihiko Odaki
2026-03-04  8:11   ` Marc-André Lureau
2026-03-04 11:39   ` Christian Schoenebeck
2026-03-07  5:29     ` Akihiko Odaki
2026-03-04  8:42 ` [PATCH v8 0/6] coreaudio fixes Christian Schoenebeck

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=6136780.MhkbZ0Pkbq@weasel \
    --to=qemu_oss@crudebyte.com \
    --cc=balaton@eik.bme.hu \
    --cc=devel@daynix.com \
    --cc=kraxel@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=odaki@rsg.ci.i.u-tokyo.ac.jp \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.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.