From 3c35d97c793d6e3b2945525c73feec301f737235 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Thu, 8 May 2008 13:01:32 +0200 Subject: [PATCH] --- yaml --- r: 99022 b: refs/heads/master c: 48008b598bb9cfffbd871512f49d84eb5b885a00 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/i2c/cs8427.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 179171386b8e..0f83ef30139c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 87af38dafe4f930921b9217c21ec6d72cad56bcc +refs/heads/master: 48008b598bb9cfffbd871512f49d84eb5b885a00 diff --git a/trunk/sound/i2c/cs8427.c b/trunk/sound/i2c/cs8427.c index e57e9cbe6a0f..9c3d361accfb 100644 --- a/trunk/sound/i2c/cs8427.c +++ b/trunk/sound/i2c/cs8427.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -264,10 +265,7 @@ int snd_cs8427_create(struct snd_i2c_bus *bus, goto __fail; } /* write default channel status bytes */ - buf[0] = ((unsigned char)(SNDRV_PCM_DEFAULT_CON_SPDIF >> 0)); - buf[1] = ((unsigned char)(SNDRV_PCM_DEFAULT_CON_SPDIF >> 8)); - buf[2] = ((unsigned char)(SNDRV_PCM_DEFAULT_CON_SPDIF >> 16)); - buf[3] = ((unsigned char)(SNDRV_PCM_DEFAULT_CON_SPDIF >> 24)); + put_unaligned_le32(SNDRV_PCM_DEFAULT_CON_SPDIF, buf); memset(buf + 4, 0, 24 - 4); if (snd_cs8427_send_corudata(device, 0, buf, 24) < 0) goto __fail;