Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228195
b: refs/heads/master
c: 79a35ad
h: refs/heads/master
i:
  228193: 2ca6b94
  228191: 6aacaa5
v: v3
  • Loading branch information
Vinod Koul authored and Greg Kroah-Hartman committed Nov 29, 2010
1 parent 6c39025 commit 34214b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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: 964c6975e8a4314c451d420f1cb54880ab535433
refs/heads/master: 79a35ad57300f78c7250eeeca57b602e06ff402a
3 changes: 1 addition & 2 deletions trunk/drivers/staging/intel_sst/intel_sst_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@

/* driver names */
#define SST_DRV_NAME "intel_sst_driver"
#define SST_FW_FILENAME_MRST "fw_sst_080a.bin"
#define SST_FW_FILENAME_MFLD "fw_sst_082f.bin"
#define SST_MRST_PCI_ID 0x080A
#define SST_MFLD_PCI_ID 0x082F
#define PCI_ID_LENGTH 4
#define SST_SUSPEND_DELAY 2000

enum sst_states {
Expand Down
11 changes: 6 additions & 5 deletions trunk/drivers/staging/intel_sst/intel_sst_drv_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ int sst_download_fw(void)
{
int retval;
const struct firmware *fw_sst;
const char *name;
char name[20];

if (sst_drv_ctx->sst_state != SST_UN_INIT)
return -EPERM;
if (sst_drv_ctx->pci_id == SST_MRST_PCI_ID)
name = SST_FW_FILENAME_MRST;
else
name = SST_FW_FILENAME_MFLD;

snprintf(name, sizeof(name), "%s%04x%s", "fw_sst_",
sst_drv_ctx->pci_id, ".bin");

pr_debug("Downloading %s FW now...\n", name);
retval = request_firmware(&fw_sst, name, &sst_drv_ctx->pci->dev);
if (retval) {
Expand Down

0 comments on commit 34214b0

Please sign in to comment.