Lines Matching refs:SM_PLAY
330 memcpy(pvol, s->str[SM_PLAY].vol, sizeof(pvol)); in selem_read()
331 memset(&s->str[SM_PLAY].vol, 0, sizeof(s->str[SM_PLAY].vol)); in selem_read()
332 psw = s->str[SM_PLAY].sw; in selem_read()
333 s->str[SM_PLAY].sw = ~0U; in selem_read()
362 err = elem_read_volume(s, SM_PLAY, CTL_PLAYBACK_VOLUME); in selem_read()
364 err = elem_read_volume(s, SM_PLAY, CTL_GLOBAL_VOLUME); in selem_read()
367 err = elem_read_volume(s, SM_PLAY, CTL_SINGLE); in selem_read()
372 s->str[SM_PLAY].sw = 0; in selem_read()
376 err = elem_read_switch(s, SM_PLAY, CTL_PLAYBACK_SWITCH); in selem_read()
381 err = elem_read_switch(s, SM_PLAY, CTL_GLOBAL_SWITCH); in selem_read()
387 err = elem_read_switch(s, SM_PLAY, CTL_SINGLE); in selem_read()
392 err = elem_read_route(s, SM_PLAY, CTL_PLAYBACK_ROUTE); in selem_read()
397 err = elem_read_route(s, SM_PLAY, CTL_GLOBAL_ROUTE); in selem_read()
460 if (memcmp(pvol, s->str[SM_PLAY].vol, sizeof(pvol)) || in selem_read()
461 psw != s->str[SM_PLAY].sw || in selem_read()
579 err = elem_write_volume(s, SM_PLAY, CTL_SINGLE); in selem_write_main()
581 err = elem_write_switch(s, SM_PLAY, CTL_SINGLE); in selem_write_main()
586 err = elem_write_volume(s, SM_PLAY, CTL_GLOBAL_VOLUME); in selem_write_main()
596 err = elem_write_switch(s, SM_PLAY, CTL_GLOBAL_SWITCH); in selem_write_main()
601 err = elem_write_volume(s, SM_PLAY, CTL_PLAYBACK_VOLUME); in selem_write_main()
606 err = elem_write_switch(s, SM_PLAY, CTL_PLAYBACK_SWITCH); in selem_write_main()
611 err = elem_write_route(s, SM_PLAY, CTL_PLAYBACK_ROUTE); in selem_write_main()
876 simple->str[SM_PLAY].channels = pchannels; in simple_update()
877 if (!simple->str[SM_PLAY].range) { in simple_update()
878 simple->str[SM_PLAY].min = pmin != LONG_MAX ? pmin : 0; in simple_update()
879 simple->str[SM_PLAY].max = pmax != LONG_MIN ? pmax : 0; in simple_update()
970 dir = SM_PLAY; in _snd_mixer_selem_set_volume()
976 (dir == SM_PLAY ? SM_CAP_PVOLUME_JOIN : SM_CAP_CVOLUME_JOIN)) in _snd_mixer_selem_set_volume()
991 (dir == SM_PLAY ? SM_CAP_PSWITCH_JOIN : SM_CAP_CSWITCH_JOIN)) in _snd_mixer_selem_set_switch()
1029 if (dir == SM_PLAY && (s->selem.caps & SM_CAP_PENUM) && !(s->selem.caps & SM_CAP_CENUM) ) in is_ops()
1090 dir = SM_PLAY; in get_volume_ops()
1153 if (dir == SM_PLAY) in get_selem_ctl()
1185 dir = SM_PLAY; in get_dB_range_ops()
1228 dir = SM_PLAY; in get_dB_ops()
1247 dir = SM_PLAY; in get_switch_ops()
1273 dir = SM_PLAY; in ask_dB_vol_ops()
1290 dir = SM_PLAY; in set_dB_ops()
1306 dir = SM_PLAY; in set_switch_ops()
1307 if (dir == SM_PLAY) { in set_switch_ops()