0 << 2);
if (channel == 8) {
- pr_info("%s channel == 8\n", __func__);
+ pr_debug("%s channel == 8\n", __func__);
/* [31:16] IRQ block. */
aml_aiu_write(AIU_MEM_I2S_MASKS, (24 << 16) |
/* [15: 8] chan_mem_mask.
aml_aiu_update_bits(AIU_MEM_IEC958_CONTROL,
0x7 << 3, 0x1 << 3);
- pr_info("IEC958 RAW\n");
+ pr_debug("IEC958 RAW\n");
} else if (mode == AIU_958_MODE_PCM32) {
audio_hw_set_958_pcm24(set);
#ifdef CONFIG_AMLOGIC_SND_SPLIT_MODE
aml_aiu_update_bits(AIU_MEM_IEC958_CONTROL,
0x7 << 3, 0);
- pr_info("IEC958 PCM32\n");
+ pr_debug("IEC958 PCM32\n");
} else if (mode == AIU_958_MODE_PCM24) {
audio_hw_set_958_pcm24(set);
#ifdef CONFIG_AMLOGIC_SND_SPLIT_MODE
aml_aiu_update_bits(AIU_MEM_IEC958_CONTROL,
0x7 << 3, 0);
- pr_info("IEC958 24bit\n");
+ pr_debug("IEC958 24bit\n");
} else if (mode == AIU_958_MODE_PCM16) {
audio_hw_set_958_pcm24(set);
aml_aiu_write(AIU_958_MISC, 0x2042);
/* endian */
aml_aiu_update_bits(AIU_MEM_IEC958_CONTROL,
0x7 << 3, 0);
- pr_info("IEC958 16bit\n");
+ pr_debug("IEC958 16bit\n");
}
audio_hw_958_reset(0, 1);
if (IEC958_mode_codec == 0) {
aml_hw_iec958_init(substream, 1);
/* use the hw same sync for i2s/958 */
- dev_info(substream->pcm->card->dev, "i2s/958 same source\n");
+ pr_debug("i2s/958 same source\n");
}
if (runtime->channels == 8) {
- dev_info(substream->pcm->card->dev,
- "8ch PCM output->notify HDMI\n");
+ pr_debug("8ch PCM output->notify HDMI\n");
aout_notifier_call_chain(AOUT_EVENT_IEC_60958_PCM,
substream);
}
case SNDRV_PCM_TRIGGER_RESUME:
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
- dev_info(substream->pcm->card->dev, "I2S playback enable\n");
+ pr_debug("I2S playback enable\n");
audio_out_i2s_enable(1);
if (IEC958_mode_codec == 0) {
- dev_info(substream->pcm->card->dev, "IEC958 playback enable\n");
+ pr_debug("IEC958 playback enable\n");
audio_hw_958_enable(1);
}
} else {
case SNDRV_PCM_TRIGGER_SUSPEND:
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
- dev_info(substream->pcm->card->dev, "I2S playback disable\n");
+ pr_debug("I2S playback disable\n");
audio_out_i2s_enable(0);
if (IEC958_mode_codec == 0) {
- dev_info(substream->pcm->card->dev, "IEC958 playback disable\n");
+ pr_debug("IEC958 playback disable\n");
audio_hw_958_enable(0);
}
} else {
pr_info("set 4x audio clk for 958\n");
div = 1;
} else if (samesrc) {
- pr_info("share the same clock\n");
+ pr_debug("share the same clock\n");
div = 2;
} else {
pr_info("set normal 512 fs /4 fs\n");
break;
};
audio_hw_958_enable(0);
- pr_info("aml_hw_iec958_init,runtime->rate=%d, same source mode(%d)\n",
+ pr_debug("aml_hw_iec958_init,runtime->rate=%d, same source mode(%d)\n",
runtime->rate, samesrc);
if (old_samplerate != sample_rate || samesrc != flag_samesrc) {
pr_info("set 4x audio clk for 958\n");
div = 1;
} else if (samesrc) {
- pr_info("share the same clock\n");
+ pr_debug("share the same clock\n");
div = 2;
} else {
pr_info("set normal 512 fs /4 fs\n");
if (IEC958_mode_codec == 1) {
/* dts, use raw sync-word mode */
iec958_mode = AIU_958_MODE_RAW;
- pr_info("iec958 mode RAW\n");
+ pr_debug("iec958 mode RAW\n");
} else {
/* ac3,use the same pcm mode as i2s configuration */
iec958_mode = AIU_958_MODE_PCM_RAW;
- pr_info("iec958 mode %s\n",
+ pr_debug("iec958 mode %s\n",
(i2s_mode == AIU_I2S_MODE_PCM32) ? "PCM32_RAW"
: ((I2S_MODE == AIU_I2S_MODE_PCM24) ?
"PCM24_RAW" : "PCM16_RAW"));
iec958_mode = AIU_958_MODE_PCM24;
else
iec958_mode = AIU_958_MODE_PCM16;
- pr_info("iec958 mode %s\n",
+ pr_debug("iec958 mode %s\n",
(i2s_mode ==
AIU_I2S_MODE_PCM32) ? "PCM32" : ((i2s_mode ==
AIU_I2S_MODE_PCM24) ?