Home
last modified time | relevance | path

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

1234567

/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()
227 wm8524->mute = devm_gpiod_get(&pdev->dev, "wlf,mute", GPIOD_OUT_LOW); in wm8524_codec_probe()
228 if (IS_ERR(wm8524->mute)) { in wm8524_codec_probe()
229 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()
Drk3328_codec.c35 struct gpio_desc *mute; member
110 static int rk3328_mute_stream(struct snd_soc_dai *dai, int mute, int direction) in rk3328_mute_stream() argument
116 if (mute) in rk3328_mute_stream()
199 gpiod_set_value(rk3328->mute, 0); in rk3328_codec_open_playback()
240 gpiod_set_value(rk3328->mute, 1); in rk3328_codec_close_playback()
452 rk3328->mute = gpiod_get_optional(&pdev->dev, "mute", GPIOD_OUT_HIGH); in rk3328_platform_probe()
453 if (IS_ERR(rk3328->mute)) in rk3328_platform_probe()
454 return PTR_ERR(rk3328->mute); in rk3328_platform_probe()
460 if (!rk3328->mute && of_machine_is_compatible("pine64,rock64")) { in rk3328_platform_probe()
Dlm49453.c1219 static int lm49453_hp_mute(struct snd_soc_dai *dai, int mute, int direction) in lm49453_hp_mute() argument
1222 (mute ? (BIT(1)|BIT(0)) : 0)); in lm49453_hp_mute()
1226 static int lm49453_lo_mute(struct snd_soc_dai *dai, int mute, int direction) in lm49453_lo_mute() argument
1229 (mute ? (BIT(3)|BIT(2)) : 0)); in lm49453_lo_mute()
1233 static int lm49453_ls_mute(struct snd_soc_dai *dai, int mute, int direction) in lm49453_ls_mute() argument
1236 (mute ? (BIT(5)|BIT(4)) : 0)); in lm49453_ls_mute()
1240 static int lm49453_ep_mute(struct snd_soc_dai *dai, int mute, int direction) in lm49453_ep_mute() argument
1243 (mute ? BIT(4) : 0)); in lm49453_ep_mute()
1247 static int lm49453_ha_mute(struct snd_soc_dai *dai, int mute, int direction) in lm49453_ha_mute() argument
1250 (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_mute_stream(struct snd_soc_dai *dai, int mute, int direction) in twl6040_mute_stream() argument
1004 twl6040_mute_path(dai->component, TWL6040_DAI_DL1, mute); in twl6040_mute_stream()
1005 twl6040_mute_path(dai->component, TWL6040_DAI_DL2, mute); in twl6040_mute_stream()
1009 twl6040_mute_path(dai->component, dai->id, mute); in twl6040_mute_stream()
Dpcm512x.c48 int mute; member
388 (!!(pcm512x->mute & 0x5) << PCM512x_RQML_SHIFT) in pcm512x_update_mute()
389 | (!!(pcm512x->mute & 0x3) << PCM512x_RQMR_SHIFT)); in pcm512x_update_mute()
399 ucontrol->value.integer.value[0] = !(pcm512x->mute & 0x4); in pcm512x_digital_playback_switch_get()
400 ucontrol->value.integer.value[1] = !(pcm512x->mute & 0x2); in pcm512x_digital_playback_switch_get()
415 if ((pcm512x->mute & 0x4) == (ucontrol->value.integer.value[0] << 2)) { in pcm512x_digital_playback_switch_put()
416 pcm512x->mute ^= 0x4; in pcm512x_digital_playback_switch_put()
419 if ((pcm512x->mute & 0x2) == (ucontrol->value.integer.value[1] << 1)) { in pcm512x_digital_playback_switch_put()
420 pcm512x->mute ^= 0x2; in pcm512x_digital_playback_switch_put()
1433 static int pcm512x_mute(struct snd_soc_dai *dai, int mute, int direction) in pcm512x_mute() argument
[all …]
Dcq93vc.c33 static int cq93vc_mute(struct snd_soc_dai *dai, int mute, int direction) in cq93vc_mute() argument
38 if (mute) in cq93vc_mute()
Disabelle.c863 static int isabelle_hs_mute(struct snd_soc_dai *dai, int mute, int direction) 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, int direction) 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, int direction) in isabelle_line_mute() argument
882 BIT(4), (mute ? BIT(4) : 0)); in isabelle_line_mute()
Dcs4341.c119 static int cs4341_mute(struct snd_soc_dai *dai, int mute, int direction) in cs4341_mute() argument
126 mute ? CS4341_VOLX_MUTE : 0); in cs4341_mute()
132 mute ? CS4341_VOLX_MUTE : 0); in cs4341_mute()
Dpcm179x.c79 static int pcm179x_mute(struct snd_soc_dai *dai, int mute, int direction) in pcm179x_mute() argument
86 PCM179X_MUTE_MASK, !!mute); in pcm179x_mute()
Dtlv320aic26.c137 static int aic26_mute(struct snd_soc_dai *dai, int mute, int direction) in aic26_mute() argument
144 dai, mute); in aic26_mute()
146 if (mute) in aic26_mute()
Dpcm1789.c63 static int pcm1789_mute(struct snd_soc_dai *codec_dai, int mute, int direction) in pcm1789_mute() argument
70 mute ? 0 : PCM1789_MUTE_MASK); in pcm1789_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_mute(struct snd_soc_dai *dai, int mute, int direction) in spdif_mute() argument
196 host->saved_params.mute = mute; in spdif_mute()
200 if (mute) in spdif_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/soc/qcom/
Dlpass-hdmi.c125 ret = regmap_field_write(meta_ctl->mute, LPASS_MUTE_ENABLE); in lpass_hdmi_daiops_hw_params()
200 ret = regmap_field_write(drvdata->meta_ctl->mute, LPASS_MUTE_DISABLE); in lpass_hdmi_daiops_prepare()
221 ret = regmap_field_write(meta_ctl->mute, LPASS_MUTE_DISABLE); in lpass_hdmi_daiops_trigger()
233 ret = regmap_field_write(meta_ctl->mute, LPASS_MUTE_ENABLE); in lpass_hdmi_daiops_trigger()
/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()
242 &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/pci/hda/
Dpatch_cs8409.c479 unsigned int chs, bool mute) in cs42l42_mute() argument
481 if (mute) { in cs42l42_mute()
551 bool mute; in cs42l42_playback_pcm_hook() local
555 mute = false; in cs42l42_playback_pcm_hook()
559 mute = true; in cs42l42_playback_pcm_hook()
568 cs42l42_mute(cs42l42, CS42L42_VOL_DAC, 0x3, mute); in cs42l42_playback_pcm_hook()
580 bool mute; in cs42l42_capture_pcm_hook() local
584 mute = false; in cs42l42_capture_pcm_hook()
588 mute = true; in cs42l42_capture_pcm_hook()
597 cs42l42_mute(cs42l42, CS42L42_VOL_ADC, 0x3, mute); in cs42l42_capture_pcm_hook()
/sound/soc/intel/atom/
Dsst-atom-controls.c408 u16 task_id, u16 loc_id, u16 module_id, int mute) in sst_send_gain_cmd() argument
418 if (mute || gv->mute) { in sst_send_gain_cmd()
453 ucontrol->value.integer.value[0] = gv->mute ? 0 : 1; in sst_gain_get()
489 gv->mute = !ucontrol->value.integer.value[0]; in sst_gain_put()
490 dev_dbg(cmpnt->dev, "%s: Mute %d\n", mc->pname, gv->mute); in sst_gain_put()
515 struct sst_data *drv, int mute);
600 struct sst_data *drv, int mute) in sst_set_pipe_gain() argument
615 mc->pipe_id | mc->instance_id, mc->module_id, mute); in sst_set_pipe_gain()
1327 int sst_send_pipe_gains(struct snd_soc_dai *dai, int stream, int mute) in sst_send_pipe_gains() argument
1350 sst_set_pipe_gain(ids, drv, mute); in sst_send_pipe_gains()
[all …]
/sound/soc/ti/
Dams-delta.c425 static int ams_delta_mute(struct snd_soc_dai *dai, int mute, int direction) in ams_delta_mute() argument
429 if (ams_delta_muted == mute) in ams_delta_mute()
433 ams_delta_muted = mute; in ams_delta_mute()
438 gpiod_set_value(gpiod_modem_codec, !!mute); in ams_delta_mute()
/sound/sparc/
Dcs4231.c561 static void snd_cs4231_calibrate_mute(struct snd_cs4231 *chip, int mute) in snd_cs4231_calibrate_mute() argument
565 mute = mute ? 1 : 0; in snd_cs4231_calibrate_mute()
567 if (chip->calibrate_mute == mute) { in snd_cs4231_calibrate_mute()
571 if (!mute) { in snd_cs4231_calibrate_mute()
580 mute ? 0x80 : chip->image[CS4231_AUX1_LEFT_INPUT]); in snd_cs4231_calibrate_mute()
582 mute ? 0x80 : chip->image[CS4231_AUX1_RIGHT_INPUT]); in snd_cs4231_calibrate_mute()
584 mute ? 0x80 : chip->image[CS4231_AUX2_LEFT_INPUT]); in snd_cs4231_calibrate_mute()
586 mute ? 0x80 : chip->image[CS4231_AUX2_RIGHT_INPUT]); in snd_cs4231_calibrate_mute()
588 mute ? 0x80 : chip->image[CS4231_LEFT_OUTPUT]); in snd_cs4231_calibrate_mute()
590 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/intel/catpt/
Dmessages.c297 int catpt_ipc_mute_loopback(struct catpt_dev *cdev, u8 stream_hw_id, bool mute) in catpt_ipc_mute_loopback() argument
305 request.size = sizeof(mute); in catpt_ipc_mute_loopback()
306 request.data = &mute; in catpt_ipc_mute_loopback()

1234567