Re: [Qemu-devel] [PATCH v4 00/14] Audio patches (was: Audio 5.1 patches)

2019-01-31 Thread no-reply
Patchew URL: 
https://patchew.org/QEMU/cover.1548714862.git.dirty.ice...@gmail.com/



Hi,

This series seems to have some coding style problems. See output below for
more information:

Subject: [Qemu-devel] [PATCH v4 00/14] Audio patches (was: Audio 5.1 patches)
Type: series
Message-id: cover.1548714862.git.dirty.ice...@gmail.com

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
9505d0ef85 audio: -audiodev command line option: cleanup
2f7a6267e8 wavaudio: port to -audiodev config
53f2b38246 spiceaudio: port to -audiodev config
83031a0586 sdlaudio: port to -audiodev config
a4cf2daf95 paaudio: port to -audiodev config
eca548aefa ossaudio: port to -audiodev config
96b7a11f8e noaudio: port to -audiodev config
01d330b3a7 dsoundaudio: port to -audiodev config
3738935850 coreaudio: port to -audiodev config
a2c88d6cd0 alsaaudio: port to -audiodev config
54e5804b4c audio: -audiodev command line option basic implementation
172a851936 audio: -audiodev command line option: documentation
a418745d8a audio: use qapi AudioFormat instead of audfmt_e
820a94e64b qapi: qapi for audio backends

=== OUTPUT BEGIN ===
1/14 Checking commit 820a94e64b20 (qapi: qapi for audio backends)
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#51: 
new file mode 100644

total: 0 errors, 1 warnings, 246 lines checked

Patch 1/14 has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
2/14 Checking commit a418745d8ae2 (audio: use qapi AudioFormat instead of 
audfmt_e)
ERROR: space prohibited between function name and open parenthesis '('
#36: FILE: audio/alsaaudio.c:297:
+static snd_pcm_format_t aud_to_alsafmt (AudioFormat fmt, int endianness)

