Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353270
b: refs/heads/master
c: 8ae3124
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jan 15, 2013
1 parent 7b197cc commit 874cccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 549e8292a1e7712d401cc8b8df88286cdfff9f08
refs/heads/master: 8ae3124b8f0f3f97f928be22ccc816118d4b0ecb
6 changes: 3 additions & 3 deletions trunk/sound/pci/hda/patch_ca0132.c
Original file line number Diff line number Diff line change
Expand Up @@ -2167,7 +2167,7 @@ static const struct dsp_image_seg *get_next_seg_ptr(
/*
* CA0132 chip DSP transfer stuffs. For DSP download.
*/
#define INVALID_DMA_CHANNEL (~0UL)
#define INVALID_DMA_CHANNEL (~0U)

/*
* Program a list of address/data pairs via the ChipIO widget.
Expand Down Expand Up @@ -2431,7 +2431,7 @@ static int dspxfr_image(struct hda_codec *codec,
dma_engine->buf_size = (ovly ? DSP_DMA_WRITE_BUFLEN_OVLY :
DSP_DMA_WRITE_BUFLEN_INIT) * 2;

dma_chan = 0;
dma_chan = ovly ? INVALID_DMA_CHANNEL : 0;

status = codec_set_converter_format(codec, WIDGET_CHIP_CTRL,
hda_format, &response);
Expand All @@ -2453,7 +2453,7 @@ static int dspxfr_image(struct hda_codec *codec,
status = dspio_alloc_dma_chan(codec, &dma_chan);
if (status < 0) {
snd_printdd(KERN_ERR "alloc dmachan fail");
dma_chan = (unsigned int)INVALID_DMA_CHANNEL;
dma_chan = INVALID_DMA_CHANNEL;
goto exit;
}
}
Expand Down

0 comments on commit 874cccb

Please sign in to comment.