Comment 35 for bug 1274401

Revision history for this message
Raymond (superquad-vortex2) wrote :

with hda-emu

when playing stereo , the driver setup two audio output 0x8 and 0x9 with same stream tag and channel =0

this is not 4 channels output

> PCM 0 p 44100 2 16
Open PCM VT1802 Analog for play
Available PCM parameters:
  channels: 2/4
  formats: S16_LE S32_LE
  rates: 44100 48000 88200 96000 192000
Prepare PCM, rate=44100, channels=2, format=16 bits
PCM format_val = 0x4011
send: NID=0xe, VERB=0xa00(get_stream_format), PARM=0x0
receive: 0x0
hda_codec_setup_stream: NID=0xe, stream=0x1, channel=0, format=0x4011
send: NID=0xe, VERB=0xf06(get_channel_streamid), PARM=0x0
receive: 0x0
send: NID=0xe, VERB=0x706(set_channel_streamid), PARM=0x10
send: NID=0xe, VERB=0xa00(get_stream_format), PARM=0x0
receive: 0x0
send: NID=0xe, VERB=0x240(set_stream_format), PARM=0x11
hda_codec_setup_stream: NID=0x8, stream=0x1, channel=0, format=0x4011
send: NID=0x8, VERB=0xf06(get_channel_streamid), PARM=0x0
receive: 0x0
send: NID=0x8, VERB=0x706(set_channel_streamid), PARM=0x10
send: NID=0x8, VERB=0xa00(get_stream_format), PARM=0x0
receive: 0x0
send: NID=0x8, VERB=0x240(set_stream_format), PARM=0x11
hda_codec_setup_stream: NID=0x8, stream=0x1, channel=0, format=0x4011
hda_codec_setup_stream: NID=0x9, stream=0x1, channel=0, format=0x4011
send: NID=0x9, VERB=0xf06(get_channel_streamid), PARM=0x0
receive: 0x0
send: NID=0x9, VERB=0x706(set_channel_streamid), PARM=0x10
send: NID=0x9, VERB=0xa00(get_stream_format), PARM=0x0
receive: 0x0
send: NID=0x9, VERB=0x240(set_stream_format), PARM=0x11
PCM Clean up
hda_codec_cleanup_stream: NID=0x8
hda_codec_cleanup_stream: NID=0x9
hda_codec_cleanup_stream: NID=0x8
hda_codec_cleanup_stream: NID=0xe
Close PCM

for 4 channels output node 0x8 with channel =0 and node 0x9 with channel = 2

PCM 0 p 44100 4 16
Open PCM VT1802 Analog for play
Available PCM parameters:
  channels: 2/4
  formats: S16_LE S32_LE
  rates: 44100 48000 88200 96000 192000
Prepare PCM, rate=44100, channels=4, format=16 bits
PCM format_val = 0x4013
hda_codec_cleanup_stream: NID=0xe
hda_codec_setup_stream: NID=0x8, stream=0x1, channel=0, format=0x4013
send: NID=0x8, VERB=0xa00(get_stream_format), PARM=0x0
receive: 0x4011
send: NID=0x8, VERB=0x240(set_stream_format), PARM=0x13
hda_codec_setup_stream: NID=0x8, stream=0x1, channel=0, format=0x4013
hda_codec_setup_stream: NID=0x9, stream=0x1, channel=2, format=0x4013
send: NID=0x9, VERB=0xf06(get_channel_streamid), PARM=0x0
receive: 0x10
send: NID=0x9, VERB=0x706(set_channel_streamid), PARM=0x12
send: NID=0x9, VERB=0xa00(get_stream_format), PARM=0x0
receive: 0x4011
send: NID=0x9, VERB=0x240(set_stream_format), PARM=0x13
send: NID=0xe, VERB=0x706(set_channel_streamid), PARM=0x0
send: NID=0xe, VERB=0x200(set_stream_format), PARM=0x0
PCM Clean up
hda_codec_cleanup_stream: NID=0x8
hda_codec_cleanup_stream: NID=0x9
hda_codec_cleanup_stream: NID=0x8
Close PCM