Skip to contentSkip to conversation

Revo 5.1

DISCUSSION Takashi Iwai 3 participants 9 messages Dec 6, 2005 – Dec 9, 2005 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 6 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Quoted 11 lines

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

	% aplay -Dplughw:0,1,3 foo.wav

And you have to raise the corresponding DAC mixer values, of course.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#4 lore raw
Quoted 35 lines · Takashi Iwai <tiwai <at> suse.de> writes:

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 6 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Quoted 11 lines

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

	% aplay -Dplughw:0,1,3 foo.wav

And you have to raise the corresponding DAC mixer values, of course.

Quoted 8 lines

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

I tried the aplay without succes...oh, and I was assuming that it should be plughw:0,2,1, plughw:0,2,2, and plughw:0,2,3.

However, I was doing some looking into the chips used on the card and had a thought. The 5.1 uses the envy24gt as opposed to the envy24ht. The big difference is that the gt is that it is a 6 channel card. However, with the headphones included, there are 8 output channels/DACS in total. So I would guess that basing the card off the ht, setting it up with 8 DACs would not work. Though I'm still figuring this out, I'm guessing that means that one output (pcm)_channel actually has to drive 2 DACs. I'm not quite sure where to go with that though.

Any help, suggestions, etc would be welcomed.

Trevor

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#5 lore raw
In reply to Takashi Iwai
Quoted 19 lines · Takashi Iwai

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 4 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

Quoted 6 lines
	% aplay -Dplughw:0,1,3 foo.wav

And you have to raise the corresponding DAC mixer values, of course.

Takashi

I've enabled all 8-channels of AK4358 in the driver, but I was unable to access the 4-th substream, because (as you noted) there are max 3 substreams per PCM, so "plughw:0,2,3" is actually not available (the other substreams work fine).

I'd really like to try the 4-th substream because there is a good chance that it is used to drive the headphone output (I see no other chip on the board for headphone out).

Is there any other way to access the 4-th substream of PCM#2? Looking at ice1724.c I see no easy way to do that, so I'm again asking you for help :)

Thanks in advance,

David

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#6 lore raw

At Thu, 08 Dec 2005 21:42:48 +0100,

Quoted 38 lines · David Peroutka
Quoted 36 lines · Takashi Iwai

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 5 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Quoted 11 lines

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

	% aplay -Dplughw:0,1,3 foo.wav

And you have to raise the corresponding DAC mixer values, of course.

Quoted 6 lines
Quoted 1 line

Takashi

I've enabled all 8-channels of AK4358 in the driver, but I was unable to access the 4-th substream, because (as you noted) there are max 3 substreams per PCM, so "plughw:0,2,3" is actually not available (the other substreams work fine).

My bad, I mean 'plughw:0,2,2'.

But Trevor reported it doesn't work, too, and mentioned that the chip itself (Envy24GT) shouldn't support 4th stream...

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#7 lore raw
Quoted 40 lines · Takashi Iwai

At Thu, 08 Dec 2005 21:42:48 +0100,

Quoted 26 lines · David Peroutka
Quoted 23 lines · Takashi Iwai

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 6 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

	% aplay -Dplughw:0,1,3 foo.wav
Quoted 9 lines
Quoted 6 lines

And you have to raise the corresponding DAC mixer values, of course.

Takashi

I've enabled all 8-channels of AK4358 in the driver, but I was unable to access the 4-th substream, because (as you noted) there are max 3 substreams per PCM, so "plughw:0,2,3" is actually not available (the other substreams work fine).

Quoted 9 lines

My bad, I mean 'plughw:0,2,2'.

But Trevor reported it doesn't work, too, and mentioned that the chip itself (Envy24GT) shouldn't support 4th stream...

Takashi

Takashi,

I've been poking around in the source for the driver and have a few questions. Where is it in the code that the front PCM stream would conncect to output to the DACs associated with that, and is there a way to duplicate that to the extra 2 DACs? I know that laptop cards tend to have a similar setup, outputting to headphones and speakers, so I figure it can be done. I'm also thinking that's the most logical solution in this case as well.

I have no problem fooling around to figure things out (I went to school for software engineering, just have never dealt with drivers before), I just need to be pointed in the right direction. I know there are a few people now looking for support with this card, so I figure if we work together we can get it all working.

Thanks again,

Trevor

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#8 lore raw

At Fri, 09 Dec 2005 09:20:51 -0500,

Quoted 67 lines · Trevor Feeney
Quoted 55 lines · Takashi Iwai

At Thu, 08 Dec 2005 21:42:48 +0100,

Quoted 41 lines · David Peroutka
Quoted 38 lines · Takashi Iwai

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 5 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Quoted 13 lines

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

	% aplay -Dplughw:0,1,3 foo.wav

And you have to raise the corresponding DAC mixer values, of course.

