• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/sound/pci/hda/

Lines Matching refs:buffer

64 static void print_nid_array(struct snd_info_buffer *buffer,
75 snd_iprintf(buffer,
80 snd_iprintf(buffer,
91 static void print_nid_pcms(struct snd_info_buffer *buffer,
101 snd_iprintf(buffer, " Device: name=\"%s\", "
110 static void print_amp_caps(struct snd_info_buffer *buffer,
118 snd_iprintf(buffer, "N/A\n");
121 snd_iprintf(buffer, "ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, "
129 static void print_amp_vals(struct snd_info_buffer *buffer,
138 snd_iprintf(buffer, " [");
143 snd_iprintf(buffer, "0x%02x ", val);
148 snd_iprintf(buffer, "0x%02x]", val);
150 snd_iprintf(buffer, "\n");
153 static void print_pcm_rates(struct snd_info_buffer *buffer, unsigned int pcm)
158 snd_iprintf(buffer, " rates [0x%x]:", pcm);
160 snd_iprintf(buffer, "%s\n", buf);
163 static void print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm)
167 snd_iprintf(buffer, " bits [0x%x]:", (pcm >> 16) & 0xff);
169 snd_iprintf(buffer, "%s\n", buf);
172 static void print_pcm_formats(struct snd_info_buffer *buffer,
175 snd_iprintf(buffer, " formats [0x%x]:", streams & 0xf);
177 snd_iprintf(buffer, " PCM");
179 snd_iprintf(buffer, " FLOAT");
181 snd_iprintf(buffer, " AC3");
182 snd_iprintf(buffer, "\n");
185 static void print_pcm_caps(struct snd_info_buffer *buffer,
191 snd_iprintf(buffer, "N/A\n");
194 print_pcm_rates(buffer, pcm);
195 print_pcm_bits(buffer, pcm);
196 print_pcm_formats(buffer, stream);
229 static void print_pin_caps(struct snd_info_buffer *buffer,
237 snd_iprintf(buffer, " Pincap 0x%08x:", caps);
239 snd_iprintf(buffer, " IN");
241 snd_iprintf(buffer, " OUT");
243 snd_iprintf(buffer, " HP");
245 snd_iprintf(buffer, " EAPD");
247 snd_iprintf(buffer, " Detect");
249 snd_iprintf(buffer, " Balanced");
253 snd_iprintf(buffer, " R/L");
256 snd_iprintf(buffer, " HBR");
257 snd_iprintf(buffer, " HDMI");
261 snd_iprintf(buffer, " DP");
263 snd_iprintf(buffer, " Trigger");
265 snd_iprintf(buffer, " ImpSense");
266 snd_iprintf(buffer, "\n");
270 snd_iprintf(buffer, " Vref caps:");
272 snd_iprintf(buffer, " HIZ");
274 snd_iprintf(buffer, " 50");
276 snd_iprintf(buffer, " GRD");
278 snd_iprintf(buffer, " 80");
280 snd_iprintf(buffer, " 100");
281 snd_iprintf(buffer, "\n");
288 snd_iprintf(buffer, " EAPD 0x%x:", val);
290 snd_iprintf(buffer, " BALANCED");
292 snd_iprintf(buffer, " EAPD");
294 snd_iprintf(buffer, " R/L");
295 snd_iprintf(buffer, "\n");
298 snd_iprintf(buffer, " Pin Default 0x%08x: [%s] %s at %s %s\n", caps,
303 snd_iprintf(buffer, " Conn = %s, Color = %s\n",
310 snd_iprintf(buffer, " DefAssociation = 0x%x, Sequence = 0x%x\n",
319 snd_iprintf(buffer, " Misc = NO_PRESENCE\n");
323 static void print_pin_ctls(struct snd_info_buffer *buffer,
331 snd_iprintf(buffer, " Pin-ctls: 0x%02x:", pinctls);
333 snd_iprintf(buffer, " IN");
335 snd_iprintf(buffer, " OUT");
337 snd_iprintf(buffer, " HP");
342 snd_iprintf(buffer, " VREF_HIZ");
345 snd_iprintf(buffer, " VREF_50");
348 snd_iprintf(buffer, " VREF_GRD");
351 snd_iprintf(buffer, " VREF_80");
354 snd_iprintf(buffer, " VREF_100");
358 snd_iprintf(buffer, "\n");
361 static void print_vol_knob(struct snd_info_buffer *buffer,
366 snd_iprintf(buffer, " Volume-Knob: delta=%d, steps=%d, ",
370 snd_iprintf(buffer, "direct=%d, val=%d\n",
374 static void print_audio_io(struct snd_info_buffer *buffer,
379 snd_iprintf(buffer,
387 snd_iprintf(buffer, " SDI-Select: %d\n",
392 static void print_digital_conv(struct snd_info_buffer *buffer,
397 snd_iprintf(buffer, " Digital:");
399 snd_iprintf(buffer, " Enabled");
401 snd_iprintf(buffer, " Validity");
403 snd_iprintf(buffer, " ValidityCfg");
405 snd_iprintf(buffer, " Preemphasis");
407 snd_iprintf(buffer, " Copyright");
409 snd_iprintf(buffer, " Non-Audio");
411 snd_iprintf(buffer, " Pro");
413 snd_iprintf(buffer, " GenLevel");
414 snd_iprintf(buffer, "\n");
415 snd_iprintf(buffer, " Digital category: 0x%x\n",
429 static void print_power_state(struct snd_info_buffer *buffer,
447 snd_iprintf(buffer, " Power states: %s\n",
450 snd_iprintf(buffer, " Power: setting=%s, actual=%s\n",
456 static void print_unsol_cap(struct snd_info_buffer *buffer,
461 snd_iprintf(buffer,
467 static void print_proc_caps(struct snd_info_buffer *buffer,
472 snd_iprintf(buffer, " Processing caps: benign=%d, ncoeff=%d\n",
477 static void print_conn_list(struct snd_info_buffer *buffer,
490 snd_iprintf(buffer, " Connection: %d\n", conn_len);
492 snd_iprintf(buffer, " ");
494 snd_iprintf(buffer, " 0x%02x", conn[c]);
496 snd_iprintf(buffer, "*");
498 snd_iprintf(buffer, "\n");
502 static void print_gpio(struct snd_info_buffer *buffer,
509 snd_iprintf(buffer, "GPIO: io=%d, o=%d, i=%d, "
532 snd_iprintf(buffer,
541 print_nid_array(buffer, codec, nid, &codec->mixers);
542 print_nid_array(buffer, codec, nid, &codec->nids);
546 struct snd_info_buffer *buffer)
552 snd_iprintf(buffer, "Codec: ");
554 snd_iprintf(buffer, "%s %s\n",
557 snd_iprintf(buffer, "Not Set\n");
558 snd_iprintf(buffer, "Address: %d\n", codec->addr);
560 snd_iprintf(buffer, "AFG Function Id: 0x%x (unsol %u)\n",
563 snd_iprintf(buffer, "MFG Function Id: 0x%x (unsol %u)\n",
565 snd_iprintf(buffer, "Vendor Id: 0x%08x\n", codec->vendor_id);
566 snd_iprintf(buffer, "Subsystem Id: 0x%08x\n", codec->subsystem_id);
567 snd_iprintf(buffer, "Revision Id: 0x%x\n", codec->revision_id);
570 snd_iprintf(buffer, "Modem Function Group: 0x%x\n", codec->mfg);
572 snd_iprintf(buffer, "No Modem Function Group found\n");
577 snd_iprintf(buffer, "Default PCM:\n");
578 print_pcm_caps(buffer, codec, codec->afg);
579 snd_iprintf(buffer, "Default Amp-In caps: ");
580 print_amp_caps(buffer, codec, codec->afg, HDA_INPUT);
581 snd_iprintf(buffer, "Default Amp-Out caps: ");
582 print_amp_caps(buffer, codec, codec->afg, HDA_OUTPUT);
586 snd_iprintf(buffer, "Invalid AFG subtree\n");
591 print_gpio(buffer, codec, codec->afg);
593 codec->proc_widget_hook(buffer, codec, codec->afg);
603 snd_iprintf(buffer, "Node 0x%02x [%s] wcaps 0x%x:", nid,
608 snd_iprintf(buffer, " Stereo");
610 snd_iprintf(buffer, " %d-Channels", chans);
612 snd_iprintf(buffer, " Mono");
614 snd_iprintf(buffer, " Digital");
616 snd_iprintf(buffer, " Amp-In");
618 snd_iprintf(buffer, " Amp-Out");
620 snd_iprintf(buffer, " Stripe");
622 snd_iprintf(buffer, " R/L");
624 snd_iprintf(buffer, " CP");
625 snd_iprintf(buffer, "\n");
627 print_nid_array(buffer, codec, nid, &codec->mixers);
628 print_nid_array(buffer, codec, nid, &codec->nids);
629 print_nid_pcms(buffer, codec, nid);
642 snd_iprintf(buffer, " Amp-In caps: ");
643 print_amp_caps(buffer, codec, nid, HDA_INPUT);
644 snd_iprintf(buffer, " Amp-In vals: ");
645 print_amp_vals(buffer, codec, nid, HDA_INPUT,
650 snd_iprintf(buffer, " Amp-Out caps: ");
651 print_amp_caps(buffer, codec, nid, HDA_OUTPUT);
652 snd_iprintf(buffer, " Amp-Out vals: ");
655 print_amp_vals(buffer, codec, nid, HDA_OUTPUT,
659 print_amp_vals(buffer, codec, nid, HDA_OUTPUT,
666 print_pin_caps(buffer, codec, nid, &supports_vref);
667 print_pin_ctls(buffer, codec, nid, supports_vref);
671 print_vol_knob(buffer, codec, nid);
675 print_audio_io(buffer, codec, nid, wid_type);
677 print_digital_conv(buffer, codec, nid);
679 snd_iprintf(buffer, " PCM:\n");
680 print_pcm_caps(buffer, codec, nid);
686 print_unsol_cap(buffer, codec, nid);
689 print_power_state(buffer, codec, nid);
692 snd_iprintf(buffer, " Delay: %d samples\n",
697 print_conn_list(buffer, codec, nid, wid_type,
701 print_proc_caps(buffer, codec, nid);
704 codec->proc_widget_hook(buffer, codec, nid);