| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * cs4349.c -- CS4349 ALSA Soc Audio driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2015 Cirrus Logic, Inc. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Authors: Tim Howe <Tim.Howe@cirrus.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 134 | 131 | return 0; |
|---|
| 135 | 132 | } |
|---|
| 136 | 133 | |
|---|
| 137 | | -static int cs4349_digital_mute(struct snd_soc_dai *dai, int mute) |
|---|
| 134 | +static int cs4349_mute(struct snd_soc_dai *dai, int mute, int direction) |
|---|
| 138 | 135 | { |
|---|
| 139 | 136 | struct snd_soc_component *component = dai->component; |
|---|
| 140 | 137 | int reg; |
|---|
| .. | .. |
|---|
| 239 | 236 | static const struct snd_soc_dai_ops cs4349_dai_ops = { |
|---|
| 240 | 237 | .hw_params = cs4349_pcm_hw_params, |
|---|
| 241 | 238 | .set_fmt = cs4349_set_dai_fmt, |
|---|
| 242 | | - .digital_mute = cs4349_digital_mute, |
|---|
| 239 | + .mute_stream = cs4349_mute, |
|---|
| 240 | + .no_capture_mute = 1, |
|---|
| 243 | 241 | }; |
|---|
| 244 | 242 | |
|---|
| 245 | 243 | static struct snd_soc_dai_driver cs4349_dai = { |
|---|