~ubuntu-branches/ubuntu/precise/alsa-driver/precise

« back to all changes in this revision

Viewing changes to alsa-kernel/soc/s3c24xx/neo1973_wm8753.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-11-04 16:28:58 UTC
  • mfrom: (1.1.12 upstream) (3.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091104162858-7ky0tu33d7mn6oys
Tags: 1.0.21+dfsg-3ubuntu1
* Merge from debian unstable, remaining changes:
  - Script paths (/usr/sbin -> /sbin, /usr/bin -> /bin);
  - debian/rules:
    + Don't install snddevices and program-wrapper
    + install alsa-base apport hook
    + Package separate USB card list file
  - Vcs and maintainer fields mangling
  - Rename blacklist files in /etc/modprobe.d to be consistant with the rest
    of the distro
  - debian/alsa-base.init:
    + create /var/run/alsa if it doesn't exist
    + Run alsactl store before force unloading modules
    + Run alsactl restore after reloading unloaded modules
  - debian/linux-sound-base.postrm: Remove /etc/modprobe.d/blacklist* files
    on package removal
  - Add missing $CMDLINE_OPTS to all install rules.
  - Replace -Q with --quiet.
  - Add --use-blacklist to all rules so the blacklist still takes effect.
  - debian/alsa-base.postinst: Do not run snddevices
  - retain patches:
    + add_suspend_quirk_hp_nc6220_nw8240.patch,
    + refix_lp_68659_by_disabling_dxs_for_0x1458a002.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
static int lm4857_get_reg(struct snd_kcontrol *kcontrol,
346
346
        struct snd_ctl_elem_value *ucontrol)
347
347
{
348
 
        int reg = kcontrol->private_value & 0xFF;
349
 
        int shift = (kcontrol->private_value >> 8) & 0x0F;
350
 
        int mask = (kcontrol->private_value >> 16) & 0xFF;
 
348
        struct soc_mixer_control *mc =
 
349
                (struct soc_mixer_control *)kcontrol->private_value;
 
350
        int reg = mc->reg;
 
351
        int shift = mc->shift;
 
352
        int mask = mc->max;
351
353
 
352
354
        pr_debug("Entered %s\n", __func__);
353
355
 
358
360
static int lm4857_set_reg(struct snd_kcontrol *kcontrol,
359
361
        struct snd_ctl_elem_value *ucontrol)
360
362
{
361
 
        int reg = kcontrol->private_value & 0xFF;
362
 
        int shift = (kcontrol->private_value >> 8) & 0x0F;
363
 
        int mask = (kcontrol->private_value >> 16) & 0xFF;
 
363
        struct soc_mixer_control *mc =
 
364
                (struct soc_mixer_control *)kcontrol->private_value;
 
365
        int reg = mc->reg;
 
366
        int shift = mc->shift;
 
367
        int mask = mc->max;
364
368
 
365
369
        if (((lm4857_regs[reg] >> shift) & mask) ==
366
370
                ucontrol->value.integer.value[0])