Home
last modified time | relevance | path

Searched refs:mute (Results 1 – 25 of 136) sorted by relevance

123456

/sound/soc/codecs/
Dwm8524.c28 struct gpio_desc *mute; member
78 gpiod_set_value_cansleep(wm8524->mute, 1); in wm8524_startup()
89 gpiod_set_value_cansleep(wm8524->mute, 0); in wm8524_shutdown()
150 static int wm8524_mute_stream(struct snd_soc_dai *dai, int mute, int stream) in wm8524_mute_stream() argument
154 if (wm8524->mute) in wm8524_mute_stream()
155 gpiod_set_value_cansleep(wm8524->mute, mute); in wm8524_mute_stream()
225 wm8524->mute = devm_gpiod_get(&pdev->dev, "wlf,mute", GPIOD_OUT_LOW); in wm8524_codec_probe()
226 if (IS_ERR(wm8524->mute)) { in wm8524_codec_probe()
227 ret = PTR_ERR(wm8524->mute); in wm8524_codec_probe()
Duda1334.c24 struct gpio_desc *mute; member
110 gpiod_set_value_cansleep(uda1334->mute, 1); in uda1334_startup()
121 gpiod_set_value_cansleep(uda1334->mute, 0); in uda1334_shutdown()
183 static int uda1334_mute_stream(struct snd_soc_dai *dai, int mute, int stream) in uda1334_mute_stream() argument
187 if (uda1334->mute) in uda1334_mute_stream()
188 gpiod_set_value_cansleep(uda1334->mute, mute); in uda1334_mute_stream()
260 uda1334->mute = devm_gpiod_get(&pdev->dev, "nxp,mute", GPIOD_OUT_LOW); in uda1334_codec_probe()
261 if (IS_ERR(uda1334->mute)) { in uda1334_codec_probe()
262 ret = PTR_ERR(uda1334->mute); in uda1334_codec_probe()
Dlm49453.c1221 static int lm49453_hp_mute(struct snd_soc_dai *dai, int mute) in lm49453_hp_mute() argument
1224 (mute ? (BIT(1)|BIT(0)) : 0)); in lm49453_hp_mute()
1228 static int lm49453_lo_mute(struct snd_soc_dai *dai, int mute) in lm49453_lo_mute() argument
1231 (mute ? (BIT(3)|BIT(2)) : 0)); in lm49453_lo_mute()
1235 static int lm49453_ls_mute(struct snd_soc_dai *dai, int mute) in lm49453_ls_mute() argument
1238 (mute ? (BIT(5)|BIT(4)) : 0)); in lm49453_ls_mute()
1242 static int lm49453_ep_mute(struct snd_soc_dai *dai, int mute) in lm49453_ep_mute() argument
1245 (mute ? BIT(4) : 0)); in lm49453_ep_mute()
1249 static int lm49453_ha_mute(struct snd_soc_dai *dai, int mute) in lm49453_ha_mute() argument
1252 (mute ? (BIT(7)|BIT(6)) : 0)); in lm49453_ha_mute()
Dtwl6040.c953 int mute) in twl6040_mute_path() argument
966 if (mute) { in twl6040_mute_path()
977 priv->dl1_unmuted = !mute; in twl6040_mute_path()
983 if (mute) { in twl6040_mute_path()
993 priv->dl2_unmuted = !mute; in twl6040_mute_path()
1000 static int twl6040_digital_mute(struct snd_soc_dai *dai, int mute) in twl6040_digital_mute() argument
1004 twl6040_mute_path(dai->component, TWL6040_DAI_DL1, mute); in twl6040_digital_mute()
1005 twl6040_mute_path(dai->component, TWL6040_DAI_DL2, mute); in twl6040_digital_mute()
1009 twl6040_mute_path(dai->component, dai->id, mute); in twl6040_digital_mute()
Dpcm512x.c48 int mute; member
386 (!!(pcm512x->mute & 0x5) << PCM512x_RQML_SHIFT) in pcm512x_update_mute()
387 | (!!(pcm512x->mute & 0x3) << PCM512x_RQMR_SHIFT)); in pcm512x_update_mute()
397 ucontrol->value.integer.value[0] = !(pcm512x->mute & 0x4); in pcm512x_digital_playback_switch_get()
398 ucontrol->value.integer.value[1] = !(pcm512x->mute & 0x2); in pcm512x_digital_playback_switch_get()
413 if ((pcm512x->mute & 0x4) == (ucontrol->value.integer.value[0] << 2)) { in pcm512x_digital_playback_switch_put()
414 pcm512x->mute ^= 0x4; in pcm512x_digital_playback_switch_put()
417 if ((pcm512x->mute & 0x2) == (ucontrol->value.integer.value[1] << 1)) { in pcm512x_digital_playback_switch_put()
418 pcm512x->mute ^= 0x2; in pcm512x_digital_playback_switch_put()
1397 static int pcm512x_digital_mute(struct snd_soc_dai *dai, int mute) in pcm512x_digital_mute() argument
[all …]
Dcq93vc.c33 static int cq93vc_mute(struct snd_soc_dai *dai, int mute) in cq93vc_mute() argument
38 if (mute) in cq93vc_mute()
Disabelle.c863 static int isabelle_hs_mute(struct snd_soc_dai *dai, int mute) in isabelle_hs_mute() argument
866 BIT(4), (mute ? BIT(4) : 0)); in isabelle_hs_mute()
871 static int isabelle_hf_mute(struct snd_soc_dai *dai, int mute) in isabelle_hf_mute() argument
874 BIT(4), (mute ? BIT(4) : 0)); in isabelle_hf_mute()
879 static int isabelle_line_mute(struct snd_soc_dai *dai, int mute) in isabelle_line_mute() argument
882 BIT(4), (mute ? BIT(4) : 0)); in isabelle_line_mute()
Dcs4341.c119 static int cs4341_digital_mute(struct snd_soc_dai *dai, int mute) in cs4341_digital_mute() argument
126 mute ? CS4341_VOLX_MUTE : 0); in cs4341_digital_mute()
132 mute ? CS4341_VOLX_MUTE : 0); in cs4341_digital_mute()
Dpcm179x.c79 static int pcm179x_digital_mute(struct snd_soc_dai *dai, int mute) in pcm179x_digital_mute() argument
86 PCM179X_MUTE_MASK, !!mute); in pcm179x_digital_mute()
Drk3328_codec.c109 static void rk3328_analog_output(struct rk3328_codec_priv *rk3328, int mute) in rk3328_analog_output() argument
113 if (mute) in rk3328_analog_output()
119 static int rk3328_digital_mute(struct snd_soc_dai *dai, int mute) in rk3328_digital_mute() argument
125 if (mute) in rk3328_digital_mute()
Dtlv320aic26.c137 static int aic26_mute(struct snd_soc_dai *dai, int mute) in aic26_mute() argument
144 dai, mute); in aic26_mute()
146 if (mute) in aic26_mute()
Dpcm1789.c63 static int pcm1789_digital_mute(struct snd_soc_dai *codec_dai, int mute) in pcm1789_digital_mute() argument
70 mute ? 0 : PCM1789_MUTE_MASK); in pcm1789_digital_mute()
Dtfa9879.c96 static int tfa9879_digital_mute(struct snd_soc_dai *dai, int mute) in tfa9879_digital_mute() argument
102 !!mute << TFA9879_S_MUTE_SHIFT); in tfa9879_digital_mute()
/sound/firewire/oxfw/
Doxfw-spkr.c11 bool mute; member
151 value->value.integer.value[0] = !spkr->mute; in spkr_mute_get()
161 bool mute; in spkr_mute_put() local
164 mute = !value->value.integer.value[0]; in spkr_mute_put()
166 if (mute == spkr->mute) in spkr_mute_put()
169 err = avc_audio_feature_mute(oxfw->unit, spkr->mute_fb_id, &mute, in spkr_mute_put()
173 spkr->mute = mute; in spkr_mute_put()
298 err = avc_audio_feature_mute(oxfw->unit, spkr->mute_fb_id, &spkr->mute, in snd_oxfw_add_spkr()
/sound/soc/spear/
Dspdif_out.c31 u32 mute; member
167 if (!host->saved_params.mute) in spdif_out_trigger()
191 static int spdif_digital_mute(struct snd_soc_dai *dai, int mute) in spdif_digital_mute() argument
196 host->saved_params.mute = mute; in spdif_digital_mute()
200 if (mute) in spdif_digital_mute()
219 ucontrol->value.integer.value[0] = host->saved_params.mute; in spdif_mute_get()
229 if (host->saved_params.mute == ucontrol->value.integer.value[0]) in spdif_mute_put()
/sound/i2c/other/
Dpt2258.c45 pt->mute = 1; in snd_pt2258_reset()
138 ucontrol->value.integer.value[0] = !pt->mute; in pt2258_switch_get()
150 if (pt->mute == val) in pt2258_switch_put()
153 pt->mute = val; in pt2258_switch_put()
/sound/pci/oxygen/
Dxonar_cs43xx.c235 u8 mute; in update_cs4362a_volumes() local
237 mute = chip->dac_mute ? CS4362A_MUTE : 0; in update_cs4362a_volumes()
240 (127 - chip->dac_volume[2 + i]) | mute); in update_cs4362a_volumes()
340 unsigned int reg, unsigned int mute) in xonar_d1_line_mic_ac97_switch() argument
345 mute ? GPIO_D1_INPUT_ROUTE : 0, in xonar_d1_line_mic_ac97_switch()
/sound/soc/sh/rcar/
Ddvc.c39 struct rsnd_kctrl_cfg_m mute; member
152 for (i = 0; i < rsnd_kctrl_size(dvc->mute); i++) in rsnd_dvc_volume_update()
153 zcmcr |= (!!rsnd_kctrl_valm(dvc->mute, i)) << i; in rsnd_dvc_volume_update()
238 &dvc->mute, channels, in rsnd_dvc_pcm_new()
/sound/isa/wss/
Dwss_lib.c551 static void snd_wss_calibrate_mute(struct snd_wss *chip, int mute) in snd_wss_calibrate_mute() argument
555 mute = mute ? 0x80 : 0; in snd_wss_calibrate_mute()
557 if (chip->calibrate_mute == mute) { in snd_wss_calibrate_mute()
561 if (!mute) { in snd_wss_calibrate_mute()
578 mute | chip->image[CS4231_AUX1_LEFT_INPUT]); in snd_wss_calibrate_mute()
580 mute | chip->image[CS4231_AUX1_RIGHT_INPUT]); in snd_wss_calibrate_mute()
582 mute | chip->image[CS4231_AUX2_LEFT_INPUT]); in snd_wss_calibrate_mute()
584 mute | chip->image[CS4231_AUX2_RIGHT_INPUT]); in snd_wss_calibrate_mute()
586 mute | chip->image[CS4231_LEFT_OUTPUT]); in snd_wss_calibrate_mute()
588 mute | chip->image[CS4231_RIGHT_OUTPUT]); in snd_wss_calibrate_mute()
[all …]
/sound/soc/intel/atom/
Dsst-atom-controls.c393 u16 task_id, u16 loc_id, u16 module_id, int mute) in sst_send_gain_cmd() argument
403 if (mute || gv->mute) { in sst_send_gain_cmd()
438 ucontrol->value.integer.value[0] = gv->mute ? 0 : 1; in sst_gain_get()
474 gv->mute = !ucontrol->value.integer.value[0]; in sst_gain_put()
475 dev_dbg(cmpnt->dev, "%s: Mute %d\n", mc->pname, gv->mute); in sst_gain_put()
500 struct sst_data *drv, int mute);
582 struct sst_data *drv, int mute) in sst_set_pipe_gain() argument
597 mc->pipe_id | mc->instance_id, mc->module_id, mute); in sst_set_pipe_gain()
1304 int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute) in sst_send_pipe_gains() argument
1327 sst_set_pipe_gain(ids, drv, mute); in sst_send_pipe_gains()
[all …]
/sound/soc/ti/
Dams-delta.c423 static int ams_delta_digital_mute(struct snd_soc_dai *dai, int mute) in ams_delta_digital_mute() argument
427 if (ams_delta_muted == mute) in ams_delta_digital_mute()
431 ams_delta_muted = mute; in ams_delta_digital_mute()
436 gpiod_set_value(gpiod_modem_codec, !!mute); in ams_delta_digital_mute()
/sound/sparc/
Dcs4231.c562 static void snd_cs4231_calibrate_mute(struct snd_cs4231 *chip, int mute) in snd_cs4231_calibrate_mute() argument
566 mute = mute ? 1 : 0; in snd_cs4231_calibrate_mute()
568 if (chip->calibrate_mute == mute) { in snd_cs4231_calibrate_mute()
572 if (!mute) { in snd_cs4231_calibrate_mute()
581 mute ? 0x80 : chip->image[CS4231_AUX1_LEFT_INPUT]); in snd_cs4231_calibrate_mute()
583 mute ? 0x80 : chip->image[CS4231_AUX1_RIGHT_INPUT]); in snd_cs4231_calibrate_mute()
585 mute ? 0x80 : chip->image[CS4231_AUX2_LEFT_INPUT]); in snd_cs4231_calibrate_mute()
587 mute ? 0x80 : chip->image[CS4231_AUX2_RIGHT_INPUT]); in snd_cs4231_calibrate_mute()
589 mute ? 0x80 : chip->image[CS4231_LEFT_OUTPUT]); in snd_cs4231_calibrate_mute()
591 mute ? 0x80 : chip->image[CS4231_RIGHT_OUTPUT]); in snd_cs4231_calibrate_mute()
[all …]
/sound/pci/ice1712/
Dmaya44.c114 unsigned short mute; /* mute bit */ member
125 .mute = 0x00,
133 .mute = 0x00,
141 .mute = 0xa5,
204 data = vol->mute; in maya_vol_put()
/sound/soc/
Dsoc-dai.c243 int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute, in snd_soc_dai_digital_mute() argument
247 return dai->driver->ops->mute_stream(dai, mute, direction); in snd_soc_dai_digital_mute()
250 return dai->driver->ops->digital_mute(dai, mute); in snd_soc_dai_digital_mute()
/sound/drivers/vx/
Dvx_mixer.c115 void vx_toggle_dac_mute(struct vx_core *chip, int mute) in vx_toggle_dac_mute() argument
120 chip->ops->akm_write(chip, XX_CODEC_DAC_CONTROL_REGISTER, mute); /* XXX */ in vx_toggle_dac_mute()
123 mute ? DAC_ATTEN_MAX : DAC_ATTEN_MIN); in vx_toggle_dac_mute()
198 unsigned int mute; member
228 if (info->mute) in vx_adjust_audio_level()
260 info.mute = (rmh.Stat[i] & AUDIO_IO_HAS_MUTE_LEVEL) ? 1 : 0;
294 info.mute = !active; in vx_set_audio_switch()

123456