---
name: "snd_pcm_rate_mask_intersect"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_pcm_rate_mask_intersect"
---

# snd\_pcm\_rate\_mask\_intersect(9)

computes the intersection between two rate masks

## NAME

snd\_pcm\_rate\_mask\_intersect - computes the intersection between two rate masks

## SYNOPSIS

**unsigned int snd\_pcm\_rate\_mask\_intersect(unsigned int** *rates\_a***, unsigned int** *rates\_b***);**

## ARGUMENTS

*rates\_a*

The first rate mask

*rates\_b*

The second rate mask

## DESCRIPTION

This function computes the rates that are supported by both rate masks passed to the function. It will take care of the special handling of SNDRV\_PCM\_RATE\_CONTINUOUS and SNDRV\_PCM\_RATE\_KNOT.

## RETURN

A rate mask containing the rates that are supported by both rates\_a and rates\_b.

## COPYRIGHT
