Skip to contentSkip to conversation

ALSA: virtuoso: add Xonar Essence STX II support

PATCH Andreas Allacher 2 participants 9 messages Aug 26, 2014 – Sep 6, 2014 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 10 lines · Andreas Allacher
Quoted 1 line · Andreas Allacher

/ Is there any reason why the daughterboard does not work yet?

/
No code written yet.

Does your question imply that you would be able to test it?

Regards,
Clemens

Not yet, but I would be willing to buy and test it, if someone were to write the code. In that case I would order the device today or tomorrow.

Regards,
Andreas

maintainer
#2 lore raw
Quoted 9 lines · Andreas Allacher
Quoted 6 lines
Quoted 1 line · Andreas Allacher

Is there any reason why the daughterboard does not work yet?

No code written yet.

Does your question imply that you would be able to test it?

Not yet, but I would be willing to buy and test it, if someone were to write the code. In that case I would order the device today or tomorrow.

In that case, go ahead, and prepare for recompiling the kernel.

Regards,
Clemens

#3 lore raw

OK. I will let you know once the device arrives.

Quoted 18 lines · Clemens Ladisch
Quoted 7 lines · Andreas Allacher
Quoted 5 lines
Quoted 1 line · Andreas Allacher

Is there any reason why the daughterboard does not work yet?

No code written yet.

Does your question imply that you would be able to test it?

Not yet, but I would be willing to buy and test it, if someone were to write the code. In that case I would order the device today or tomorrow.

In that case, go ahead, and prepare for recompiling the kernel.

Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

maintainer
#4 lore raw

In theory, this patch should work:

sound/pci/oxygen/xonar_pcm179x.c +13 -2
@@ -419,6 +419,7 @@
 
 	data->generic.output_enable_bit = GPIO_ST_OUTPUT_ENABLE;
 	data->dacs = chip->model.dac_channels_mixer / 2;
+	data->h6 = chip->model.dac_channels_mixer > 2;
 	data->hp_gain_offset = 2*-18;
 
 	pcm1796_init(chip);
@@ -1140,8 +1141,18 @@
 		break;
 	case 0x85f4:
 		chip->model = model_xonar_st;
-		/* TODO: daughterboard support */
-		chip->model.shortname = "Xonar STX II";
+		oxygen_clear_bits16(chip, OXYGEN_GPIO_CONTROL, GPIO_DB_MASK);
+		switch (oxygen_read16(chip, OXYGEN_GPIO_DATA) & GPIO_DB_MASK) {
+		default:
+			chip->model.shortname = "Xonar STX II";
+			break;
+		case GPIO_DB_H6:
+			chip->model.shortname = "Xonar STX II+H6";
+			chip->model.dac_channels_pcm = 8;
+			chip->model.dac_channels_mixer = 8;
+			chip->model.dac_mclks = OXYGEN_MCLKS(256, 128, 128);
+			break;
+		}
 		chip->model.init = xonar_stx_init;
 		chip->model.resume = xonar_stx_resume;
 		chip->model.set_dac_params = set_pcm1796_params;
#5 lore raw

OK. The card arrived today. I will most likely test it tomorrow or the day afterwards. Is the path already in the kernel source git or do I have to apply it manually?

Regards,
Andreas Allacher

Am 29.08.2014 09:49, schrieb Clemens Ladisch:

Quoted 34 lines

In theory, this patch should work:

sound/pci/oxygen/xonar_pcm179x.c +13 -2
@@ -419,6 +419,7 @@
 
  	data->generic.output_enable_bit = GPIO_ST_OUTPUT_ENABLE;
  	data->dacs = chip->model.dac_channels_mixer / 2;
+	data->h6 = chip->model.dac_channels_mixer > 2;
  	data->hp_gain_offset = 2*-18;
 
  	pcm1796_init(chip);
@@ -1140,8 +1141,18 @@
  		break;
  	case 0x85f4:
  		chip->model = model_xonar_st;
-		/* TODO: daughterboard support */
-		chip->model.shortname = "Xonar STX II";
+		oxygen_clear_bits16(chip, OXYGEN_GPIO_CONTROL, GPIO_DB_MASK);
+		switch (oxygen_read16(chip, OXYGEN_GPIO_DATA) & GPIO_DB_MASK) {
+		default:
+			chip->model.shortname = "Xonar STX II";
+			break;
+		case GPIO_DB_H6:
+			chip->model.shortname = "Xonar STX II+H6";
+			chip->model.dac_channels_pcm = 8;
+			chip->model.dac_channels_mixer = 8;
+			chip->model.dac_mclks = OXYGEN_MCLKS(256, 128, 128);
+			break;
+		}
  		chip->model.init = xonar_stx_init;
  		chip->model.resume = xonar_stx_resume;
  		chip->model.set_dac_params = set_pcm1796_params;
#8 lore raw
In reply to a message not in the archive

Just to let you know. I might not be able to do the test today (but I hope I will be able to). If not, it will be sometime in the coming week but cannot say when.

Regards,
Andreas

Am 29.08.2014 21:08, schrieb Clemens Ladisch:

Quoted 8 lines
Quoted 1 line · Andreas Allacher

Is the path already in the kernel source git or do I have to apply it manually?

This patch is completely untested and not yet in any git.

Regards,
Clemens

#9 lore raw
In reply to a message not in the archive

Hi,

I just tested the card with the H6 board and the patch and it seems to work fine - only tested 5.1 because I do not have 7.1 but I guess 7.1 should work as well. One question: Could it be that under Linux the same sound volume is a bit lower than under Windows (not really a problem but...)?

Will this patch make it into 3.17 final or will it be moved to 3.18?

Regards,
Andreas

Quoted 8 lines · Clemens Ladisch
Quoted 1 line · Andreas Allacher

Is the path already in the kernel source git or do I have to apply it manually?

This patch is completely untested and not yet in any git.

Regards,
Clemens

#10 lore raw

I also tested the card with disconnected H6 board. There the 5.1 option was - as is correct - gone and the front (stereo) speakers worked correctly too.

Am 02.09.2014 15:48, schrieb Andreas Allacher:

Quoted 26 lines

Hi,

I just tested the card with the H6 board and the patch and it seems to work fine - only tested 5.1 because I do not have 7.1 but I guess 7.1 should work as well. One question: Could it be that under Linux the same sound volume is a bit lower than under Windows (not really a problem but...)?

Will this patch make it into 3.17 final or will it be moved to 3.18?

Regards,
Andreas

Quoted 8 lines · Clemens Ladisch
Quoted 1 line · Andreas Allacher

Is the path already in the kernel source git or do I have to apply it manually?

This patch is completely untested and not yet in any git.

Regards,
Clemens

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#11 lore raw
In reply to a message not in the archive

Hi,

as I have tested the patch and it works, shouldn't someone merge it with kernel git?

Am 29.08.2014 21:08, schrieb Clemens Ladisch:

Quoted 8 lines
Quoted 1 line · Andreas Allacher

Is the path already in the kernel source git or do I have to apply it manually?

This patch is completely untested and not yet in any git.

Regards,
Clemens