Merge remote-tracking branch 'asoc/fix/omap' into asoc-next
This commit is contained in:
commit
339425f47d
|
@ -12,7 +12,7 @@ Required properties:
|
||||||
|
|
||||||
Optional properties:
|
Optional properties:
|
||||||
- ti,dmic: phandle for the OMAP dmic node if the machine have it connected
|
- ti,dmic: phandle for the OMAP dmic node if the machine have it connected
|
||||||
- ti,jack_detection: Need to be set to <1> if the board capable to detect jack
|
- ti,jack_detection: Need to be present if the board capable to detect jack
|
||||||
insertion, removal.
|
insertion, removal.
|
||||||
|
|
||||||
Available audio endpoints for the audio-routing table:
|
Available audio endpoints for the audio-routing table:
|
||||||
|
@ -59,7 +59,7 @@ sound {
|
||||||
compatible = "ti,abe-twl6040";
|
compatible = "ti,abe-twl6040";
|
||||||
ti,model = "SDP4430";
|
ti,model = "SDP4430";
|
||||||
|
|
||||||
ti,jack-detection = <1>;
|
ti,jack-detection;
|
||||||
ti,mclk-freq = <38400000>;
|
ti,mclk-freq = <38400000>;
|
||||||
|
|
||||||
ti,mcpdm = <&mcpdm>;
|
ti,mcpdm = <&mcpdm>;
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
|
|
||||||
#include <linux/platform_data/asoc-ti-mcbsp.h>
|
#include <linux/platform_data/asoc-ti-mcbsp.h>
|
||||||
|
|
||||||
#include <plat/cpu.h>
|
|
||||||
|
|
||||||
#include "mcbsp.h"
|
#include "mcbsp.h"
|
||||||
|
|
||||||
static void omap_mcbsp_write(struct omap_mcbsp *mcbsp, u16 reg, u32 val)
|
static void omap_mcbsp_write(struct omap_mcbsp *mcbsp, u16 reg, u32 val)
|
||||||
|
@ -612,7 +610,7 @@ void omap_mcbsp_free(struct omap_mcbsp *mcbsp)
|
||||||
* system will refuse to enter idle if the CLKS pin source is not reset
|
* system will refuse to enter idle if the CLKS pin source is not reset
|
||||||
* back to internal source.
|
* back to internal source.
|
||||||
*/
|
*/
|
||||||
if (!cpu_class_is_omap1())
|
if (!mcbsp_omap1())
|
||||||
omap2_mcbsp_set_clks_src(mcbsp, MCBSP_CLKS_PRCM_SRC);
|
omap2_mcbsp_set_clks_src(mcbsp, MCBSP_CLKS_PRCM_SRC);
|
||||||
|
|
||||||
spin_lock(&mcbsp->lock);
|
spin_lock(&mcbsp->lock);
|
||||||
|
|
|
@ -26,6 +26,12 @@
|
||||||
|
|
||||||
#include "omap-pcm.h"
|
#include "omap-pcm.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARCH_OMAP1
|
||||||
|
#define mcbsp_omap1() 1
|
||||||
|
#else
|
||||||
|
#define mcbsp_omap1() 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/* McBSP register numbers. Register address offset = num * reg_step */
|
/* McBSP register numbers. Register address offset = num * reg_step */
|
||||||
enum {
|
enum {
|
||||||
/* Common registers */
|
/* Common registers */
|
||||||
|
|
|
@ -331,8 +331,8 @@ static __devinit int omap_abe_probe(struct platform_device *pdev)
|
||||||
num_links = 1;
|
num_links = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
of_property_read_u32(node, "ti,jack-detection",
|
priv->jack_detection = of_property_read_bool(node,
|
||||||
&priv->jack_detection);
|
"ti,jack-detection");
|
||||||
of_property_read_u32(node, "ti,mclk-freq",
|
of_property_read_u32(node, "ti,mclk-freq",
|
||||||
&priv->mclk_freq);
|
&priv->mclk_freq);
|
||||||
if (!priv->mclk_freq) {
|
if (!priv->mclk_freq) {
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#include <sound/initval.h>
|
#include <sound/initval.h>
|
||||||
#include <sound/soc.h>
|
#include <sound/soc.h>
|
||||||
|
|
||||||
#include <plat/cpu.h>
|
|
||||||
#include <linux/platform_data/asoc-ti-mcbsp.h>
|
#include <linux/platform_data/asoc-ti-mcbsp.h>
|
||||||
#include "mcbsp.h"
|
#include "mcbsp.h"
|
||||||
#include "omap-mcbsp.h"
|
#include "omap-mcbsp.h"
|
||||||
|
@ -512,7 +511,7 @@ static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
|
||||||
regs->srgr2 |= CLKSM;
|
regs->srgr2 |= CLKSM;
|
||||||
break;
|
break;
|
||||||
case OMAP_MCBSP_SYSCLK_CLKS_FCLK:
|
case OMAP_MCBSP_SYSCLK_CLKS_FCLK:
|
||||||
if (cpu_class_is_omap1()) {
|
if (mcbsp_omap1()) {
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -520,7 +519,7 @@ static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
|
||||||
MCBSP_CLKS_PRCM_SRC);
|
MCBSP_CLKS_PRCM_SRC);
|
||||||
break;
|
break;
|
||||||
case OMAP_MCBSP_SYSCLK_CLKS_EXT:
|
case OMAP_MCBSP_SYSCLK_CLKS_EXT:
|
||||||
if (cpu_class_is_omap1()) {
|
if (mcbsp_omap1()) {
|
||||||
err = 0;
|
err = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
#include "omap-mcbsp.h"
|
#include "omap-mcbsp.h"
|
||||||
#include "omap-pcm.h"
|
#include "omap-pcm.h"
|
||||||
|
|
||||||
#define ZOOM2_HEADSET_MUX_GPIO (OMAP_MAX_GPIO_LINES + 15)
|
|
||||||
|
|
||||||
static int zoom2_hw_params(struct snd_pcm_substream *substream,
|
static int zoom2_hw_params(struct snd_pcm_substream *substream,
|
||||||
struct snd_pcm_hw_params *params)
|
struct snd_pcm_hw_params *params)
|
||||||
{
|
{
|
||||||
|
@ -187,9 +185,6 @@ static int __init zoom2_soc_init(void)
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err1;
|
goto err1;
|
||||||
|
|
||||||
BUG_ON(gpio_request(ZOOM2_HEADSET_MUX_GPIO, "hs_mux") < 0);
|
|
||||||
gpio_direction_output(ZOOM2_HEADSET_MUX_GPIO, 0);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err1:
|
err1:
|
||||||
|
@ -202,8 +197,6 @@ module_init(zoom2_soc_init);
|
||||||
|
|
||||||
static void __exit zoom2_soc_exit(void)
|
static void __exit zoom2_soc_exit(void)
|
||||||
{
|
{
|
||||||
gpio_free(ZOOM2_HEADSET_MUX_GPIO);
|
|
||||||
|
|
||||||
platform_device_unregister(zoom2_snd_device);
|
platform_device_unregister(zoom2_snd_device);
|
||||||
}
|
}
|
||||||
module_exit(zoom2_soc_exit);
|
module_exit(zoom2_soc_exit);
|
||||||
|
|
Loading…
Reference in New Issue