Lines Matching refs:vjack
52 static const char *virtsnd_jack_get_label(struct virtio_jack *vjack) in virtsnd_jack_get_label() argument
54 unsigned int defconf = vjack->defconf; in virtsnd_jack_get_label()
100 static int virtsnd_jack_get_type(struct virtio_jack *vjack) in virtsnd_jack_get_type() argument
102 unsigned int defconf = vjack->defconf; in virtsnd_jack_get_type()
157 struct virtio_jack *vjack = &snd->jacks[i]; in virtsnd_jack_parse_cfg() local
159 vjack->nid = le32_to_cpu(info[i].hdr.hda_fn_nid); in virtsnd_jack_parse_cfg()
160 vjack->features = le32_to_cpu(info[i].features); in virtsnd_jack_parse_cfg()
161 vjack->defconf = le32_to_cpu(info[i].hda_reg_defconf); in virtsnd_jack_parse_cfg()
162 vjack->caps = le32_to_cpu(info[i].hda_reg_caps); in virtsnd_jack_parse_cfg()
163 vjack->connected = info[i].connected; in virtsnd_jack_parse_cfg()
185 struct virtio_jack *vjack = &snd->jacks[i]; in virtsnd_jack_build_devs() local
187 vjack->type = virtsnd_jack_get_type(vjack); in virtsnd_jack_build_devs()
189 rc = snd_jack_new(snd->card, virtsnd_jack_get_label(vjack), in virtsnd_jack_build_devs()
190 vjack->type, &vjack->jack, true, true); in virtsnd_jack_build_devs()
194 if (vjack->jack) in virtsnd_jack_build_devs()
195 vjack->jack->private_data = vjack; in virtsnd_jack_build_devs()
197 snd_jack_report(vjack->jack, in virtsnd_jack_build_devs()
198 vjack->connected ? vjack->type : 0); in virtsnd_jack_build_devs()
214 struct virtio_jack *vjack; in virtsnd_jack_event() local
219 vjack = &snd->jacks[jack_id]; in virtsnd_jack_event()
223 vjack->connected = true; in virtsnd_jack_event()
226 vjack->connected = false; in virtsnd_jack_event()
232 snd_jack_report(vjack->jack, vjack->connected ? vjack->type : 0); in virtsnd_jack_event()