Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit a9ddec0

Browse files
committed
Merge pull request #16 from 01org/64_bit_support_port_from_android
Replace 32 bit sizes by size_t Correct size_t/uint32_t miss alignment between header and source.
2 parents 90ee421 + b97d82b commit a9ddec0

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

tinyalsa/TinyAmixerControl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class TinyAmixerControl : public AmixerControl
8585
* @return true if no error
8686
*/
8787
virtual bool readControl(struct mixer_ctl *mixerControl,
88-
uint32_t elementCount,
88+
size_t elementCount,
8989
std::string &error) = 0;
9090

9191
/**
@@ -98,6 +98,6 @@ class TinyAmixerControl : public AmixerControl
9898
* @return true if no error
9999
*/
100100
virtual bool writeControl(struct mixer_ctl *mixerControl,
101-
uint32_t elementCount,
101+
size_t elementCount,
102102
std::string &error) = 0;
103103
};

tinyalsa/TinyAmixerControlArray.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int TinyAmixerControlArray::setArrayMixer(struct mixer_ctl *mixerControl, size_t
8383
}
8484

8585
bool TinyAmixerControlArray::readControl(struct mixer_ctl *mixerControl,
86-
uint32_t elementCount,
86+
size_t elementCount,
8787
std::string &error)
8888
{
8989
int err;
@@ -99,7 +99,7 @@ bool TinyAmixerControlArray::readControl(struct mixer_ctl *mixerControl,
9999
}
100100

101101
bool TinyAmixerControlArray::writeControl(struct mixer_ctl *mixerControl,
102-
uint32_t elementCount,
102+
size_t elementCount,
103103
std::string &error)
104104
{
105105
int err;
@@ -123,7 +123,7 @@ void TinyAmixerControlArray::displayAndCleanString(std::stringstream &stringValu
123123

124124
void TinyAmixerControlArray::logControlValues(bool receive,
125125
const void *array,
126-
uint32_t elementCount) const
126+
size_t elementCount) const
127127
{
128128
const unsigned char *buffer = reinterpret_cast<const unsigned char *>(array);
129129
unsigned int idx;

tinyalsa/TinyAmixerControlArray.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ class TinyAmixerControlArray : public TinyAmixerControl
5151

5252
protected:
5353
virtual bool readControl(struct mixer_ctl *mixerControl,
54-
uint32_t elementCount,
54+
size_t elementCount,
5555
std::string &error);
5656

5757
virtual bool writeControl(struct mixer_ctl *mixerControl,
58-
uint32_t elementCount,
58+
size_t elementCount,
5959
std::string &error);
6060

6161
/**
@@ -105,7 +105,7 @@ class TinyAmixerControlArray : public TinyAmixerControl
105105
* @param[in] receive a boolean indicating if we receive or send the values from/to tinyalsa
106106
* @param[in] elementCount the number of element to log
107107
*/
108-
void logControlValues(bool receive, const void *array, uint32_t elementCount) const;
108+
void logControlValues(bool receive, const void *array, size_t elementCount) const;
109109
/**
110110
* Method for displaying and cleaning stringstream objects
111111
*

tinyalsa/TinyAmixerControlValue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ TinyAmixerControlValue::TinyAmixerControlValue(
4747
}
4848

4949
bool TinyAmixerControlValue::readControl(struct mixer_ctl *mixerControl,
50-
uint32_t elementCount,
50+
size_t elementCount,
5151
std::string &error)
5252
{
5353
uint32_t elementNumber;
@@ -75,7 +75,7 @@ bool TinyAmixerControlValue::readControl(struct mixer_ctl *mixerControl,
7575
}
7676

7777
bool TinyAmixerControlValue::writeControl(struct mixer_ctl *mixerControl,
78-
uint32_t elementCount,
78+
size_t elementCount,
7979
std::string &error)
8080
{
8181
uint32_t elementNumber;

tinyalsa/TinyAmixerControlValue.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ class TinyAmixerControlValue : public TinyAmixerControl
5151

5252
protected:
5353
virtual bool readControl(struct mixer_ctl *mixerControl,
54-
uint32_t elementCount,
54+
size_t elementCount,
5555
std::string &error);
5656

5757
virtual bool writeControl(struct mixer_ctl *mixerControl,
58-
uint32_t elementCount,
58+
size_t elementCount,
5959
std::string &error);
6060
};

0 commit comments

Comments
 (0)