Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228134
b: refs/heads/master
c: 24aee93
h: refs/heads/master
v: v3
  • Loading branch information
Vinod Koul authored and Greg Kroah-Hartman committed Nov 17, 2010
1 parent 32bf78f commit 70d86cd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 57 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63fcf10db218a89cbd1e34c47540c3e28706cff1
refs/heads/master: 24aee93c37fe7fa2aa2381d3017be478e9c55c47
5 changes: 0 additions & 5 deletions trunk/drivers/staging/intel_sst/intelmid.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,4 @@ extern struct snd_kcontrol_new snd_intelmad_controls_mrst[];
extern struct snd_kcontrol_new snd_intelmad_controls_mfld[];
extern struct snd_pmic_ops *intelmad_vendor_ops[];

/* This is an enabler hook as the platform detection logic isn't yet
present and depends on some firmware and DMI support to detect AAVA
devices. It will vanish once the AAVA platform support is merged */
#define is_aava() 0

#endif /* __INTELMID_H */
50 changes: 0 additions & 50 deletions trunk/drivers/staging/intel_sst/intelmid_v1_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,56 +134,6 @@ static int mx_init_card(void)
return sst_sc_reg_access(sc_access, PMIC_WRITE, 47);
}

static int mx_init_capture_card(void)
{
struct sc_reg_access sc_access[] = {
{0x206, 0x5a, 0x0},
{0x207, 0xbe, 0x0},
{0x208, 0x90, 0x0},
{0x209, 0x32, 0x0},
{0x20e, 0x22, 0x0},
{0x210, 0x84, 0x0},
{0x223, 0x20, 0x0},
{0x226, 0xC0, 0x0},
};

int retval = 0;

retval = sst_sc_reg_access(sc_access, PMIC_WRITE, 8);
if (0 != retval) {
/* pmic communication fails */
pr_debug("pmic commn failed\n");
return retval;
}

pr_debug("Capture configuration complete!!\n");
return 0;
}

static int mx_init_playback_card(void)
{
struct sc_reg_access sc_access[] = {
{0x206, 0x00, 0x0},
{0x207, 0x00, 0x0},
{0x208, 0x00, 0x0},
{0x209, 0x51, 0x0},
{0x20e, 0x51, 0x0},
{0x210, 0x21, 0x0},
{0x223, 0x01, 0x0},
};
int retval = 0;

retval = sst_sc_reg_access(sc_access, PMIC_WRITE, 9);
if (0 != retval) {
/* pmic communication fails */
pr_debug("pmic commn failed\n");
return retval;
}

pr_debug("Playback configuration complete!!\n");
return 0;
}

static int mx_enable_audiodac(int value)
{
struct sc_reg_access sc_access[3];
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/intel_sst/intelmid_v2_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ static int nc_set_selected_input_dev(u8 value)
sc_access[2].mask = MASK6;
sc_access[3].reg_addr = 0x109;
sc_access[3].mask = MASK6;
sc_access[3].value = 0x40;
sc_access[3].value = 0x00;
num_val = 4;
break;
default:
Expand Down

0 comments on commit 70d86cd

Please sign in to comment.