Skip to content

Commit 00aeb42

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: oxygen: fix distorted output on AK4396-based cards Revert "ALSA: hda - Added model selection for iMac 24""
2 parents 316d967 + df91bc2 commit 00aeb42

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎sound/pci/hda/patch_realtek.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6197,7 +6197,6 @@ static struct snd_pci_quirk alc882_cfg_tbl[] = {
61976197
SND_PCI_QUIRK(0x1043, 0x817f, "Asus P5LD2", ALC882_6ST_DIG),
61986198
SND_PCI_QUIRK(0x1043, 0x81d8, "Asus P5WD", ALC882_6ST_DIG),
61996199
SND_PCI_QUIRK(0x105b, 0x6668, "Foxconn", ALC882_6ST_DIG),
6200-
SND_PCI_QUIRK(0x106b, 0x00a0, "Apple iMac 24''", ALC885_IMAC24),
62016200
SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte P35 DS3R", ALC882_6ST_DIG),
62026201
SND_PCI_QUIRK(0x1462, 0x28fb, "Targa T8", ALC882_TARGA), /* MSI-1049 T8 */
62036202
SND_PCI_QUIRK(0x1462, 0x6668, "MSI", ALC882_6ST_DIG),

‎sound/pci/oxygen/hifier.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
1919

20+
#include <linux/delay.h>
2021
#include <linux/pci.h>
2122
#include <sound/control.h>
2223
#include <sound/core.h>
@@ -107,6 +108,9 @@ static void set_ak4396_params(struct oxygen *chip,
107108
else
108109
value |= AK4396_DFS_QUAD;
109110
data->ak4396_ctl2 = value;
111+
112+
msleep(1); /* wait for the new MCLK to become stable */
113+
110114
ak4396_write(chip, AK4396_CONTROL_1, AK4396_DIF_24_MSB);
111115
ak4396_write(chip, AK4396_CONTROL_2, value);
112116
ak4396_write(chip, AK4396_CONTROL_1, AK4396_DIF_24_MSB | AK4396_RSTN);

‎sound/pci/oxygen/oxygen.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* GPIO 1 -> DFS1 of AK5385
2929
*/
3030

31+
#include <linux/delay.h>
3132
#include <linux/mutex.h>
3233
#include <linux/pci.h>
3334
#include <sound/ac97_codec.h>
@@ -213,6 +214,9 @@ static void set_ak4396_params(struct oxygen *chip,
213214
else
214215
value |= AK4396_DFS_QUAD;
215216
data->ak4396_ctl2 = value;
217+
218+
msleep(1); /* wait for the new MCLK to become stable */
219+
216220
for (i = 0; i < 4; ++i) {
217221
ak4396_write(chip, i,
218222
AK4396_CONTROL_1, AK4396_DIF_24_MSB);

0 commit comments

Comments
 (0)