Home
last modified time | relevance | path

Searched refs:rval (Results 1 – 13 of 13) sorted by relevance

/sound/soc/qcom/
Dapq8016_sbc.c53 int i, rval; in apq8016_dai_init() local
93 rval = snd_soc_card_jack_new(card, "Headset Jack", in apq8016_dai_init()
101 if (rval < 0) { in apq8016_dai_init()
103 return rval; in apq8016_dai_init()
119 rval = snd_soc_component_set_sysclk(component, 0, 0, DEFAULT_MCLK_RATE, in apq8016_dai_init()
121 if (rval != 0 && rval != -ENOTSUPP) { in apq8016_dai_init()
122 dev_warn(card->dev, "Failed to set mclk: %d\n", rval); in apq8016_dai_init()
123 return rval; in apq8016_dai_init()
125 rval = snd_soc_component_set_jack(component, &pdata->jack, NULL); in apq8016_dai_init()
126 if (rval != 0 && rval != -ENOTSUPP) { in apq8016_dai_init()
[all …]
Dsdm845.c241 int rval, i; in sdm845_dai_init() local
245 rval = snd_soc_card_jack_new(card, "Headset Jack", in sdm845_dai_init()
252 if (rval < 0) { in sdm845_dai_init()
254 return rval; in sdm845_dai_init()
273 rval = snd_soc_component_set_jack(component, in sdm845_dai_init()
275 if (rval != 0 && rval != -ENOTSUPP) { in sdm845_dai_init()
276 dev_warn(card->dev, "Failed to set jack: %d\n", rval); in sdm845_dai_init()
277 return rval; in sdm845_dai_init()
286 rval = snd_soc_dai_set_channel_map(codec_dai, in sdm845_dai_init()
291 if (rval != 0 && rval != -ENOTSUPP) in sdm845_dai_init()
[all …]
Dsc7280.c53 int rval, i; in sc7280_headset_init() local
56 rval = snd_soc_card_jack_new(card, "Headset Jack", in sc7280_headset_init()
64 if (rval < 0) { in sc7280_headset_init()
66 return rval; in sc7280_headset_init()
86 rval = snd_soc_component_set_jack(component, &pdata->hs_jack, NULL); in sc7280_headset_init()
87 if (rval != 0 && rval != -ENOTSUPP) { in sc7280_headset_init()
88 dev_err(card->dev, "Failed to set jack: %d\n", rval); in sc7280_headset_init()
89 return rval; in sc7280_headset_init()
107 int rval; in sc7280_hdmi_init() local
109 rval = snd_soc_card_jack_new(card, "HDMI Jack", SND_JACK_LINEOUT, in sc7280_hdmi_init()
[all …]
Dcommon.c189 int rval, i; in qcom_snd_wcd_jack_setup() local
192 rval = snd_soc_card_jack_new(card, "Headset Jack", in qcom_snd_wcd_jack_setup()
200 if (rval < 0) { in qcom_snd_wcd_jack_setup()
202 return rval; in qcom_snd_wcd_jack_setup()
218 rval = snd_soc_component_set_jack(codec_dai->component, in qcom_snd_wcd_jack_setup()
220 if (rval != 0 && rval != -ENOTSUPP) { in qcom_snd_wcd_jack_setup()
221 dev_warn(card->dev, "Failed to set jack: %d\n", rval); in qcom_snd_wcd_jack_setup()
222 return rval; in qcom_snd_wcd_jack_setup()
Dsc7180.c52 int rval; in sc7180_headset_init() local
54 rval = snd_soc_card_jack_new( in sc7180_headset_init()
62 if (rval < 0) { in sc7180_headset_init()
64 return rval; in sc7180_headset_init()
87 int rval; in sc7180_hdmi_init() local
89 rval = snd_soc_card_jack_new( in sc7180_hdmi_init()
94 if (rval < 0) { in sc7180_hdmi_init()
96 return rval; in sc7180_hdmi_init()
Dlpass-platform.c105 int rval; in lpass_platform_alloc_rxtx_dmactl_fields() local
118 rval = devm_regmap_field_bulk_alloc(dev, map, &rd_dmactl->intf, in lpass_platform_alloc_rxtx_dmactl_fields()
120 if (rval) in lpass_platform_alloc_rxtx_dmactl_fields()
121 return rval; in lpass_platform_alloc_rxtx_dmactl_fields()
150 int rval; in lpass_platform_alloc_dmactl_fields() local
165 rval = devm_regmap_field_bulk_alloc(dev, map, &rd_dmactl->intf, in lpass_platform_alloc_dmactl_fields()
167 if (rval) in lpass_platform_alloc_dmactl_fields()
168 return rval; in lpass_platform_alloc_dmactl_fields()
Dlpass-cpu.c617 int rval; in lpass_hdmi_init_bitfields() local
646 rval = devm_regmap_field_bulk_alloc(dev, map, &meta_ctl->mute, &v->mute, 7); in lpass_hdmi_init_bitfields()
647 if (rval) in lpass_hdmi_init_bitfields()
648 return rval; in lpass_hdmi_init_bitfields()
655 rval = devm_regmap_field_bulk_alloc(dev, map, &sstream_ctl->sstream_en, &v->sstream_en, 9); in lpass_hdmi_init_bitfields()
656 if (rval) in lpass_hdmi_init_bitfields()
657 return rval; in lpass_hdmi_init_bitfields()
/sound/drivers/
Dmtpav.c207 u8 rval = 0; in snd_mtpav_getreg() local
210 rval = inb(chip->port + SREG); in snd_mtpav_getreg()
211 rval = (rval & 0xf8); in snd_mtpav_getreg()
213 rval = inb(chip->port + CREG); in snd_mtpav_getreg()
214 rval = (rval & 0x1c); in snd_mtpav_getreg()
217 return rval; in snd_mtpav_getreg()
623 int rval; in snd_mtpav_get_RAWMIDI() local
634 rval = snd_rawmidi_new(mcard->card, "MotuMIDI", 0, in snd_mtpav_get_RAWMIDI()
638 if (rval < 0) in snd_mtpav_get_RAWMIDI()
639 return rval; in snd_mtpav_get_RAWMIDI()
/sound/soc/codecs/
Dmsm8916-wcd-analog.c1136 int rval; in pm8916_wcd_analog_parse_dt() local
1164 rval = of_property_read_u32_array(dev->of_node, in pm8916_wcd_analog_parse_dt()
1168 if (rval < 0) { in pm8916_wcd_analog_parse_dt()
1171 rval = of_property_read_u32_array(dev->of_node, in pm8916_wcd_analog_parse_dt()
1175 if (rval < 0) in pm8916_wcd_analog_parse_dt()
/sound/pci/riptide/
Driptide.c923 setmixer(struct cmdif *cif, short num, unsigned short rval, unsigned short lval) in setmixer() argument
928 snd_printdd("sent mixer %d: 0x%x 0x%x\n", num, rval, lval); in setmixer()
930 SEND_SDGV(cif, num, num, rval, lval); in setmixer()
932 if (rptr.retwords[0] == lval && rptr.retwords[1] == rval) in setmixer()
1058 getmixer(struct cmdif *cif, short num, unsigned short *rval, in getmixer() argument
1065 *rval = rptr.retwords[0]; in getmixer()
1067 snd_printdd("got mixer %d: 0x%x 0x%x\n", num, *rval, *lval); in getmixer()
1872 unsigned short rval = 0, lval = 0; in snd_riptide_proc_read() local
1894 getmixer(cif, i, &rval, &lval); in snd_riptide_proc_read()
1895 snd_iprintf(buffer, "\n %d: %d %d", i, rval, lval); in snd_riptide_proc_read()
/sound/soc/
Dsoc-dapm.c3330 unsigned int reg_val, val, rval = 0; in snd_soc_dapm_get_volsw() local
3341 rval = (reg_val >> mc->rshift) & mask; in snd_soc_dapm_get_volsw()
3347 rval = (reg_val >> width) & mask; in snd_soc_dapm_get_volsw()
3358 ucontrol->value.integer.value[1] = max - rval; in snd_soc_dapm_get_volsw()
3360 ucontrol->value.integer.value[1] = rval; in snd_soc_dapm_get_volsw()
3389 unsigned int val, rval = 0; in snd_soc_dapm_put_volsw() local
3401 rval = (ucontrol->value.integer.value[1] & mask); in snd_soc_dapm_put_volsw()
3402 rconnect = !!rval; in snd_soc_dapm_put_volsw()
3404 rval = max - rval; in snd_soc_dapm_put_volsw()
3414 change = dapm_kcontrol_set_value(kcontrol, val | (rval << width)); in snd_soc_dapm_put_volsw()
[all …]
/sound/firewire/
Damdtp-stream.c868 static int compare_ohci_cycle_count(u32 lval, u32 rval) in compare_ohci_cycle_count() argument
870 if (lval == rval) in compare_ohci_cycle_count()
872 else if (lval < rval && rval - lval < OHCI_SECOND_MODULUS * CYCLES_PER_SECOND / 2) in compare_ohci_cycle_count()
/sound/sparc/
Ddbri.c1847 int rval = D_INTR_GETRVAL(x); in dbri_process_one_interrupt() local
1855 channel, code, rval); in dbri_process_one_interrupt()