diff options
author | Jon Smirl <jonsmirl@gmail.com> | 2008-07-29 10:22:24 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-07-29 15:32:29 -0400 |
commit | 815ecf8dec95d07e260a16ebe8409f4b7c0fdc0f (patch) | |
tree | 8ba73e2a041c69ca36158074c0e3d51cc0156acf /sound/soc/soc-core.c | |
parent | 0c94161580eee8137b868301434ea392083258b5 (diff) |
ALSA: ASoC: convert use of uint to unsigned int
ASOC: convert use of uint to unsigned int
Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 11a881caba76..1563ceedf61a 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1457,8 +1457,8 @@ int snd_soc_info_volsw(struct snd_kcontrol *kcontrol, | |||
1457 | struct soc_mixer_control *mc = | 1457 | struct soc_mixer_control *mc = |
1458 | (struct soc_mixer_control *)kcontrol->private_value; | 1458 | (struct soc_mixer_control *)kcontrol->private_value; |
1459 | int max = mc->max; | 1459 | int max = mc->max; |
1460 | uint shift = mc->min; | 1460 | unsigned int shift = mc->min; |
1461 | uint rshift = mc->rshift; | 1461 | unsigned int rshift = mc->rshift; |
1462 | 1462 | ||
1463 | if (max == 1) | 1463 | if (max == 1) |
1464 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | 1464 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; |
@@ -1487,12 +1487,12 @@ int snd_soc_get_volsw(struct snd_kcontrol *kcontrol, | |||
1487 | struct soc_mixer_control *mc = | 1487 | struct soc_mixer_control *mc = |
1488 | (struct soc_mixer_control *)kcontrol->private_value; | 1488 | (struct soc_mixer_control *)kcontrol->private_value; |
1489 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 1489 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); |
1490 | uint reg = mc->reg; | 1490 | unsigned int reg = mc->reg; |
1491 | uint shift = mc->shift; | 1491 | unsigned int shift = mc->shift; |
1492 | uint rshift = mc->rshift; | 1492 | unsigned int rshift = mc->rshift; |
1493 | int max = mc->max; | 1493 | int max = mc->max; |
1494 | uint mask = (1 << fls(max)) - 1; | 1494 | unsigned int mask = (1 << fls(max)) - 1; |
1495 | uint invert = mc->invert; | 1495 | unsigned int invert = mc->invert; |
1496 | 1496 | ||
1497 | ucontrol->value.integer.value[0] = | 1497 | ucontrol->value.integer.value[0] = |
1498 | (snd_soc_read(codec, reg) >> shift) & mask; | 1498 | (snd_soc_read(codec, reg) >> shift) & mask; |
@@ -1526,12 +1526,12 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol, | |||
1526 | struct soc_mixer_control *mc = | 1526 | struct soc_mixer_control *mc = |
1527 | (struct soc_mixer_control *)kcontrol->private_value; | 1527 | (struct soc_mixer_control *)kcontrol->private_value; |
1528 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 1528 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); |
1529 | uint reg = mc->reg; | 1529 | unsigned int reg = mc->reg; |
1530 | uint shift = mc->shift; | 1530 | unsigned int shift = mc->shift; |
1531 | uint rshift = mc->rshift; | 1531 | unsigned int rshift = mc->rshift; |
1532 | int max = mc->max; | 1532 | int max = mc->max; |
1533 | uint mask = (1 << fls(max)) - 1; | 1533 | unsigned int mask = (1 << fls(max)) - 1; |
1534 | uint invert = mc->invert; | 1534 | unsigned int invert = mc->invert; |
1535 | unsigned short val, val2, val_mask; | 1535 | unsigned short val, val2, val_mask; |
1536 | 1536 | ||
1537 | val = (ucontrol->value.integer.value[0] & mask); | 1537 | val = (ucontrol->value.integer.value[0] & mask); |
@@ -1594,12 +1594,12 @@ int snd_soc_get_volsw_2r(struct snd_kcontrol *kcontrol, | |||
1594 | struct soc_mixer_control *mc = | 1594 | struct soc_mixer_control *mc = |
1595 | (struct soc_mixer_control *)kcontrol->private_value; | 1595 | (struct soc_mixer_control *)kcontrol->private_value; |
1596 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 1596 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); |
1597 | uint reg = mc->reg; | 1597 | unsigned int reg = mc->reg; |
1598 | uint reg2 = mc->rreg; | 1598 | unsigned int reg2 = mc->rreg; |
1599 | uint shift = mc->shift; | 1599 | unsigned int shift = mc->shift; |
1600 | int max = mc->max; | 1600 | int max = mc->max; |
1601 | uint mask = (1<<fls(max))-1; | 1601 | unsigned int mask = (1<<fls(max))-1; |
1602 | uint invert = mc->invert; | 1602 | unsigned int invert = mc->invert; |
1603 | 1603 | ||
1604 | ucontrol->value.integer.value[0] = | 1604 | ucontrol->value.integer.value[0] = |
1605 | (snd_soc_read(codec, reg) >> shift) & mask; | 1605 | (snd_soc_read(codec, reg) >> shift) & mask; |
@@ -1631,12 +1631,12 @@ int snd_soc_put_volsw_2r(struct snd_kcontrol *kcontrol, | |||
1631 | struct soc_mixer_control *mc = | 1631 | struct soc_mixer_control *mc = |
1632 | (struct soc_mixer_control *)kcontrol->private_value; | 1632 | (struct soc_mixer_control *)kcontrol->private_value; |
1633 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 1633 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); |
1634 | uint reg = mc->reg; | 1634 | unsigned int reg = mc->reg; |
1635 | uint reg2 = mc->rreg; | 1635 | unsigned int reg2 = mc->rreg; |
1636 | uint shift = mc->shift; | 1636 | unsigned int shift = mc->shift; |
1637 | int max = mc->max; | 1637 | int max = mc->max; |
1638 | uint mask = (1 << fls(max)) - 1; | 1638 | unsigned int mask = (1 << fls(max)) - 1; |
1639 | uint invert = mc->invert; | 1639 | unsigned int invert = mc->invert; |
1640 | int err; | 1640 | int err; |
1641 | unsigned short val, val2, val_mask; | 1641 | unsigned short val, val2, val_mask; |
1642 | 1642 | ||
@@ -1701,7 +1701,7 @@ int snd_soc_get_volsw_s8(struct snd_kcontrol *kcontrol, | |||
1701 | struct soc_mixer_control *mc = | 1701 | struct soc_mixer_control *mc = |
1702 | (struct soc_mixer_control *)kcontrol->private_value; | 1702 | (struct soc_mixer_control *)kcontrol->private_value; |
1703 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 1703 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); |
1704 | uint reg = mc->reg; | 1704 | unsigned int reg = mc->reg; |
1705 | int min = mc->min; | 1705 | int min = mc->min; |
1706 | int val = snd_soc_read(codec, reg); | 1706 | int val = snd_soc_read(codec, reg); |
1707 | 1707 | ||
@@ -1728,7 +1728,7 @@ int snd_soc_put_volsw_s8(struct snd_kcontrol *kcontrol, | |||
1728 | struct soc_mixer_control *mc = | 1728 | struct soc_mixer_control *mc = |
1729 | (struct soc_mixer_control *)kcontrol->private_value; | 1729 | (struct soc_mixer_control *)kcontrol->private_value; |
1730 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); | 1730 | struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); |
1731 | uint reg = mc->reg; | 1731 | unsigned int reg = mc->reg; |
1732 | int min = mc->min; | 1732 | int min = mc->min; |
1733 | unsigned short val; | 1733 | unsigned short val; |
1734 | 1734 | ||