Message ID | 54003095.200@ladisch.de (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Takashi Iwai |
Headers | show |
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; >
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: > Andreas Allacher wrote: >> 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 >
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 Clemens Ladisch wrote: > Andreas Allacher wrote: >> 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 >
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: > 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 > > > Clemens Ladisch wrote: >> Andreas Allacher wrote: >>> 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 > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >
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: > Andreas Allacher wrote: >> 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 >
--- 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;