There is problem if the driver group the three [Audio Input] 0x1f  ,
0x12 and 0x20 in the same device since node 0x1f support 16bits 16000Hz
and 32000 Hz but not 20bit , 24bit or 19200Hz as the other node 0x12 and
0x20

The driver just query node 0x12 instead of 0x1f  for the formats and
rates


Attach PCM dev 0, name VT1702 Analog, type audio, play #2, capture #3
Attach PCM dev 1, name VT1702 Digital, type SPDIF, play #2, capture #0

> PCM 0 capt:2 44100 2 16
Open PCM VT1702 Analog for capt
send: NID=0x1a, VERB=0xf02(get_connect_list), PARM=0x0
receive: 0x18151410
send: NID=0x1, VERB=0xf73(unknown), PARM=0x1d
invalid command: NID=0x1, verb=0xf73, parm=0x1d
Available PCM parameters:
  channels: 2/2
  formats: S16_LE S32_LE
  rates: 44100 48000 96000 192000
Prepare PCM, rate=44100, channels=2, format=16 bits
PCM format_val = 0x4011
hda_codec_setup_stream: NID=0x1f, stream=0x1, channel=0, format=0x4011
send: NID=0x1f, VERB=0xf06(get_channel_streamid), PARM=0x0
receive: 0x0
send: NID=0x1f, VERB=0x706(set_channel_streamid), PARM=0x10
send: NID=0x1f, VERB=0xa00(get_stream_format), PARM=0x0
receive: 0x0
send: NID=0x1f, VERB=0x240(set_stream_format), PARM=0x11
PCM Clean up
hda_codec_cleanup_stream: NID=0x1f
Close PCM
send: NID=0x1a, VERB=0xf02(get_connect_list), PARM=0x0
receive: 0x18151410
send: NID=0x1, VERB=0xf73(unknown), PARM=0x1d


4227 static struct hda_pcm_stream vt1702_pcm_analog_capture = {
4228         .substreams = 3,
4229         .channels_min = 2,
4230         .channels_max = 2,
4231         .nid = 0x12, /* NID to query formats and rates */
4232         .ops = {
4233                 .open = via_pcm_open_close,
4234                 .prepare = via_capture_pcm_prepare,
4235                 .cleanup = via_capture_pcm_cleanup,
4236                 .close = via_pcm_open_close
4237         },
4238 };


Node 0x12 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1a 0x00]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power: setting=D0, actual=D0
  Connection: 1
     0x13


Node 0x1f [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x0c, stepsize=0x05, mute=1
  Amp-In vals:  [0x0c 0x0c]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x74]: 16000 32000 44100 48000
    bits [0x2]: 16
    formats [0x1]: PCM
  Power: setting=D0, actual=D0
  Connection: 1
     0x1e

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/677734

Title:
  [VIA VT1702] Recording problem / Sound Recorder does not pick up sound

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to