aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/fm801.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/fm801.c b/sound/pci/fm801.c
index 88a3e9f3224a..f3f2b2c99723 100644
--- a/sound/pci/fm801.c
+++ b/sound/pci/fm801.c
@@ -321,10 +321,8 @@ static unsigned int channels[] = {
321 2, 4, 6 321 2, 4, 6
322}; 322};
323 323
324#define CHANNELS sizeof(channels) / sizeof(channels[0])
325
326static struct snd_pcm_hw_constraint_list hw_constraints_channels = { 324static struct snd_pcm_hw_constraint_list hw_constraints_channels = {
327 .count = CHANNELS, 325 .count = ARRAY_SIZE(channels),
328 .list = channels, 326 .list = channels,
329 .mask = 0, 327 .mask = 0,
330}; 328};