[PATCH 0/8] ctl: elem-value: rewrite getter methods

GitHub pull_request - opened github at alsa-project.org
Wed Jun 29 04:54:39 CEST 2022


alsa-project/alsa-gobject pull request #82 was opened from takaswie:

In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.

This patchset rewrites getter methods of ALSACtl.ElemValue to retrieve pointer
to arrays in internal storage with annotation for fixed-sized array.

```
Takashi Sakamoto (8):
  ctl: elem-value: fix casting for byte data
  ctl: elem-value: retrieve fixed-sized array by getter method for boolean values
  ctl: elem-value: retrieve fixed-sized array by getter method for integer values
  ctl: elem-value: retrieve fixed-sized array by getter method for enumerated values
  ctl: elem-value: retrieve fixed-sized array by getter method for byte values
  ctl: elem-value: retrieve fixed-sized array by getter method for IEC 60958 values
  ctl: elem-value: retrieve fixed-sized array by getter method for integer 64 values
  update README about change of ALSACtl.ElemValue

 README.rst           |  2 +-
 src/ctl/elem-value.c | 55 ++++++++++++--------------------------------
 src/ctl/elem-value.h | 21 ++++++-----------
 3 files changed, 23 insertions(+), 55 deletions(-)
```

Request URL   : https://github.com/alsa-project/alsa-gobject/pull/82
Patch URL     : https://github.com/alsa-project/alsa-gobject/pull/82.patch
Repository URL: https://github.com/alsa-project/alsa-gobject


More information about the Alsa-devel mailing list