Quoted 9 lines
Quoted 3 lines

Takashi

I've enabled all 8-channels of AK4358 in the driver, but I was unable to access the 4-th substream, because (as you noted) there are max 3 substreams per PCM, so "plughw:0,2,3" is actually not available (the other substreams work fine).

Quoted 9 lines

My bad, I mean 'plughw:0,2,2'.

But Trevor reported it doesn't work, too, and mentioned that the chip itself (Envy24GT) shouldn't support 4th stream...

Takashi

Quoted 6 lines

Takashi,

I've been poking around in the source for the driver and have a few questions. Where is it in the code that the front PCM stream would conncect to output to the DACs associated with that, and is there a way to duplicate that to the extra 2 DACs?

The front is handled with the multi-channel DMA, corresponding to snd_vt1724_playback_pro_*() callbacks. This supports 2-8 interleaved channels. The other 3 DMAs are only for 2-channel streams, snd_vt1724_playback_indep_*(). The 4th DMA (possibly a headphone output) is, thus, the 3rd substream of this type.

There is no way to duplicate the signal for both front and another stream _on hardware_, AFAIK. It might work with some trick, though (e.g. sharing the same ring buffer with different DMAs).

The possible solution is the addition in alsa-lib to duplicate signals via multi+route plugins.

Quoted 4 lines

I know that laptop cards tend to
have a similar setup, outputting to headphones and speakers, so I figure it can be done. I'm also thinking that's the most logical solution in this case as well.

The headphone output of laptops is usually the same to speaker or line-out.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#9 lore raw
Quoted 96 lines · Takashi Iwai

At Fri, 09 Dec 2005 09:20:51 -0500,

Quoted 61 lines · Trevor Feeney
Quoted 57 lines · Takashi Iwai

At Thu, 08 Dec 2005 21:42:48 +0100,

Quoted 35 lines · David Peroutka
Quoted 30 lines · Takashi Iwai

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 8 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

	% aplay -Dplughw:0,1,3 foo.wav

And you have to raise the corresponding DAC mixer values, of course.

Quoted 10 lines
Quoted 5 lines

Takashi

I've enabled all 8-channels of AK4358 in the driver, but I was unable to access the 4-th substream, because (as you noted) there are max 3 substreams per PCM, so "plughw:0,2,3" is actually not available (the other substreams work fine).

My bad, I mean 'plughw:0,2,2'.

But Trevor reported it doesn't work, too, and mentioned that the chip itself (Envy24GT) shouldn't support 4th stream...

Quoted 10 lines
Quoted 5 lines

Takashi

Takashi,

I've been poking around in the source for the driver and have a few questions. Where is it in the code that the front PCM stream would conncect to output to the DACs associated with that, and is there a way to duplicate that to the extra 2 DACs?

The front is handled with the multi-channel DMA, corresponding to snd_vt1724_playback_pro_*() callbacks. This supports 2-8 interleaved channels. The other 3 DMAs are only for 2-channel streams, snd_vt1724_playback_indep_*(). The 4th DMA (possibly a headphone output) is, thus, the 3rd substream of this type.

There is no way to duplicate the signal for both front and another stream _on hardware_, AFAIK. It might work with some trick, though (e.g. sharing the same ring buffer with different DMAs).

The possible solution is the addition in alsa-lib to duplicate signals via multi+route plugins.

Quoted 4 lines

I know that laptop cards tend to
have a similar setup, outputting to headphones and speakers, so I figure it can be done. I'm also thinking that's the most logical solution in this case as well.

Quoted 7 lines

The headphone output of laptops is usually the same to speaker or line-out.

Takashi

