Home
last modified time | relevance | path

Searched refs:vss (Results 1 – 7 of 7) sorted by relevance

/sound/virtio/
Dvirtio_pcm_ops.c109 struct virtio_pcm_substream *vss = vs->substreams[substream->number]; in virtsnd_pcm_open() local
111 substream->runtime->hw = vss->hw; in virtsnd_pcm_open()
112 substream->private_data = vss; in virtsnd_pcm_open()
117 vss->stopped = !!virtsnd_pcm_msg_pending_num(vss); in virtsnd_pcm_open()
118 vss->suspended = false; in virtsnd_pcm_open()
153 static int virtsnd_pcm_dev_set_params(struct virtio_pcm_substream *vss, in virtsnd_pcm_dev_set_params() argument
183 msg = virtsnd_pcm_ctl_msg_alloc(vss, VIRTIO_SND_R_PCM_SET_PARAMS, in virtsnd_pcm_dev_set_params()
195 if (vss->features & (1U << VIRTIO_SND_PCM_F_MSG_POLLING)) in virtsnd_pcm_dev_set_params()
199 if (vss->features & (1U << VIRTIO_SND_PCM_F_EVT_XRUNS)) in virtsnd_pcm_dev_set_params()
203 return virtsnd_ctl_msg_send_sync(vss->snd, msg); in virtsnd_pcm_dev_set_params()
[all …]
Dvirtio_pcm_msg.c132 int virtsnd_pcm_msg_alloc(struct virtio_pcm_substream *vss, in virtsnd_pcm_msg_alloc() argument
135 struct snd_pcm_runtime *runtime = vss->substream->runtime; in virtsnd_pcm_msg_alloc()
138 vss->msgs = kcalloc(periods, sizeof(*vss->msgs), GFP_KERNEL); in virtsnd_pcm_msg_alloc()
139 if (!vss->msgs) in virtsnd_pcm_msg_alloc()
142 vss->nmsgs = periods; in virtsnd_pcm_msg_alloc()
154 msg->substream = vss; in virtsnd_pcm_msg_alloc()
163 vss->msgs[i] = msg; in virtsnd_pcm_msg_alloc()
175 void virtsnd_pcm_msg_free(struct virtio_pcm_substream *vss) in virtsnd_pcm_msg_free() argument
179 for (i = 0; vss->msgs && i < vss->nmsgs; ++i) in virtsnd_pcm_msg_free()
180 kfree(vss->msgs[i]); in virtsnd_pcm_msg_free()
[all …]
Dvirtio_pcm.c91 static int virtsnd_pcm_build_hw(struct virtio_pcm_substream *vss, in virtsnd_pcm_build_hw() argument
94 struct virtio_device *vdev = vss->snd->vdev; in virtsnd_pcm_build_hw()
100 vss->features = le32_to_cpu(info->features); in virtsnd_pcm_build_hw()
106 vss->hw.info = in virtsnd_pcm_build_hw()
117 vss->sid, info->channels_min, info->channels_max); in virtsnd_pcm_build_hw()
121 vss->hw.channels_min = info->channels_min; in virtsnd_pcm_build_hw()
122 vss->hw.channels_max = info->channels_max; in virtsnd_pcm_build_hw()
126 vss->hw.formats = 0; in virtsnd_pcm_build_hw()
139 vss->hw.formats |= pcm_format_to_bits(alsa_fmt); in virtsnd_pcm_build_hw()
142 if (!vss->hw.formats) { in virtsnd_pcm_build_hw()
[all …]
Dvirtio_pcm.h112 virtsnd_pcm_ctl_msg_alloc(struct virtio_pcm_substream *vss,
115 int virtsnd_pcm_msg_alloc(struct virtio_pcm_substream *vss,
118 void virtsnd_pcm_msg_free(struct virtio_pcm_substream *vss);
120 int virtsnd_pcm_msg_send(struct virtio_pcm_substream *vss);
122 unsigned int virtsnd_pcm_msg_pending_num(struct virtio_pcm_substream *vss);
Dvirtio_card.h92 virtsnd_pcm_queue(struct virtio_pcm_substream *vss) in virtsnd_pcm_queue() argument
94 if (vss->direction == SNDRV_PCM_STREAM_PLAYBACK) in virtsnd_pcm_queue()
95 return virtsnd_tx_queue(vss->snd); in virtsnd_pcm_queue()
97 return virtsnd_rx_queue(vss->snd); in virtsnd_pcm_queue()
Dvirtio_card.c356 struct virtio_pcm_substream *vss = &snd->substreams[i]; in virtsnd_remove() local
358 cancel_work_sync(&vss->elapsed_period); in virtsnd_remove()
359 virtsnd_pcm_msg_free(vss); in virtsnd_remove()
/sound/soc/codecs/
Dwm8958-dsp2.c622 int vss = kcontrol->private_value; in wm8958_vss_get() local
626 ucontrol->value.integer.value[0] = wm8994->vss_ena[vss]; in wm8958_vss_get()
634 int vss = kcontrol->private_value; in wm8958_vss_put() local
638 if (wm8994->vss_ena[vss] == ucontrol->value.integer.value[0]) in wm8958_vss_put()
647 if (wm8958_dsp2_busy(wm8994, vss)) { in wm8958_vss_put()
648 dev_dbg(component->dev, "DSP2 active on %d already\n", vss); in wm8958_vss_put()
652 if (wm8994->enh_eq_ena[vss]) in wm8958_vss_put()
655 wm8994->vss_ena[vss] = ucontrol->value.integer.value[0]; in wm8958_vss_put()
657 wm8958_dsp_apply(component, vss, wm8994->vss_ena[vss]); in wm8958_vss_put()