Skip to contentSkip to conversation

[PATCH - Preliminary support for Xonar Xense (resubmitAdded support for Xonar Xense. Only speaker out and mic in working.

PATCH Ian Dawes 2 participants 5 messages Jul 29, 2013 – Jul 30, 2013 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Ian Dawes

author
#0 lore raw
sound/pci/oxygen/virtuoso.c +1 -0
index 64b9fda..df99ec9 100644
@@ -52,6 +52,7 @@ static DEFINE_PCI_DEVICE_TABLE(xonar_ids) = {
 	{ OXYGEN_PCI_SUBID(0x1043, 0x835d) },
 	{ OXYGEN_PCI_SUBID(0x1043, 0x835e) },
 	{ OXYGEN_PCI_SUBID(0x1043, 0x838e) },
+	{ OXYGEN_PCI_SUBID(0x1043, 0x8428) },
 	{ OXYGEN_PCI_SUBID(0x1043, 0x8522) },
 	{ OXYGEN_PCI_SUBID_BROKEN_EEPROM },
 	{ }
sound/pci/oxygen/xonar_pcm179x.c +19 -0
index c8c7f2c..2567810 100644
@@ -499,6 +499,17 @@ static void xonar_stx_init(struct oxygen *chip)
 	xonar_st_init_common(chip);
 }
 
+static void xonar_xense_init(struct oxygen *chip)
+{
+	struct xonar_pcm179x *data = chip->model_data;
+
+	data->generic.ext_power_reg = OXYGEN_GPI_DATA;
+	data->generic.ext_power_int_reg = OXYGEN_GPI_INTERRUPT_MASK;
+	data->generic.ext_power_bit = GPI_EXT_POWER;
+	xonar_init_ext_power(chip);
+	xonar_st_init(chip);
+}
+
 static void xonar_d2_cleanup(struct oxygen *chip)
 {
 	xonar_disable_output(chip);
@@ -1138,6 +1149,14 @@ int get_xonar_pcm179x_model(struct oxygen *chip,
 		chip->model.resume = xonar_stx_resume;
 		chip->model.set_dac_params = set_pcm1796_params;
 		break;
+	case 0x8428:
+		chip->model = model_xonar_st;
+		chip->model.shortname = "Xonar Xense";
+		chip->model.chip = "AV100";
+		chip->model.init = xonar_xense_init;
+		chip->model.dac_channels_pcm = 8;
+		chip->model.dac_channels_mixer = 8;
+		break;
 	default:
 		return -EINVAL;
 	}
Signature · 1 line
1.8.1.2
maintainer
#1 lore raw
Quoted 2 lines · Ian Dawes

The commit message was squashed into the subject line. There's probably an empty line missing between them.

sound/pci/oxygen/xonar_pcm179x.c static void xonar_stx_init(struct oxygen *chip) · line 511

Quoted 11 lines

+++ b/sound/pci/oxygen/xonar_pcm179x.c

sound/pci/oxygen/xonar_pcm179x.c +10 -0
+static void xonar_xense_init(struct oxygen *chip)
+{
+	struct xonar_pcm179x *data = chip->model_data;
+
+	data->generic.ext_power_reg = OXYGEN_GPI_DATA;
+	data->generic.ext_power_int_reg = OXYGEN_GPI_INTERRUPT_MASK;
+	data->generic.ext_power_bit = GPI_EXT_POWER;
+	xonar_init_ext_power(chip);
+	xonar_st_init(chip);
+}

How much of this is guesswork? :-)

Shouldn't you rather use xonar_stx_init(), which does not try to configure the nonexistent CS2000 chip?

sound/pci/oxygen/xonar_pcm179x.c int get_xonar_pcm179x_model(struct oxygen *chip, · line 1158

Quoted 7 lines
sound/pci/oxygen/xonar_pcm179x.c +7 -0
+	case 0x8428:
+		chip->model = model_xonar_st;
+		chip->model.shortname = "Xonar Xense";
+		chip->model.chip = "AV100";
+		chip->model.init = xonar_xense_init;
+		chip->model.dac_channels_pcm = 8;
+		chip->model.dac_channels_mixer = 8;

When only two channels work, why declaring more?

Regards,
Clemens

A message that is not in the archive (sent off-list or not yet received): 20130729212503.04107489@mainbox

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): 20130729214039.6d673367@mainbox

maintainer
#5 lore raw
Quoted 7 lines · Ian Dawes
Quoted 6 lines · Clemens Ladisch
Quoted 5 lines · Ian Dawes
Quoted 4 lines · Clemens Ladisch
Quoted 2 lines · Ian Dawes
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

The commit message was squashed into the subject line. There's probably an empty line missing between them.

I'm not sure what this means.

Did you intend for the subject to be this long?

Probably not. I added "resubmitted" to the subject

And the "Added support ..." was supposed to be in the subject, too?

Quoted 1 line

How should I rectify this?

Ensure there is an empty line after the subject.

Regards,
Clemens

author
#6 lore raw
Quoted 8 lines · Clemens Ladisch
Quoted 7 lines · Ian Dawes
Quoted 6 lines · Clemens Ladisch
Quoted 5 lines · Ian Dawes
Quoted 4 lines · Clemens Ladisch
Quoted 1 line · Ian Dawes

The commit message was squashed into the subject line. There's probably an empty line missing between them.

Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line

I'm not sure what this means.

Did you intend for the subject to be this long?

Probably not. I added "resubmitted" to the subject

And the "Added support ..." was supposed to be in the subject, too?

Quoted 1 line

How should I rectify this?

Ensure there is an empty line after the subject.

Should I resubmit the patch then? (with the additional channels removed and fixed subject line)

Quoted 4 lines

Regards,
Clemens

Apologies for my stupid questions! :)

maintainer
#7 lore raw
Quoted 10 lines · Ian Dawes
Quoted 9 lines · Clemens Ladisch
Quoted 8 lines · Ian Dawes
Quoted 7 lines · Clemens Ladisch
Quoted 6 lines · Ian Dawes
Quoted 4 lines · Clemens Ladisch
Quoted 1 line · Ian Dawes

The commit message was squashed into the subject line. There's probably an empty line missing between them.

I'm not sure what this means.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Did you intend for the subject to be this long?

Probably not. I added "resubmitted" to the subject

And the "Added support ..." was supposed to be in the subject, too?

Quoted 1 line

How should I rectify this?

Ensure there is an empty line after the subject.

Should I resubmit the patch then? (with the additional channels removed and fixed subject line)

Yes, please.

Regards,
Clemens