Just to make sure I'm thinking properly...my assumption is that each PCM channel on the controller (in this case Envy24GT) has a DAC associated with it. The driver also sets up the mixer controls for each of those DACs. Now I'm also looking at your message and thinking that a DMA is associated with the DAC (as you'd have to write to the the DAC at the proper memory address to output). I did some looking over of the AK 4358 Datasheet to try and get a better grasp of what happens on that end. Can't find a Datasheet for the Envy24GT, so I have to examine the driver to figure that out. Where I get a bit confused is substreams. If you output to a substream, is that like outputting to a DMA/DAC, or to a PCM stream on the controller (or maybe I'm way off)?

As I mentioned before,t he card does list 3 substreams, I can output to pluginhw:0,2,0 0,2,1 and 0,2,2. The first substream outputs to the rears, the second to the center/sub out and the third outputs nothing (there are no errors either). If those substreams correpsonded directly with the pair of DACs, I would expect the third to work properly then. If they corresponded to a PCM stream through the controller, then I would epxect it to go nowhere.

I know I may be off a bit on some of that. Please corect me, as I would like to try and learn this and be able to help out. As I said, I've read through the driver development guide, but it's not geared well to newbies I find.

That's all for now.

Trevor

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#10 lore raw

At Fri, 09 Dec 2005 10:31:34 -0500,

Quoted 126 lines · Trevor Feeney
Quoted 116 lines · Takashi Iwai

At Fri, 09 Dec 2005 09:20:51 -0500,

Quoted 81 lines · Trevor Feeney
Quoted 66 lines · Takashi Iwai

At Thu, 08 Dec 2005 21:42:48 +0100,

Quoted 52 lines · David Peroutka
Quoted 37 lines · Takashi Iwai

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 5 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Quoted 15 lines

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

Quoted 10 lines
	% aplay -Dplughw:0,1,3 foo.wav

And you have to raise the corresponding DAC mixer values, of course.

Takashi

Quoted 8 lines

I've enabled all 8-channels of AK4358 in the driver, but I was unable to access the 4-th substream, because (as you noted) there are max 3 substreams per PCM, so "plughw:0,2,3" is actually not available (the other substreams work fine).

Quoted 11 lines

My bad, I mean 'plughw:0,2,2'.

But Trevor reported it doesn't work, too, and mentioned that the chip itself (Envy24GT) shouldn't support 4th stream...

Takashi

Quoted 8 lines

Takashi,

I've been poking around in the source for the driver and have a few questions. Where is it in the code that the front PCM stream would conncect to output to the DACs associated with that, and is there a way to duplicate that to the extra 2 DACs?

The front is handled with the multi-channel DMA, corresponding to snd_vt1724_playback_pro_*() callbacks. This supports 2-8 interleaved channels. The other 3 DMAs are only for 2-channel streams, snd_vt1724_playback_indep_*(). The 4th DMA (possibly a headphone output) is, thus, the 3rd substream of this type.

There is no way to duplicate the signal for both front and another stream _on hardware_, AFAIK. It might work with some trick, though (e.g. sharing the same ring buffer with different DMAs).

The possible solution is the addition in alsa-lib to duplicate signals via multi+route plugins.

Quoted 6 lines

I know that laptop cards tend to
have a similar setup, outputting to headphones and speakers, so I figure it can be done. I'm also thinking that's the most logical solution in this case as well.

Quoted 7 lines

The headphone output of laptops is usually the same to speaker or line-out.

Takashi

Quoted 6 lines

Just to make sure I'm thinking properly...my assumption is that each PCM channel on the controller (in this case Envy24GT) has a DAC associated with it. The driver also sets up the mixer controls for each of those DACs. Now I'm also looking at your message and thinking that a DMA is associated with the DAC (as you'd have to write to the the DAC at the proper memory address to output).

At least, envy24HT has 4 DMAs. The first one is for multi-channels. It can send from 2 to 8 channels as a single stream.
The rest 3 DMAs are for 2-channels only, rear, clfe and side. You can control them separately unless the channels conflict with the mutli-channel setup of the first DMA.

Quoted 6 lines

I did some looking over of the AK
4358 Datasheet to try and get a better grasp of what happens on that end. Can't find a Datasheet for the Envy24GT, so I have to examine the driver to figure that out. Where I get a bit confused is substreams. If you output to a substream, is that like outputting to a DMA/DAC, or to a PCM stream on the controller (or maybe I'm way off)?

I have no datasheet for GT, too. Only the datasheet for Envy24HT is available (you can find it on alsa's ftp).

Quoted 7 lines

As I mentioned before,t he card does list 3 substreams, I can output to pluginhw:0,2,0 0,2,1 and 0,2,2. The first substream outputs to the rears, the second to the center/sub out and the third outputs nothing (there are no errors either). If those substreams correpsonded directly with the pair of DACs, I would expect the third to work properly then. If they corresponded to a PCM stream through the controller, then I would epxect it to go nowhere.

Hmm, interesting. Although GT seems supporting only 6 channels, the DMA looks as if working. Possibly 6-channel is just for the multi-channel DMA?

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

#11 lore raw
Quoted 159 lines · Takashi Iwai

At Fri, 09 Dec 2005 10:31:34 -0500,

Quoted 125 lines · Trevor Feeney
Quoted 121 lines · Takashi Iwai

At Fri, 09 Dec 2005 09:20:51 -0500,

Quoted 82 lines · Trevor Feeney
Quoted 63 lines · Takashi Iwai

At Thu, 08 Dec 2005 21:42:48 +0100,

Quoted 41 lines · David Peroutka
Quoted 34 lines · Takashi Iwai

At Tue, 06 Dec 2005 09:34:48 -0500,

Quoted 10 lines · Trevor Feeney

Was taking a look at the source for the Revo 5.1, noticed a few things. You set it up as using only 6 DACs, going by the 5.1 I figure, but when you consider that it also has the headpone out, it would have the same number of DACs as the 7.1 (8 DACs in all).

Takashi - that answers your question in the last thread...from what I've read, the 5.1 only uses one codec, and the headphones would just be a separate channel. I tried adjusting the number of DACs to 8 in the driver, and did manage to get two
DAC mixer sliders. I'm not really sure if that was the way to go or not. I tried adjusting the asound plugin to output to 8 channels, pcm device surround71, but that didn't seem to work. I wondering if it needs to be setup separately thant the other 6 channels so that it would be considered it's own PCM device. That goes a bit beyond my realm of knowledge for driver development though...still trying to learn this. Been reading a lot of the documents and such.

[Added alsa-devel ML again]

In the case of ice1724, you can open a stereo stream separately. The first PCM is assigned to the multi-channel, i.e. 2-8 channels interleaved format. The secondary PCM is for SPDIF. The third PCM is the "independent" streams. This may have up to 3 substreams, each of which is a 2-channel one. If you change num_dacs = 8, you'll be able to access plughw:0,2,3 (suppose the card# is 0) for the last two channels individually:

	% aplay -Dplughw:0,1,3 foo.wav

And you have to raise the corresponding DAC mixer values, of course.

Quoted 14 lines
Quoted 7 lines

Takashi

I've enabled all 8-channels of AK4358 in the driver, but I was unable to access the 4-th substream, because (as you noted) there are max 3 substreams per PCM, so "plughw:0,2,3" is actually not available (the other substreams work fine).

Quoted 13 lines

My bad, I mean 'plughw:0,2,2'.

But Trevor reported it doesn't work, too, and mentioned that the chip itself (Envy24GT) shouldn't support 4th stream...

Takashi

Quoted 7 lines

Takashi,

I've been poking around in the source for the driver and have a few questions. Where is it in the code that the front PCM stream would conncect to output to the DACs associated with that, and is there a way to duplicate that to the extra 2 DACs?

The front is handled with the multi-channel DMA, corresponding to snd_vt1724_playback_pro_*() callbacks. This supports 2-8 interleaved channels. The other 3 DMAs are only for 2-channel streams, snd_vt1724_playback_indep_*(). The 4th DMA (possibly a headphone output) is, thus, the 3rd substream of this type.

There is no way to duplicate the signal for both front and another stream _on hardware_, AFAIK. It might work with some trick, though (e.g. sharing the same ring buffer with different DMAs).

The possible solution is the addition in alsa-lib to duplicate signals via multi+route plugins.

Quoted 5 lines

I know that laptop cards tend to have a similar setup, outputting to headphones and speakers, so I figure it can be done. I'm also thinking that's the most logical solution in this case as well.

The headphone output of laptops is usually the same to speaker or line-out.

Quoted 8 lines
Quoted 5 lines

Takashi

Just to make sure I'm thinking properly...my assumption is that each PCM channel on the controller (in this case Envy24GT) has a DAC associated with it. The driver also sets up the mixer controls for each of those DACs. Now I'm also looking at your message and thinking that a DMA is associated with the DAC (as you'd have to write to the the DAC at the proper memory address to output).

At least, envy24HT has 4 DMAs. The first one is for multi-channels. It can send from 2 to 8 channels as a single stream.
The rest 3 DMAs are for 2-channels only, rear, clfe and side. You can control them separately unless the channels conflict with the mutli-channel setup of the first DMA.

Quoted 3 lines

I did some looking over of the AK 4358 Datasheet to try and get a better grasp of what happens on that end. Can't find a Datasheet for the Envy24GT, so I have to examine the driver to figure that out. Where I get a bit confused is substreams. If you output to a substream, is that like outputting to a DMA/DAC, or to a PCM stream on the controller (or maybe I'm way off)?

I have no datasheet for GT, too. Only the datasheet for Envy24HT is available (you can find it on alsa's ftp).

Quoted 3 lines

As I mentioned before,t he card does list 3 substreams, I can output to pluginhw:0,2,0 0,2,1 and 0,2,2. The first substream outputs to the rears, the second to the center/sub out and the third outputs nothing (there are no errors either). If those substreams correpsonded directly with the pair of DACs, I would expect the third to work properly then. If they corresponded to a PCM stream through the controller, then I would epxect it to go nowhere.

Quoted 8 lines

Hmm, interesting. Although GT seems supporting only 6 channels, the DMA looks as if working. Possibly 6-channel is just for the multi-channel DMA?

Takashi

I'll take a look at the HT datasheet so I can get a better grasp how things work. The GT specs on VIA's site say that it's a 6 channel controller. Is there a way that one could acquire the datasheet? I figure the HT can't be too far off the GT, as the card is function using the HT specs. If it is 6 channels for the multi-channel portion, can you think of any reason there would still be no output to the last substream (which I'm assuming is the headphone stream)?

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click