ERROR: space prohibited between function name and open parenthesis '('
#84: FILE: audio/alsaaudio.c:347:
+static int alsa_to_audfmt (snd_pcm_format_t alsafmt, AudioFormat *fmt,

ERROR: space prohibited between function name and open parenthesis '('
#205: FILE: audio/audio.c:260:
+static const char *audio_audfmt_to_string (AudioFormat fmt)

ERROR: space prohibited between function name and open parenthesis '('
#241: FILE: audio/audio.c:289:
+static AudioFormat audio_string_to_audfmt (const char *s, AudioFormat defval,

ERROR: space prohibited between function name and open parenthesis '('
#282: FILE: audio/audio.c:324:
+static AudioFormat audio_get_conf_fmt (const char *envname,

ERROR: space prohibited between function name and open parenthesis '('
#523: FILE: audio/ossaudio.c:151:
+static int aud_to_ossfmt (AudioFormat fmt, int endianness)

ERROR: space prohibited between function name and open parenthesis '('
#553: FILE: audio/ossaudio.c:185:
+static int oss_to_audfmt (int ossfmt, AudioFormat *fmt, int *endianness)

ERROR: space prohibited between function name and open parenthesis '('
#620: FILE: audio/paaudio.c:388:
+static pa_sample_format_t audfmt_to_pa (AudioFormat afmt, int endianness)

ERROR: space prohibited between function name and open parenthesis '('
#649: FILE: audio/paaudio.c:413:
+static AudioFormat pa_to_audfmt (pa_sample_format_t fmt, int *endianness)

ERROR: space prohibited between function name and open parenthesis '('
#687: FILE: audio/sdlaudio.c:140:
+static int aud_to_sdlfmt (AudioFormat fmt)

ERROR: trailing statements should be on next line
#954: FILE: hw/audio/hda-codec.c:102:
+case AC_FMT_BITS_8:  as->fmt = AUDIO_FORMAT_S8;  break;

ERROR: trailing statements should be on next line
#955: FILE: hw/audio/hda-codec.c:103:
+case AC_FMT_BITS_16: as->fmt = AUDIO_FORMAT_S16; break;

ERROR: trailing statements should be on next line
#956: FILE: hw/audio/hda-codec.c:104:
+case AC_FMT_BITS_32: as->fmt = AUDIO_FORMAT_S32; break;

ERROR: space prohibited after that open square bracket '['
#970: FILE: hw/audio/hda-codec.c:137:
+[ AUDIO_FORMAT_U8  ] = "PCM-U8",

ERROR: space prohibited before that close square bracket ']'
#970: FILE: hw/audio/hda-codec.c:137:
+[ AUDIO_FORMAT_U8  ] = "PCM-U8",

ERROR: space prohibited after that open square bracket '['
#971: FILE: hw/audio/hda-codec.c:138:
+[ AUDIO_FORMAT_S8  ] = "PCM-S8",

ERROR: space prohibited before that close square bracket ']'
#971: FILE: hw/audio/hda-codec.c:138:
+[ AUDIO_FORMAT_S8  ] = "PCM-S8",

ERROR: space prohibited after that open square bracket '['
#972: FILE: hw/audio/hda-codec.c:139:
+[ AUDIO_FORMAT_U16 ] = "PCM-U16",

ERROR: space prohibited before that close square bracket ']'
#972: FILE: hw/audio/hda-codec.c:139:
+[ AUDIO_FORMAT_U16 ] = "PCM-U16",

ERROR: space prohibited after that open square bracket '['
#973: FILE: hw/audio/hda-codec.c:140:
+

[Qemu-devel] [PATCH v4 00/14] Audio patches (was: Audio 5.1 patches)

2019-01-28 Thread Kővágó, Zoltán
Hi,

Here's an updated version of my audio patches. Due to the size of the patch
series, I broke it down to smaller parts, this is the first part.  This series
adds an -audiodev command line parameter instead of the old environment variable
based config.

Changes from v3:

* fixed formatting issues reported by issues by checkpatch.pl, except in patch
  2 "audio: use qapi AudioFormat instead of audfmt_e", since it's a search and
  replace patch

Regards,
Zoltan

Kővágó, Zoltán (14):
  qapi: qapi for audio backends
  audio: use qapi AudioFormat instead of audfmt_e
  audio: -audiodev command line option: documentation
  audio: -audiodev command line option basic implementation
  alsaaudio: port to -audiodev config
  coreaudio: port to -audiodev config
  dsoundaudio: port to -audiodev config
  noaudio: port to -audiodev config
  ossaudio: port to -audiodev config
  paaudio: port to -audiodev config
  sdlaudio: port to -audiodev config
  spiceaudio: port to -audiodev config
  wavaudio: port to -audiodev config
  audio: -audiodev command line option: cleanup

 Makefile.objs |   6 +-
 qapi/audio.json   | 233 +++
 qapi/qapi-schema.json |   1 +
 audio/audio.h |  30 +-
 audio/audio_int.h |  33 +-
 audio/audio_template.h|  13 +-
 audio/dsound_template.h   |   6 +-
 audio/alsaaudio.c | 383 ++---
 audio/audio.c | 845 --
 audio/audio_legacy.c  | 549 +
 audio/audio_win_int.c |  18 +-
 audio/coreaudio.c |  50 +--
 audio/dsoundaudio.c   |  61 +--
 audio/noaudio.c   |   3 +-
 audio/ossaudio.c  | 197 -
 audio/paaudio.c   | 121 +++---
 audio/sdlaudio.c  |  50 +--
 audio/spiceaudio.c|  11 +-
 audio/wavaudio.c  |  75 +---
 audio/wavcapture.c|   2 +-
 hw/arm/omap2.c|   2 +-
 hw/audio/ac97.c   |   2 +-
 hw/audio/adlib.c  |   2 +-
 hw/audio/cs4231a.c|   6 +-
 hw/audio/es1370.c |   4 +-
 hw/audio/gus.c|   2 +-
 hw/audio/hda-codec.c  |  18 +-
 hw/audio/lm4549.c |   6 +-
 hw/audio/milkymist-ac97.c |   2 +-
 hw/audio/pcspk.c  |   2 +-
 hw/audio/sb16.c   |  14 +-
 hw/audio/wm8750.c |   6 +-
 hw/display/xlnx_dp.c  |   2 +-
 hw/input/tsc210x.c|   2 +-
 hw/usb/dev-audio.c|   2 +-
 ui/vnc.c  |  26 +-
 vl.c  |   7 +-
 audio/Makefile.objs   |   2 +-
 qemu-options.hx   | 222 +-
 39 files changed, 1715 insertions(+), 1301 deletions(-)
 create mode 100644 qapi/audio.json
 create mode 100644 audio/audio_legacy.c

-- 
2.20.1