diff options
| author | Takashi Iwai <tiwai@suse.de> | 2015-01-28 16:32:10 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2015-01-28 16:32:10 -0500 |
| commit | d832f3dcb6e2d153fbb69b91931058d138bc41cb (patch) | |
| tree | b58210600b92bbe0c20c02724a47068682b99d5e /include/sound | |
| parent | 5da7f924a41949797875c98a776dca1737a0f372 (diff) | |
| parent | 1781e78c63317c04e6ae6a076acfd53236f420bc (diff) | |
Merge branch 'topic/ak411x-fix' into for-next
Diffstat (limited to 'include/sound')
| -rw-r--r-- | include/sound/ak4113.h | 11 | ||||
| -rw-r--r-- | include/sound/ak4114.h | 11 |
2 files changed, 20 insertions, 2 deletions
diff --git a/include/sound/ak4113.h b/include/sound/ak4113.h index 2609048c1d44..58c145620c3c 100644 --- a/include/sound/ak4113.h +++ b/include/sound/ak4113.h | |||
| @@ -286,7 +286,8 @@ struct ak4113 { | |||
| 286 | ak4113_write_t *write; | 286 | ak4113_write_t *write; |
| 287 | ak4113_read_t *read; | 287 | ak4113_read_t *read; |
| 288 | void *private_data; | 288 | void *private_data; |
| 289 | unsigned int init:1; | 289 | atomic_t wq_processing; |
| 290 | struct mutex reinit_mutex; | ||
| 290 | spinlock_t lock; | 291 | spinlock_t lock; |
| 291 | unsigned char regmap[AK4113_WRITABLE_REGS]; | 292 | unsigned char regmap[AK4113_WRITABLE_REGS]; |
| 292 | struct snd_kcontrol *kctls[AK4113_CONTROLS]; | 293 | struct snd_kcontrol *kctls[AK4113_CONTROLS]; |
| @@ -317,5 +318,13 @@ int snd_ak4113_build(struct ak4113 *ak4113, | |||
| 317 | int snd_ak4113_external_rate(struct ak4113 *ak4113); | 318 | int snd_ak4113_external_rate(struct ak4113 *ak4113); |
| 318 | int snd_ak4113_check_rate_and_errors(struct ak4113 *ak4113, unsigned int flags); | 319 | int snd_ak4113_check_rate_and_errors(struct ak4113 *ak4113, unsigned int flags); |
| 319 | 320 | ||
| 321 | #ifdef CONFIG_PM | ||
| 322 | void snd_ak4113_suspend(struct ak4113 *chip); | ||
| 323 | void snd_ak4113_resume(struct ak4113 *chip); | ||
| 324 | #else | ||
| 325 | static inline void snd_ak4113_suspend(struct ak4113 *chip) {} | ||
| 326 | static inline void snd_ak4113_resume(struct ak4113 *chip) {} | ||
| 327 | #endif | ||
| 328 | |||
| 320 | #endif /* __SOUND_AK4113_H */ | 329 | #endif /* __SOUND_AK4113_H */ |
| 321 | 330 | ||
diff --git a/include/sound/ak4114.h b/include/sound/ak4114.h index 52f02a60dba7..b6feb7e225f2 100644 --- a/include/sound/ak4114.h +++ b/include/sound/ak4114.h | |||
| @@ -168,7 +168,8 @@ struct ak4114 { | |||
| 168 | ak4114_write_t * write; | 168 | ak4114_write_t * write; |
| 169 | ak4114_read_t * read; | 169 | ak4114_read_t * read; |
| 170 | void * private_data; | 170 | void * private_data; |
| 171 | unsigned int init: 1; | 171 | atomic_t wq_processing; |
| 172 | struct mutex reinit_mutex; | ||
| 172 | spinlock_t lock; | 173 | spinlock_t lock; |
| 173 | unsigned char regmap[6]; | 174 | unsigned char regmap[6]; |
| 174 | unsigned char txcsb[5]; | 175 | unsigned char txcsb[5]; |
| @@ -199,5 +200,13 @@ int snd_ak4114_build(struct ak4114 *ak4114, | |||
| 199 | int snd_ak4114_external_rate(struct ak4114 *ak4114); | 200 | int snd_ak4114_external_rate(struct ak4114 *ak4114); |
| 200 | int snd_ak4114_check_rate_and_errors(struct ak4114 *ak4114, unsigned int flags); | 201 | int snd_ak4114_check_rate_and_errors(struct ak4114 *ak4114, unsigned int flags); |
| 201 | 202 | ||
| 203 | #ifdef CONFIG_PM | ||
| 204 | void snd_ak4114_suspend(struct ak4114 *chip); | ||
| 205 | void snd_ak4114_resume(struct ak4114 *chip); | ||
| 206 | #else | ||
| 207 | static inline void snd_ak4114_suspend(struct ak4114 *chip) {} | ||
| 208 | static inline void snd_ak4114_resume(struct ak4114 *chip) {} | ||
| 209 | #endif | ||
| 210 | |||
| 202 | #endif /* __SOUND_AK4114_H */ | 211 | #endif /* __SOUND_AK4114_H */ |
| 203 | 212 | ||
