You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] powerpc: Fix sound driver use of i2c
The PowerMac sound drivers used to rely on a "bug" of the i2c-keywest driver that implemented I2C_SMBUS_BLOCK_DATA incorrectly, that is it did what I2C_SMBUS_I2C_BLOCK_DATA should have done. The new i2c-powermac driver that replaces keywest has this bug fixed, thus the sound drivers must be fixed too. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
fe69102188
commit
367636e8a9
+2
-1
@@ -66,7 +66,7 @@ static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, i
|
||||
|
||||
static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec)
|
||||
{
|
||||
if (rec) {
|
||||
if (rec->space) {
|
||||
unsigned int rsize = sizeof(struct dbdma_cmd) * (rec->size + 1);
|
||||
|
||||
dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base);
|
||||
@@ -881,6 +881,7 @@ static int __init snd_pmac_detect(struct snd_pmac *chip)
|
||||
chip->can_capture = 1;
|
||||
chip->num_freqs = ARRAY_SIZE(awacs_freqs);
|
||||
chip->freq_table = awacs_freqs;
|
||||
chip->pdev = NULL;
|
||||
|
||||
chip->control_mask = MASK_IEPC | MASK_IEE | 0x11; /* default */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user