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

« back to all changes in this revision

Viewing changes to alsa-kernel/include/tlv.h

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2011-02-21 18:06:40 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20110221180640-a8p2yxtvgf7xbxub
Tags: 1.0.24+dfsg-0ubuntu1
* New upstream release
* Refreshed patches:
  - distinguish_kernel_makefile_and_source_dirs.patch
  - debian_dfsg_configure.patch
* debian/control: Update Vcs-bzr field to point to new branch location

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define SNDRV_CTL_TLVT_DB_MINMAX 4      /* dB scale with min/max */
39
39
#define SNDRV_CTL_TLVT_DB_MINMAX_MUTE 5 /* dB scale with min/max with mute */
40
40
 
 
41
#define TLV_DB_SCALE_MASK       0xffff
 
42
#define TLV_DB_SCALE_MUTE       0x10000
41
43
#define TLV_DB_SCALE_ITEM(min, step, mute)                      \
42
44
        SNDRV_CTL_TLVT_DB_SCALE, 2 * sizeof(unsigned int),      \
43
 
        (min), ((step) & 0xffff) | ((mute) ? 0x10000 : 0)
 
45
        (min), ((step) & TLV_DB_SCALE_MASK) | ((mute) ? TLV_DB_SCALE_MUTE : 0)
44
46
#define DECLARE_TLV_DB_SCALE(name, min, step, mute) \
45
47
        unsigned int name[] = { TLV_DB_SCALE_ITEM(min, step, mute) }
46
48