#ifndef GEOIPH_H #define GEOIPH_H #include #include #include "config.h" #include "die.h" #if defined(HAVE_GEOIP) && defined(HAVE_LIBZ) extern void init_geoip(int enforce); extern void update_geoip(void); extern int geoip_working(void); extern char *geoip4_city_name(struct sockaddr_in *sa); extern char *geoip6_city_name(struct sockaddr_in6 *sa); extern char *geoip4_region_name(struct sockaddr_in *sa); extern char *geoip6_region_name(struct sockaddr_in6 *sa); extern const char *geoip4_country_name(struct sockaddr_in *sa); extern const char *geoip6_country_name(struct sockaddr_in6 *sa); extern const char *geoip4_country_code3_name(struct sockaddr_in *sa); extern const char *geoip6_country_code3_name(struct sockaddr_in6 *sa); extern float geoip4_longitude(struct sockaddr_in *sa); extern float geoip4_latitude(struct sockaddr_in *sa); extern float geoip6_longitude(struct sockaddr_in6 *sa); extern float geoip6_latitude(struct sockaddr_in6 *sa); extern const char *geoip4_as_name(struct sockaddr_in *sa); extern const char *geoip6_as_name(struct sockaddr_in6 *sa); extern void destroy_geoip(void); #else static inline void init_geoip(int enforce) { } static inline void destroy_geoip(void) { } static inline void update_geoip(void) { panic("No built-in geoip support!\n"); } static inline int geoip_working(void) { return 0; } static inline char *geoip4_city_name(struct sockaddr_in *sa) { return NULL; } static inline char *geoip6_city_name(struct sockaddr_in6 *sa) { return NULL; } static inline char *geoip4_region_name(struct sockaddr_in *sa) { return NULL; } static inline char *geoip6_region_name(struct sockaddr_in6 *sa) { return NULL; } static inline const char *geoip4_country_name(struct sockaddr_in *sa) { return NULL; } static inline const char *geoip6_country_name(struct sockaddr_in6 *sa) { return NULL; } static inline float geoip4_longitude(struct sockaddr_in *sa) { return .0f; } static inline float geoip4_latitude(struct sockaddr_in *sa) { return .0f; } static inline float geoip6_longitude(struct sockaddr_in6 *sa) { return .0f; } static inline float geoip6_latitude(struct sockaddr_in6 *sa) { return .0f; } static inline const char *geoip4_as_name(struct sockaddr_in *sa) { return NULL; } static inline const char *geoip6_as_name(struct sockaddr_in6 *sa) { return NULL; } static inline const char *geoip4_country_code3_name(struct sockaddr_in *sa) { return NULL; } static inline const char *geoip6_country_code3_name(struct sockaddr_in6 *sa) { return NULL; } #endif #endif /* GEOIPH_H */ ue='search'/>
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2016-08-04 11:51:25 +0200
committerMark Brown <broonie@kernel.org>2016-08-04 11:21:14 +0100
commit1bc610e7a17dcf5165f1ed4e0201ee080ba1a0df (patch)
tree207778e567104bdef4760b23fea257b7727b47dc /sound/soc/sh
parente7ca8fcd15049b1e48ae2ef1434a68a51ef0ead5 (diff)
ASoC: samsung: Fix clock handling in S3C24XX_UDA134X card
There is no "pclk" alias in the s3c2440 clk driver for "soc-audio" device so related clk_get() fails, which prevents any operation of the S3C24XX_UDA134X sound card. Instead we get the clock on behalf of the I2S device, i.e. we use the I2S block gate clock which has PCLK is its parent clock. Without this patch there is an error like: s3c24xx_uda134x_startup cannot get pclk ASoC: UDA134X startup failed: -2 Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')