Re: [alsa-devel] [PATCH] ALSA: virtuoso: add Xonar Essence STX II support
On 26.08.2014 10:44, Andreas Allacher wrote:
Andreas Allacher wrote:
/ 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
Andreas Allacher wrote:
Andreas Allacher wrote:
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
OK. I will let you know once the device arrives.
On 26.08.2014 11:03, Clemens Ladisch wrote:
Andreas Allacher wrote:
Andreas Allacher wrote:
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 Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
In theory, this patch should work:
--- a/sound/pci/oxygen/xonar_pcm179x.c +++ b/sound/pci/oxygen/xonar_pcm179x.c @@ -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;
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:
In theory, this patch should work:
--- a/sound/pci/oxygen/xonar_pcm179x.c +++ b/sound/pci/oxygen/xonar_pcm179x.c @@ -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;}
participants (2)
-
Andreas Allacher
-
Clemens Ladisch