summaryrefslogtreecommitdiff
path: root/vlan.h
blob: b58d1a26f20e224d0a6a2960f140118ccf643bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef VLAN_H
#define VLAN_H

#include <stdbool.h>
#include <inttypes.h>

static inline uint16_t vlan_tci2prio(uint16_t tci)
{
	return (tci & 0xe000) >> 13;
}

static inline uint16_t vlan_tci2cfi(uint16_t tci)
{
	return (tci & 0x1000) >> 12;
}

static inline uint16_t vlan_tci2vid(uint16_t tci)
{
	return tci & 0x0fff;
}

#endif
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-12-09 00:10:47 +0900
committerTakashi Iwai <tiwai@suse.de>2014-12-10 10:49:17 +0100
commit216e256f7bf974ba402309d0ceb24f3500dc65c4 (patch)
tree170e0a8c901f75e6731b162f20a6d9a67721bea2 /sound/firewire/Kconfig
parentb0ac00095fe1485f60bb8ea7326426d3d02a1aec (diff)
ALSA: oxfw: add support for capturing PCM samples
In previous commit, a support for transmitted packets is added. This commit add a support for capturing PCM samples. When any streams are already started, this driver should not change sampling rate of the device, thus this commit also adds a restriction of sampling rate in this situation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Acked-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/Kconfig')