Lines Matching refs:pfx
4736 const char *pfx, const char *dir,
4740 snprintf(name, sizeof(name), "%s %s %s", pfx, dir, sfx);
4744 #define add_pb_vol_ctrl(spec, type, pfx, val) \
4745 add_control_with_pfx(spec, type, pfx, "Playback", "Volume", val)
4746 #define add_pb_sw_ctrl(spec, type, pfx, val) \
4747 add_control_with_pfx(spec, type, pfx, "Playback", "Switch", val)
4839 const char *pfx;
4842 pfx = "Speaker";
4844 pfx = chname[i];
4845 err = add_pb_vol_ctrl(spec, ALC_CTL_WIDGET_VOL, pfx,
4850 err = add_pb_sw_ctrl(spec, ALC_CTL_BIND_MUTE, pfx,
4862 const char *pfx)
4879 err = add_pb_vol_ctrl(spec, ALC_CTL_WIDGET_VOL, pfx,
4883 err = add_pb_sw_ctrl(spec, ALC_CTL_BIND_MUTE, pfx,
4890 err = add_pb_sw_ctrl(spec, ALC_CTL_WIDGET_MUTE, pfx,
6500 const char *pfx, int *vol_bits)
6523 err = add_pb_vol_ctrl(spec, ALC_CTL_WIDGET_VOL, pfx, vol_val);
6528 err = add_pb_sw_ctrl(spec, ALC_CTL_WIDGET_MUTE, pfx, sw_val);
6548 const char *pfx;
6550 pfx = "Master";
6552 pfx = "Speaker";
6554 pfx = "Front";
6555 err = alc260_add_playback_controls(spec, nid, pfx, &vols);
11754 const char *pfx, int *vbits)
11769 return add_pb_vol_ctrl(spec, ALC_CTL_WIDGET_VOL, pfx, val);
11773 const char *pfx)
11783 return add_pb_sw_ctrl(spec, ALC_CTL_WIDGET_MUTE, pfx, val);
11790 const char *pfx;
11799 pfx = "Master";
11801 pfx = "Speaker";
11803 pfx = "Front";
11804 err = alc262_add_out_sw_ctl(spec, cfg->line_out_pins[0], pfx);
11818 pfx = "Master"; /* only one mixer is used */
11820 pfx = "Speaker";
11822 pfx = "Front";
11824 err = alc262_add_out_vol_ctl(spec, cfg->line_out_pins[0], pfx, &vbits);
15353 static int alc861_create_out_sw(struct hda_codec *codec, const char *pfx,
15356 return add_pb_sw_ctrl(codec->spec, ALC_CTL_WIDGET_MUTE, pfx,
15372 const char *pfx = NULL;
15374 pfx = "Master";
15376 pfx = "Speaker";
15377 if (pfx) {
15379 return alc861_create_out_sw(codec, pfx, nid, 3);
16548 const char *pfx;
16552 pfx = "Speaker";
16554 pfx = "PCM";
16556 pfx = chname[i];
16557 err = add_pb_vol_ctrl(spec, ALC_CTL_WIDGET_VOL, pfx,
16564 pfx = "Speaker";
16565 err = add_pb_sw_ctrl(spec, ALC_CTL_BIND_MUTE, pfx,
16579 hda_nid_t pin, const char *pfx)
16600 err = add_pb_vol_ctrl(spec, ALC_CTL_WIDGET_VOL, pfx,
16604 err = add_pb_sw_ctrl(spec, ALC_CTL_BIND_MUTE, pfx,
16611 err = add_pb_sw_ctrl(spec, ALC_CTL_WIDGET_MUTE, pfx,
18530 static inline int alc662_add_vol_ctl(struct alc_spec *spec, const char *pfx,
18533 return add_pb_vol_ctrl(spec, ALC_CTL_WIDGET_VOL, pfx,
18537 static inline int alc662_add_sw_ctl(struct alc_spec *spec, const char *pfx,
18540 return add_pb_sw_ctrl(spec, ALC_CTL_WIDGET_MUTE, pfx,
18544 #define alc662_add_stereo_vol(spec, pfx, nid) \
18545 alc662_add_vol_ctl(spec, pfx, nid, 3)
18546 #define alc662_add_stereo_sw(spec, pfx, nid) \
18547 alc662_add_sw_ctl(spec, pfx, nid, 3)
18582 const char *pfx;
18586 pfx = "Speaker";
18588 pfx = "PCM";
18590 pfx = chname[i];
18591 err = alc662_add_vol_ctl(spec, pfx, nid, 3);
18596 pfx = "Speaker";
18597 err = alc662_add_sw_ctl(spec, pfx, mix, 3);
18608 const char *pfx)
18622 return add_pb_sw_ctrl(spec, ALC_CTL_WIDGET_MUTE, pfx,
18629 err = alc662_add_vol_ctl(spec, pfx, nid, 3);
18632 err = alc662_add_sw_ctl(spec, pfx, mix, 3);